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
|
|
|
|
|
|
|
|
find $out/man -type f -exec gzip -9 {} \;
|
|
|
|
|
|
|
|
find $out -name \*.a -exec echo stripping {} \; \
|
2008-04-23 07:34:20 +00: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
|