mirror of
https://github.com/yann64/haikuports.git
synced 2026-04-22 19:50:05 +02:00
Add Bam 0.4.0 recipe and patch
This commit is contained in:
42
dev-util/bam/bam-0.4.0.recipe
Normal file
42
dev-util/bam/bam-0.4.0.recipe
Normal 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
|
||||
}
|
||||
26
dev-util/bam/patches/bam-0.4.0.patch
Normal file
26
dev-util/bam/patches/bam-0.4.0.patch
Normal 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
|
||||
Reference in New Issue
Block a user