From 4cbdf5e241abbb4870cbee8f4f7436fa63d631a4 Mon Sep 17 00:00:00 2001 From: cbauer Date: Thu, 20 Nov 2003 15:50:21 +0000 Subject: [PATCH] added pkg-config support --- Makefile.in | 7 +++++-- cln.pc.in | 10 ++++++++++ cln.spec.in | 7 +++++-- configure.ac | 2 +- 4 files changed, 21 insertions(+), 5 deletions(-) create mode 100644 cln.pc.in diff --git a/Makefile.in b/Makefile.in index f4c2beb..cd58e51 100644 --- a/Makefile.in +++ b/Makefile.in @@ -36,18 +36,21 @@ install : installdirs force $(INSTALL_PROGRAM) cln-config $(DESTDIR)$(bindir)/cln-config $(INSTALL_DATA) cln-config.1 $(DESTDIR)$(mandir)/man1/cln-config.1 $(INSTALL_DATA) cln.m4 $(DESTDIR)$(datadir)/aclocal/cln.m4 + $(INSTALL_DATA) cln.pc $(DESTDIR)$(libdir)/pkgconfig/cln.pc installdirs : force cd @subdir@; $(MAKE) installdirs $(MKDIR) $(DESTDIR)$(mandir)/man1 $(MKDIR) $(DESTDIR)$(datadir)/aclocal $(MKDIR) $(DESTDIR)$(bindir) + $(MKDIR) $(DESTDIR)$(libdir)/pkgconfig uninstall : force cd @subdir@; $(MAKE) uninstall $(RM) $(DESTDIR)$(bindir)/cln-config $(RM) $(DESTDIR)$(mandir)/man1/cln-config.1 $(RM) $(DESTDIR)$(datadir)/aclocal/cln.m4 + $(RM) $(DESTDIR)$(libdir)/pkgconfig/cln.pc check : force cd @subdir@; $(MAKE) check @@ -61,14 +64,14 @@ clean : force distclean : force cd @subdir@; if test -f Makefile; then $(MAKE) distclean; fi $(RM) config.status config.log config.cache Makefile - $(RM) cln-config cln-config.1 cln.spec + $(RM) cln-config cln-config.1 cln.spec cln.pc $(RM) libtool $(RM) include/cln/config.h include/cln/intparam.h include/cln/floatparam.h src/base/cl_base_config.h src/base/cl_gmpconfig.h src/float/cl_float_config.h src/timing/cl_t_config.h maintainer-clean : force cd @subdir@; if test -f Makefile; then $(MAKE) maintainer-clean; fi $(RM) config.status config.log config.cache Makefile - $(RM) cln-config cln-config.1 cln.spec + $(RM) cln-config cln-config.1 cln.spec cln.pc $(RM) libtool $(RM) include/cln/config.h include/cln/intparam.h include/cln/floatparam.h src/base/cl_base_config.h src/base/cl_gmpconfig.h src/float/cl_float_config.h src/timing/cl_t_config.h diff --git a/cln.pc.in b/cln.pc.in new file mode 100644 index 0000000..0ff9261 --- /dev/null +++ b/cln.pc.in @@ -0,0 +1,10 @@ +prefix=@prefix@ +exec_prefix=@exec_prefix@ +libdir=@libdir@ +includedir=@includedir@ + +Name: cln +Description: Class Library for Numbers +Version: @CL_VERSION@ +Libs: -L${libdir} -lcln @LIBS@ +Cflags: -I${includedir} @CPPFLAGS diff --git a/cln.spec.in b/cln.spec.in index 8792f33..ccca424 100644 --- a/cln.spec.in +++ b/cln.spec.in @@ -74,13 +74,16 @@ fi %{_libdir}/*.a %{_libdir}/*.la %{_libdir}/*.so -%{_includedir}/cln/*.h +%{_libdir}/pkgconfig/cln.pc +%{_includedir}/cln %{_infodir}/*.info* %{_mandir}/man1/cln-config.1* %{_bindir}/cln-config -%{_datadir}/aclocal/* +%{_datadir}/aclocal/cln.m4 %changelog +* Thu Nov 20 2003 Christian Bauer + Added pkg-config metadata file to devel package * Wed Nov 6 2002 Christian Bauer Added HTML and DVI docs to devel package * Tue Nov 5 2001 Christian Bauer diff --git a/configure.ac b/configure.ac index 91a0dc0..3640b8e 100644 --- a/configure.ac +++ b/configure.ac @@ -181,4 +181,4 @@ changequote([,])dnl cp "$srcdir/$f" "$f" fi done -AC_OUTPUT([Makefile src/Makefile tests/Makefile benchmarks/Makefile examples/Makefile doc/Makefile cln-config cln-config.1 cln.spec], [chmod +x cln-config]) +AC_OUTPUT([Makefile src/Makefile tests/Makefile benchmarks/Makefile examples/Makefile doc/Makefile cln-config cln-config.1 cln.spec cln.pc], [chmod +x cln-config])