summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaniel Silverstone <daniel.silverstone@codethink.co.uk>2012-08-21 15:14:11 +0100
committerDaniel Silverstone <daniel.silverstone@codethink.co.uk>2012-08-21 15:14:11 +0100
commit2bfeeac1848874066eb29f15d246db96b3f3285d (patch)
tree4682ac25cb26d12ee0ff6d3065988536db4bab5d
parent7a0bf029963bde94b6b841fb79b8213cbb3d6ae2 (diff)
downloadlua-2bfeeac1848874066eb29f15d246db96b3f3285d.tar.gz
Add pkgconfig
-rw-r--r--lua.morph4
-rw-r--r--lua5.1.pc24
2 files changed, 27 insertions, 1 deletions
diff --git a/lua.morph b/lua.morph
index 49332d8..3182e50 100644
--- a/lua.morph
+++ b/lua.morph
@@ -9,6 +9,8 @@
"make debian_linux INSTALL_TOP=\"$PREFIX\" RPATH=\"$PREFIX/lib\""
],
"install-commands": [
- "make INSTALL_TOP=\"$DESTDIR/$PREFIX\" debian_install"
+ "make INSTALL_TOP=\"$DESTDIR/$PREFIX\" debian_install",
+ "mkdir -p $DESTDIR/$PREFIX/lib/pkgconfig",
+ "cp lua5.1.pc $DESTDIR/$PREFIX/lib/pkgconfig/"
]
}
diff --git a/lua5.1.pc b/lua5.1.pc
new file mode 100644
index 0000000..3a6122a
--- /dev/null
+++ b/lua5.1.pc
@@ -0,0 +1,24 @@
+prefix=/usr
+major_version=5.1
+version=5.1.5
+
+lib_name=lua${major_version}
+libdir=${prefix}/lib
+includedir=${prefix}/include
+
+#
+# The following are intended to be used via "pkg-config --variable".
+
+# Install paths for Lua modules. For example, if a package wants to install
+# Lua source modules to the /usr/local tree, call pkg-config with
+# "--define-variable=prefix=/usr/local" and "--variable=INSTALL_LMOD".
+INSTALL_LMOD=${prefix}/share/lua/${major_version}
+INSTALL_CMOD=${prefix}/lib/lua/${major_version}
+
+Name: Lua
+Description: Lua language engine
+Version: ${version}
+Requires:
+Libs: -L${libdir} -l${lib_name}
+Libs.private: -lm -ldl
+Cflags: -I${includedir}/${lib_name_include}