diff --git a/dev-util/bam/bam-0.4.0.recipe b/dev-util/bam/bam-0.4.0.recipe new file mode 100644 index 000000000..b8f341b36 --- /dev/null +++ b/dev-util/bam/bam-0.4.0.recipe @@ -0,0 +1,42 @@ +SUMMARY="Bam is a fast and flexible build system." +DESCRIPTION="Bam uses Lua to describe the build process. It's takes its \ +inspiration for the script files from scons. While scons focuses on being \ +100% correct when building, bam makes a few sacrifices to acquire fast. \ +full and incremental build times." +HOMEPAGE="http://matricks.github.io/bam/" +SRC_URI="http://github.com/downloads/matricks/bam/bam-0.4.0.tar.gz" +CHECKSUM_SHA256="5e4e4920b4d265da582f66774e9b1ec8ddfbe75ddc028fba86c12f686ea18db3" +REVISION="1" + +COPYRIGHT="2009 Magnus Auvinen" +LICENSE="Zlib" + +ARCHITECTURES="x86_gcc2 x86" + +PATCHES="bam-0.4.0.patch" + +PROVIDES=" + bam = $portVersion + cmd:bam$secondaryArchSuffix = $portVersion + " + +REQUIRES=" + haiku$secondaryArchSuffix >= $haikuVersion + cmd:lua + " + +BUILD_PREREQUIRES=" + haiku${secondaryArchSuffix}_devel + cmd:gcc$secondaryArchSuffix + " + +BUILD() +{ + sh make_beos.sh +} + +INSTALL() +{ + mkdir -p $binDir + cp bam $binDir +} diff --git a/dev-util/bam/patches/bam-0.4.0.patch b/dev-util/bam/patches/bam-0.4.0.patch new file mode 100644 index 000000000..8c5c48898 --- /dev/null +++ b/dev-util/bam/patches/bam-0.4.0.patch @@ -0,0 +1,26 @@ +Only in bam-0.4.0: bam +diff -ur bam-0.4.0-orig/make_beos.sh bam-0.4.0/make_beos.sh +--- bam-0.4.0-orig/make_beos.sh 2010-08-09 21:08:24.043778048 +0300 ++++ bam-0.4.0/make_beos.sh 2014-12-15 21:08:44.414187520 +0200 +@@ -1,4 +1,4 @@ + #!/bin/sh + gcc -Wall -ansi -pedantic src/tools/txt2c.c -o src/tools/txt2c + src/tools/txt2c src/base.lua src/tools.lua src/driver_gcc.lua src/driver_cl.lua > src/internal_base.h +-gcc -Wall -ansi -pedantic src/lua/*.c src/*.c -o bam -I src/lua -lpthread -O2 $* ++gcc -Wall -ansi -pedantic src/lua/*.c src/*.c -o bam -I src/lua -O2 $* +diff -ur bam-0.4.0-orig/src/support.c bam-0.4.0/src/support.c +--- bam-0.4.0-orig/src/support.c 2010-08-09 21:08:24.045875200 +0300 ++++ bam-0.4.0/src/support.c 2014-12-15 23:47:55.438042624 +0200 +@@ -140,7 +140,11 @@ + #include + #include + #include ++#ifdef BAM_FAMILY_BEOS ++ #include ++#else + #include ++#endif + #include + #include + #include +Binary files bam-0.4.0-orig/src/tools/txt2c and bam-0.4.0/src/tools/txt2c differ