lua50 (5.0.3-6) pkg-config.patch

Summary

 lua50.pc    |   19 +++++++++++++++++++
 lualib50.pc |   20 ++++++++++++++++++++
 2 files changed, 39 insertions(+)

    
download this patch

Patch contents

Author: John V. Belmonte <jbelmonte@debian.org>
Description: Add support for Debian package to makefiles.
--- /dev/null
+++ lua50-5.0.3/lua50.pc
@@ -0,0 +1,19 @@
+prefix=/usr
+exec_prefix=/usr
+libdir=/usr/lib
+includedir=/usr/include/
+major_version=50
+version=5.0.3
+
+# 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: lua50
+Description: The Lua 5.0 programming language
+Version: ${version}
+Libs: -L${libdir} -llua50
+Cflags: -I${includedir}/lua50
+
--- /dev/null
+++ lua50-5.0.3/lualib50.pc
@@ -0,0 +1,20 @@
+prefix=/usr
+exec_prefix=/usr
+libdir=/usr/lib
+includedir=/usr/include/
+major_version=50
+version=5.0.3
+
+# 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: lua50
+Description: The Lua 5.0 programming language addon libraries
+Version: ${version}
+Requires: lua50
+Libs: -L${libdir} -llualib50
+Cflags: -I${includedir}/lua50
+