[Lunar-commits] <moonbase-other> lua: actually install so

v4hn me at v4hn.de
Thu May 2 00:05:53 CEST 2013


commit bbac98a071def00a7c10d651e9dd81334d514de0
Author: v4hn <me at v4hn.de>
Date: Wed, 01 May 2013 15:05:16 -0700
URL: https://github.com/lunar-linux/moonbase-other/commit/bbac98a071def00a7c10d651e9dd81334d514de0

lua: actually install so

... and provide pc file for modules like edje
---
  compilers/lua/BUILD | +20/-1    
  1 file changed, 20 insertions(+), 1 deletion(-)

--- a/compilers/lua/BUILD
+++ b/compilers/lua/BUILD
@@ -2,10 +2,29 @@
 patch_it $SOURCE2 0 &&
 sedit "s at CFLAGS=@CFLAGS+=@" src/Makefile &&
 CFLAGS+=" -fPIC" &&
+sedit "s:TO_LIB=:\0 liblua.so.5.2:" Makefile &&
 
 sedit "s:/usr/local:/usr:" Makefile  &&
 
+(
+cat > lua.pc <<EOF
+prefix=/usr
+exec_prefix=\${prefix}
+libdir=\${exec_prefix}/lib
+includedir=\${prefix}/include
+
+Name: Lua
+Description: An Extensible Extension Language
+Version: $VERSION
+Requires:
+Libs: -L\${libdir} -llua -lm
+Cflags: -I\${includedir}
+EOF
+) &&
 
 make linux      &&
+
 prepare_install &&
-make install
+make install    &&
+
+install -Dm0644 lua.pc /usr/lib/pkgconfig/




More information about the Lunar-commits mailing list