2015-10-18 17:47:08 +00:00
|
|
|
# Template file for 'TSC'
|
|
|
|
pkgname=TSC
|
|
|
|
version=2.0.0
|
2015-11-15 21:33:58 +00:00
|
|
|
revision=2
|
2015-10-18 17:47:08 +00:00
|
|
|
build_style=cmake
|
|
|
|
build_wrksrc=tsc
|
2015-11-15 21:32:19 +00:00
|
|
|
configure_args="-DFIXED_DATA_DIR=/usr/share/TSC -DBINARY_DIR=/usr/bin"
|
2015-10-18 17:47:08 +00:00
|
|
|
make_build_args="LD=\${CXX}"
|
|
|
|
hostmakedepends="bison flex cmake gperf pkg-config ruby"
|
2015-11-15 21:32:19 +00:00
|
|
|
makedepends="boost-devel cegui07-devel devil-devel gettext-devel glew-devel
|
|
|
|
libvorbis-devel libxml++-devel SDL_image-devel SDL_mixer-devel SDL_ttf-devel"
|
2015-10-18 17:47:08 +00:00
|
|
|
depends="TSC-data>=${version}_${revision}"
|
|
|
|
short_desc="OSS 2D platform game"
|
|
|
|
maintainer="Jürgen Buchmüller <pullmoll@t-online.de>"
|
|
|
|
license="GPL-3"
|
|
|
|
homepage="http://www.secretchronicles.de/"
|
2015-11-15 21:32:19 +00:00
|
|
|
distfiles="ftp://ftp.secretchronicles.de/releases/${pkgname}-${version}.tar.xz"
|
|
|
|
checksum=c8a9ca3975f9de16aa59fab2a7864c3c541963b46c2c40533632c4fc621b407a
|
2015-10-18 17:47:08 +00:00
|
|
|
nocross=yes # Fails to run generated mruby/mrbc
|
|
|
|
|
|
|
|
CXXFLAGS="-std=c++11"
|
|
|
|
|
2015-11-15 21:32:19 +00:00
|
|
|
pre_configure() {
|
|
|
|
# Fix man page path
|
|
|
|
sed -i CMakeLists.txt -e "s;DESTINATION man/man6;DESTINATION share/man/man6;"
|
|
|
|
}
|
|
|
|
|
2015-10-18 17:47:08 +00:00
|
|
|
post_install() {
|
|
|
|
vbin build/tsc
|
|
|
|
vinstall extras/tsc.desktop 644 usr/share/applications
|
|
|
|
}
|
|
|
|
|
|
|
|
TSC-data_package() {
|
|
|
|
short_desc+=" - data files"
|
|
|
|
noarch=yes
|
|
|
|
pkg_install() {
|
|
|
|
vmove usr/share/TSC
|
|
|
|
}
|
|
|
|
}
|