Add Bam 0.4.0 recipe and patch

This commit is contained in:
Theodore Kokkoris
2014-12-16 00:48:17 +02:00
parent 5164cb2207
commit 5ae376e994
2 changed files with 68 additions and 0 deletions

View File

@@ -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
}

View File

@@ -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 <dlfcn.h>
#include <unistd.h>
#include <sys/types.h>
+#ifdef BAM_FAMILY_BEOS
+ #include <signal.h>
+#else
#include <sys/signal.h>
+#endif
#include <sys/stat.h>
#include <utime.h>
#include <pthread.h>
Binary files bam-0.4.0-orig/src/tools/txt2c and bam-0.4.0/src/tools/txt2c differ