2014-08-21 21:41:33 +00:00
|
|
|
# Template file for 'bam'
|
|
|
|
pkgname=bam
|
|
|
|
version=0.4.0
|
2015-10-01 20:07:55 +00:00
|
|
|
revision=3
|
|
|
|
makedepends="lua52-devel"
|
2014-08-21 21:41:33 +00:00
|
|
|
short_desc="A fast and flexible build system using Lua"
|
|
|
|
maintainer="Christian Neukirchen <chneukirchen@gmail.com>"
|
|
|
|
license="custom"
|
|
|
|
homepage="http://github.com/matricks/bam"
|
|
|
|
distfiles="https://github.com/downloads/matricks/bam/${pkgname}-${version}.tar.gz"
|
|
|
|
checksum=5e4e4920b4d265da582f66774e9b1ec8ddfbe75ddc028fba86c12f686ea18db3
|
|
|
|
|
|
|
|
do_build() {
|
|
|
|
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
|
|
|
|
${CC} ${CFLAGS} -Wall -ansi -pedantic src/*.c src/lua/*.c -o bam -I src/lua -lm -lpthread -ldl -rdynamic ${LDFLAGS}
|
|
|
|
}
|
|
|
|
|
|
|
|
do_install() {
|
|
|
|
vbin bam
|
|
|
|
vlicense license.txt LICENSE
|
|
|
|
}
|