lucy-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From kar...@apache.org
Subject [lucy-commits] git commit: refs/heads/master - add pkg-config script for C lib
Date Wed, 22 May 2013 04:29:33 GMT
Updated Branches:
  refs/heads/master a04421869 -> 254a1bae9


add pkg-config script for C lib


Project: http://git-wip-us.apache.org/repos/asf/lucy/repo
Commit: http://git-wip-us.apache.org/repos/asf/lucy/commit/254a1bae
Tree: http://git-wip-us.apache.org/repos/asf/lucy/tree/254a1bae
Diff: http://git-wip-us.apache.org/repos/asf/lucy/diff/254a1bae

Branch: refs/heads/master
Commit: 254a1bae9d9ae78a11193a57f433f580c4cec14c
Parents: a044218
Author: Peter Karman <karpet@peknet.com>
Authored: Tue May 21 23:25:39 2013 -0500
Committer: Peter Karman <karpet@peknet.com>
Committed: Tue May 21 23:25:39 2013 -0500

----------------------------------------------------------------------
 c/install.sh |    8 ++++++++
 c/lucy.pc.in |   12 ++++++++++++
 2 files changed, 20 insertions(+), 0 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/lucy/blob/254a1bae/c/install.sh
----------------------------------------------------------------------
diff --git a/c/install.sh b/c/install.sh
index 4f59048..7a8495e 100755
--- a/c/install.sh
+++ b/c/install.sh
@@ -74,3 +74,11 @@ cp -R autogen/include/LucyX $prefix/include
 
 cp -R autogen/man $prefix
 
+# create pkg-config file
+# some platforms require .bak extension for temp file
+cp lucy.pc.in lucy.pc
+sed -i.bak "s,@version@,$version,g" lucy.pc
+sed -i.bak "s,@prefix@,$prefix,g" lucy.pc
+rm lucy.pc.bak
+mkdir -p $prefix/lib/pkgconfig
+cp lucy.pc $prefix/lib/pkgconfig

http://git-wip-us.apache.org/repos/asf/lucy/blob/254a1bae/c/lucy.pc.in
----------------------------------------------------------------------
diff --git a/c/lucy.pc.in b/c/lucy.pc.in
new file mode 100644
index 0000000..abdd63e
--- /dev/null
+++ b/c/lucy.pc.in
@@ -0,0 +1,12 @@
+prefix=@prefix@
+libdir=${prefix}/lib
+includedir=${prefix}/include
+
+
+Name: lucy
+Version: @version@
+URL: http://lucy.apache.org/
+Description: lucy - Apache Lucy C library
+Requires: 
+Libs: -L${libdir} -llucy 
+Cflags: -I${includedir} 


Mime
View raw message