2015-11-09 16:09:38 +00:00
|
|
|
# Template file for 'crawl'
|
|
|
|
pkgname=crawl
|
2017-01-22 16:37:06 +00:00
|
|
|
version=0.19.3
|
2015-11-09 16:09:38 +00:00
|
|
|
revision=1
|
|
|
|
build_wrksrc="crawl-ref/source"
|
|
|
|
make_build_args="prefix=/usr bin_prefix=bin"
|
|
|
|
hostmakedepends="pkg-config perl"
|
|
|
|
makedepends="ncurses-devel lua51-devel sqlite-devel zlib-devel"
|
|
|
|
short_desc="Dungeon Crawl Stone Soup roguelike adventure"
|
2017-01-22 16:37:06 +00:00
|
|
|
maintainer="Leah Neukirchen <leah@vuxu.org>"
|
2015-11-09 16:09:38 +00:00
|
|
|
license="GPL-2"
|
|
|
|
homepage="http://crawl.develz.org/"
|
|
|
|
distfiles="https://github.com/${pkgname}/${pkgname}/archive/${version}.tar.gz"
|
2017-01-22 16:37:06 +00:00
|
|
|
checksum=0377fd5101c2522e492d5647fa45d86e132e1a8b80a686237d382eff100a5297
|
2015-11-09 16:09:38 +00:00
|
|
|
nocross=yes
|
|
|
|
|
|
|
|
post_extract() {
|
|
|
|
sed -i 's/defined(__ANDROID__)/& || !defined(__GLIBC__)/' ${build_wrksrc}/crash.cc
|
|
|
|
}
|
|
|
|
|
|
|
|
do_build() {
|
|
|
|
echo $version >util/release_ver
|
|
|
|
# crashes with relro?
|
|
|
|
make ${makejobs} CC="$CC" CXX="$CXX" \
|
|
|
|
EXTERNAL_FLAGS="$CFLAGS" V=1 build-rltiles
|
|
|
|
make ${makejobs} CC="$CC" CXX="$CXX" \
|
|
|
|
EXTERNAL_FLAGS="$CFLAGS" EXTERNAL_LDFLAGS="$LDFLAGS" \
|
|
|
|
${make_build_args} V=1 DESTDIR=${DESTDIR}
|
|
|
|
}
|
|
|
|
|
|
|
|
do_install() {
|
|
|
|
make CC="$CC" CXX="$CXX" \
|
|
|
|
EXTERNAL_FLAGS="$CFLAGS" EXTERNAL_LDFLAGS="$LDFLAGS" \
|
|
|
|
${make_build_args} DESTDIR=${DESTDIR} install
|
|
|
|
}
|