2006-02-02 17:07:07 +00:00
|
|
|
source $stdenv/setup
|
|
|
|
|
|
|
|
configureFlags="--with-lua=$lua"
|
|
|
|
|
|
|
|
MKFLAGS="-w$lua/include/lauxlib.h,$lua/include/luadebug.h,$lua/include/lua.h,$lua/include/lualib.h"
|
|
|
|
|
|
|
|
buildPhase() {
|
|
|
|
mk timestamps
|
2006-02-02 20:14:11 +00:00
|
|
|
mk $MKFLAGS all.opt
|
2006-02-02 17:07:07 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
installPhase() {
|
2006-02-02 20:14:11 +00:00
|
|
|
mk $MKFLAGS install.opt
|
|
|
|
|
|
|
|
for file in $out/bin/*.opt; do
|
|
|
|
mv $file ${file%.opt}
|
|
|
|
done
|
|
|
|
|
2014-04-13 21:15:04 +01:00
|
|
|
find $out/man -type f -exec gzip -9n {} \;
|
2006-02-02 20:14:11 +00:00
|
|
|
|
|
|
|
find $out -name \*.a -exec echo stripping {} \; \
|
2008-04-23 08:34:20 +01:00
|
|
|
-exec strip -S {} \;
|
2006-02-02 20:14:11 +00:00
|
|
|
|
|
|
|
patchELF $out
|
2006-02-02 17:07:07 +00:00
|
|
|
}
|
|
|
|
|
2006-02-02 20:14:11 +00:00
|
|
|
checkPhase="mk $MKFLAGS test.opt"
|
2006-02-02 17:07:07 +00:00
|
|
|
|
|
|
|
genericBuild
|