murphy-db: pkg-config support for murphy-db
authorJanos Kovacs <jankovac503@gmail.com>
Sun, 25 Mar 2012 22:50:59 +0000 (01:50 +0300)
committerKrisztian Litkey <krisztian.litkey@intel.com>
Wed, 18 Apr 2012 13:32:38 +0000 (16:32 +0300)
src/murphy-db/Makefile.am
src/murphy-db/murphy-db.pc.in [new file with mode: 0644]

index 5396bb8..d47ad93 100644 (file)
@@ -5,3 +5,18 @@ TESTDIR =
 endif
 
 SUBDIRS = mdb mqi mql include $(TESTDIR)
+
+pkgconfigdir = $(libdir)/pkgconfig
+nodist_pkgconfig_DATA = murphy-db.pc
+
+murphy-db.pc: murphy-db.pc.in
+       sed -e 's![@]prefix[@]!$(prefix)!g' \
+            -e 's![@]exec_prefix[@]!$(exec_prefix)!g' \
+            -e 's![@]includedir[@]!$(includedir)!g' \
+            -e 's![@]libdir[@]!$(libdir)!g' \
+            -e 's![@]PACKAGE_VERSION[@]!$(PACKAGE_VERSION)!g' \
+        $< > $@
+
+
+clean-local:
+       rm -f *~ murphy-db.pc
diff --git a/src/murphy-db/murphy-db.pc.in b/src/murphy-db/murphy-db.pc.in
new file mode 100644 (file)
index 0000000..812a927
--- /dev/null
@@ -0,0 +1,12 @@
+prefix=@prefix@
+exec_prefix=@exec_prefix@
+includedir=@includedir@/murphy-db
+libdir=@libdir@/murphy
+
+Name: Murphy DB
+Description: Database for the Murphy policy engine
+URL: github/otcshare/murphy
+Version: @PACKAGE_VERSION@
+Cflags: -I${includedir}
+Libs: -L${libdir} -lmqi -lmql
+Libs.private: