[Splashy-devel] [PATCH] Add splashy.pc file and include glib.h in splash.h

Holger Macht hmacht at suse.de
Wed Jan 23 15:37:30 UTC 2008


Projects are starting to use libsplashy, so a convenient pkg-config file
would be appropriate. Projects can then just use something like

  PKG_CHECK_MODULES([SPLASHY], splashy)

Signed-off-by: Holger Macht <hmacht at suse.de>
---

diff --git a/Makefile.am b/Makefile.am
index 1b87fd7..d08f5c2 100644
--- a/Makefile.am
+++ b/Makefile.am
@@ -24,3 +24,6 @@ EXTRA_DIST = config.rpath m4/ChangeLog  \
 	HACKING 
 
 ACLOCAL_AMFLAGS = -I m4
+
+pkgconfigdir = $(libdir)/pkgconfig
+pkgconfig_DATA = splashy.pc
diff --git a/configure.ac b/configure.ac
index 45fe6cd..0737eae 100644
--- a/configure.ac
+++ b/configure.ac
@@ -108,6 +108,7 @@ AC_OUTPUT( po/Makefile.in
           scripts/Makefile 
           scripts/initramfs-tools/hooks/libsplashy
           Doxyfile
+          splashy.pc
           )
 
 echo
diff --git a/splashy.pc.in b/splashy.pc.in
new file mode 100644
index 0000000..87f0856
--- /dev/null
+++ b/splashy.pc.in
@@ -0,0 +1,12 @@
+prefix=@prefix@
+exec_prefix=@exec_prefix@
+libdir=@libdir@
+includedir=@includedir@
+
+Name: splashy
+Description: splashy library
+Version: @PACKAGE_VERSION@
+Requires.private: glib-2.0
+
+Libs: -L${libdir} -lsplashy
+Cflags: -I${includedir}




More information about the Splashy-devel mailing list