[farsight2/master] Add pkgconfig file
Olivier Crête
olivier.crete at collabora.co.uk
Tue Dec 23 15:21:25 PST 2008
---
.gitignore | 2 ++
Makefile.am | 18 ++++++++++++++++--
configure.ac | 1 +
farsight2.pc.in | 12 ++++++++++++
4 files changed, 31 insertions(+), 2 deletions(-)
create mode 100644 farsight2.pc.in
diff --git a/.gitignore b/.gitignore
index 274241a..fbabf35 100644
--- a/.gitignore
+++ b/.gitignore
@@ -67,3 +67,5 @@ missing
stamp-h.in
stamp-h1
+farsight2-0.10.pc
+farsight2.pc
diff --git a/Makefile.am b/Makefile.am
index 84fe3af..88a0e81 100644
--- a/Makefile.am
+++ b/Makefile.am
@@ -25,7 +25,8 @@ DIST_SUBDIRS = \
# pkgconfig
EXTRA_DIST = \
- AUTHORS COPYING NEWS README ChangeLog autogen.sh
+ AUTHORS COPYING NEWS README ChangeLog autogen.sh \
+ $(pcinfiles)
ACLOCAL_AMFLAGS = -I common/m4
@@ -40,6 +41,19 @@ check-torture:
true
endif
+pcverfiles = farsight2- at GST_MAJORMINOR@.pc
+pcinfiles = farsight2.pc.in
+
+%- at GST_MAJORMINOR@.pc: %.pc
+ cp $< $@
+
+pkgconfigdir = $(libdir)/pkgconfig
+pkgconfig_DATA = $(pcverfiles)
+
+CLEANFILES = $(pcverfiles)
+
+DISTCLEANFILES = $(pcinfiles:.in=)
+
dist-hook:
chmod u+w ${distdir}/ChangeLog
- if test -d .git; then git log >${distdir}/ChangeLog; fi
+ if test -d .git; then git log >${distdir}/Chght2.pc.insngeLog; fi
diff --git a/configure.ac b/configure.ac
index 461971c..e54f8eb 100644
--- a/configure.ac
+++ b/configure.ac
@@ -355,6 +355,7 @@ dnl *** output files ***
AC_CONFIG_FILES(
Makefile
+farsight2.pc
gst/Makefile
gst/fsrtpconference/Makefile
gst/funnel/Makefile
diff --git a/farsight2.pc.in b/farsight2.pc.in
new file mode 100644
index 0000000..63b37c6
--- /dev/null
+++ b/farsight2.pc.in
@@ -0,0 +1,12 @@
+prefix=@prefix@
+exec_prefix=@exec_prefix@
+libdir=@libdir@
+includedir=@includedir@/gstreamer- at GST_MAJORMINOR@
+
+Name: Farsight2
+Description: Farsight2 base classes and utilities
+Requires: gstreamer- at GST_MAJORMINOR@ gstreamer-base- at GST_MAJORMINOR@
+Version: @VERSION@
+Libs: -L${libdir} -lgstfarsight- at GST_MAJORMINOR@
+Cflags: -I${includedir}
+
--
1.5.6.5
More information about the farsight-commits
mailing list