[cantera]: adding pkdgconfig support (I think)

This commit is contained in:
Nicholas Malaya
2012-02-08 17:00:14 +00:00
parent 0e03383cf0
commit 1ab9bc6deb
3 changed files with 31 additions and 3 deletions

View File

@@ -5,8 +5,13 @@ SUBDIRS = Cantera tools test_problems
SUBDIRS += doxygen examples
# Distribute these directories:
DIST_SUBDIRS = Cantera examples
DISTDIRS = Cantera examples
# generated documentation will be included in distributed archive
EXTRA_DIST= bootstrap $(DX_CONFIG)
EXTRA_DIST = bootstrap $(DX_CONFIG)
EXTRA_DIST += AUTHORS README
# Support for pkgconfig
pkgconfigdir = $(libdir)/pkgconfig
pkgconfig_DATA = cantera.pc

22
cantera.pc.in Normal file
View File

@@ -0,0 +1,22 @@
# @PACKAGE_NAME@ installation details
prefix=@prefix@
exec_prefix=@exec_prefix@
libdir=@libdir@
includedir=@includedir@
# Fortran compilation and linking information
# Retrieve these using `pkg-config --variable=name @PACKAGE_NAME@`
fflags=-I@libdir@
flibs=-L@libdir@ -lf@PACKAGE_NAME@ -l@PACKAGE_NAME@
Name: @PACKAGE_NAME@
Description: @PACKAGE_DESCRIPTION@
URL: @PACKAGE_URL@
Requires:
Version: @VERSION@
LINK = -lctcxx -luser -loneD -lzeroD -lequil -lkinetics -ltransport -lthermo
LINK += -lctnumerics -lctmath -ltpx -lctspectra -lconverters -lctbase -lcvode
LINK += -lctlapack -lctblas -lctf2c -lm -lstdc++
Libs: -L${libdir} ${LINK}
Cflags: -I${includedir}

View File

@@ -159,7 +159,8 @@ AC_OUTPUT(Makefile \
Cantera/src/spectra/Makefile Cantera/src/zeroD/Makefile \
Cantera/src/equil/Makefile \
examples/Makefile \
examples/cxx/Makefile)
examples/cxx/Makefile \
cantera.pc)
# skipped tests
# test_problems/ck2cti/Makefile