Permalink
Browse files

lua: actually install so

... and provide pc file for modules like edje
  • Loading branch information...
1 parent e83cec1 commit bbac98a071def00a7c10d651e9dd81334d514de0 @v4hn v4hn committed May 1, 2013
Showing with 20 additions and 1 deletion.
  1. +20 −1 compilers/lua/BUILD
View
21 compilers/lua/BUILD
@@ -2,10 +2,29 @@
patch_it $SOURCE2 0 &&
sedit "s@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/

0 comments on commit bbac98a

Please sign in to comment.