2016-05-09 14:18:22 +02:00
|
|
|
# Template file for 'crawl-tiles'
|
|
|
|
pkgname=crawl-tiles
|
2016-11-24 13:13:12 +01:00
|
|
|
version=0.19.1
|
2016-05-09 14:18:22 +02:00
|
|
|
revision=1
|
|
|
|
wrksrc="crawl-${version}"
|
|
|
|
build_wrksrc="crawl-ref/source"
|
|
|
|
make_build_args="prefix=/usr bin_prefix=bin DATADIR=/usr/share/crawl-tiles
|
|
|
|
TILES=y SOUND=y GAME=crawl-tiles"
|
|
|
|
hostmakedepends="pkg-config perl pngcrush dejavu-fonts-ttf"
|
|
|
|
makedepends="ncurses-devel lua51-devel sqlite-devel zlib-devel
|
2016-05-09 14:29:26 +02:00
|
|
|
SDL2-devel SDL2_mixer-devel SDL2_image-devel freetype-devel"
|
2016-05-09 14:18:22 +02:00
|
|
|
depends="dejavu-fonts-ttf"
|
|
|
|
short_desc="Dungeon Crawl Stone Soup roguelike adventure (with tiles GUI)"
|
|
|
|
maintainer="Christian Neukirchen <chneukirchen@gmail.com>"
|
|
|
|
license="GPL-2"
|
|
|
|
homepage="http://crawl.develz.org/"
|
|
|
|
distfiles="https://github.com/crawl/crawl/archive/${version}.tar.gz"
|
2016-11-24 13:13:12 +01:00
|
|
|
checksum=f31d605025be52239e1a401400bc3243219fb5d14088d9fc8a9db350a24eda98
|
2016-05-09 14:18:22 +02: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" \
|
|
|
|
${make_build_args} 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
|
|
|
|
}
|