From 3918a3801d363ce49b573c1072de6630efbe6816 Mon Sep 17 00:00:00 2001 From: Christian Bauer Date: Thu, 20 Nov 2003 19:58:40 +0000 Subject: [PATCH] synced to HEAD (pkg-config support) --- GiNaC.spec.in | 8 ++++++-- Makefile.am | 9 ++++++++- configure.ac | 1 + ginac.pc.in | 14 ++++++++++++++ 4 files changed, 29 insertions(+), 3 deletions(-) create mode 100644 ginac.pc.in diff --git a/GiNaC.spec.in b/GiNaC.spec.in index e3aafb74..ec8298d6 100644 --- a/GiNaC.spec.in +++ b/GiNaC.spec.in @@ -99,11 +99,12 @@ fi %{_libdir}/*.a %{_libdir}/*.la %{_libdir}/*.so -%{_includedir}/ginac/*.h +%{_libdir}/pkgconfig/ginac.pc +%{_includedir}/ginac %{_infodir}/*.info* %{_mandir}/man1/ginac-config.1* %{_bindir}/ginac-config -%{_datadir}/aclocal/* +%{_datadir}/aclocal/ginac.m4 %files utils %defattr(-,root,root) @@ -113,6 +114,9 @@ fi %{_mandir}/man1/viewgar.1* %changelog +* Thu Nov 20 2003 Christian Bauer +- added pkg-config metadata file to devel package + * Thu Nov 1 2001 Christian Bauer - moved ginsh and viewgar to "utils" package diff --git a/Makefile.am b/Makefile.am index 6f8e63fe..dff04665 100644 --- a/Makefile.am +++ b/Makefile.am @@ -7,6 +7,8 @@ AUTOMAKE_OPTIONS = 1.4 # GiNaC runtime configuration script bin_SCRIPTS = ginac-config +BUILT_SOURCES = ginac-config +ginac-config: ginac-config.in # Man pages man_MANS = ginac-config.1 @@ -15,8 +17,13 @@ man_MANS = ginac-config.1 m4datadir = $(datadir)/aclocal m4data_DATA = ginac.m4 +# pkg-config metadata +pkgconfigdir = $(libdir)/pkgconfig +pkgconfig_DATA = ginac.pc +$(pkgconfig_DATA): config.status + # All the rest of the distributed files -EXTRA_DIST = ginac.m4 GiNaC.spec depcomp +EXTRA_DIST = ginac.m4 ginac.pc GiNaC.spec depcomp # Rule to build tar-bzipped distribution package $(PACKAGE)-$(VERSION).tar.gz: dist diff --git a/configure.ac b/configure.ac index d9b98c9c..63972c38 100644 --- a/configure.ac +++ b/configure.ac @@ -164,6 +164,7 @@ Makefile GiNaC.spec ginac-config ginac-config.1 +ginac.pc ginac/Makefile ginac/version.h check/Makefile diff --git a/ginac.pc.in b/ginac.pc.in new file mode 100644 index 00000000..47aeacc6 --- /dev/null +++ b/ginac.pc.in @@ -0,0 +1,14 @@ +prefix=@prefix@ +exec_prefix=@exec_prefix@ +libdir=@libdir@ +includedir=@includedir@ + +Name: GiNaC +Description: C++ library for symbolic calculations +Version: @VERSION@ +# uncomment this when a pkg-config'd cln exists +# CAUTION: this will merge in the cln libs and cflags which are already in +# GINACLIB_LIBS and GINACLIB_CPPFLAGS +#Requires: cln >= 1.1.0 +Libs: -L${libdir} -lginac @GINACLIB_LIBS@ +Cflags: -I${includedir} @GINACLIB_CPPFLAGS@ -- 2.49.0