3
0
Fork 0
forked from mirrors/nixpkgs
nixpkgs/pkgs/development/interpreters/spidermonkey/builder.sh
Martin Bravenboer 626bcbed10 Added spidermonkey.
svn path=/nixpkgs/trunk/; revision=5227
2006-04-26 14:47:16 +00:00

32 lines
517 B
Bash

source $stdenv/setup
set -e
set -x
tar zxf $src
cd js/src
# Extend Makefile to dump some of its variables we want to know.
cat >> Makefile.ref <<EOF
printlibraries :
@echo \$(LIBRARY) \$(SHARED_LIBRARY) > LIBRARIES
printprograms :
@echo \$(PROGRAM) > PROGRAMS
EOF
MAKE="make -f Makefile.ref"
$MAKE printlibraries
$MAKE printprograms
$MAKE
ensureDir $out
ensureDir $out/bin
ensureDir $out/lib
# Install the binaries that have been created.
install $(cat PROGRAMS) $out/bin
install $(cat LIBRARIES) $out/lib