2006-02-02 18:07:07 +01: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 21:14:11 +01:00
|
|
|
mk $MKFLAGS all.opt
|
2006-02-02 18:07:07 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
installPhase() {
|
2006-02-02 21:14:11 +01:00
|
|
|
mk $MKFLAGS install.opt
|
|
|
|
|
|
|
|
for file in $out/bin/*.opt; do
|
|
|
|
mv $file ${file%.opt}
|
|
|
|
done
|
|
|
|
|
|
|
|
find $out/man -type f -exec gzip -9 {} \;
|
|
|
|
|
|
|
|
find $out -name \*.a -exec echo stripping {} \; \
|
2008-04-23 09:34:20 +02:00
|
|
|
-exec strip -S {} \;
|
2006-02-02 21:14:11 +01:00
|
|
|
|
|
|
|
patchELF $out
|
2006-02-02 18:07:07 +01:00
|
|
|
}
|
|
|
|
|
2006-02-02 21:14:11 +01:00
|
|
|
checkPhase="mk $MKFLAGS test.opt"
|
2006-02-02 18:07:07 +01:00
|
|
|
|
|
|
|
genericBuild
|