From 060872082b953a97a64a12e81cdd75a77a9adf81 Mon Sep 17 00:00:00 2001 From: Stefan Knoblich Date: Wed, 8 Apr 2009 21:44:33 +0000 Subject: [PATCH] Add openzap.pc pkg-config file git-svn-id: http://svn.openzap.org/svn/openzap/trunk@706 a93c3328-9c30-0410-af19-c9cd2b2d52af --- libs/freetdm/Makefile.am | 9 +++++++++ libs/freetdm/configure.ac | 1 + libs/freetdm/openzap.pc.in | 17 +++++++++++++++++ 3 files changed, 27 insertions(+) create mode 100644 libs/freetdm/openzap.pc.in diff --git a/libs/freetdm/Makefile.am b/libs/freetdm/Makefile.am index 4a7c1e72b0..83921b1784 100644 --- a/libs/freetdm/Makefile.am +++ b/libs/freetdm/Makefile.am @@ -43,6 +43,15 @@ LTCOMPILE = $(LIBTOOL) --mode=compile --tag=CC $(COMPILE) LINK = $(LIBTOOL) --mode=link --tag=CC $(CC) $(MY_CFLAGS) $(LDFLAGS) -o $@ +# +# GNU pkgconfig file +# +EXTRA_DIST = openzap.pc.in + +pkgconfigdir = $(libdir)/pkgconfig +pkgconfig_DATA = openzap.pc + + # # libopenzap # diff --git a/libs/freetdm/configure.ac b/libs/freetdm/configure.ac index 222a1d309d..c16ce2b386 100644 --- a/libs/freetdm/configure.ac +++ b/libs/freetdm/configure.ac @@ -160,5 +160,6 @@ AM_CONDITIONAL([LIBPRI],[test "${enable_libpri}" = "yes"]) COMP_VENDOR_CFLAGS="$COMP_VENDOR_CFLAGS" AC_SUBST(COMP_VENDOR_CFLAGS) AC_CONFIG_FILES([Makefile + openzap.pc mod_openzap/Makefile]) AC_OUTPUT diff --git a/libs/freetdm/openzap.pc.in b/libs/freetdm/openzap.pc.in new file mode 100644 index 0000000000..082ed5c8f6 --- /dev/null +++ b/libs/freetdm/openzap.pc.in @@ -0,0 +1,17 @@ +# +# OpenZAP pkg-config file +# +prefix=@prefix@ +exec_prefix=${prefix} +libdir=${exec_prefix}/lib +includedir=${prefix}/include + +Name: OpenZAP +Description: +Version: @PACKAGE_VERSION@ +URL: http://www.openzap.org/ +Requires: +Conflicts: +Libs: -L${libdir} -lopenzap +Libs.private: -lm +Cflags: -I${includedir}