2015-11-05 16:39:06 +00:00
|
|
|
# Template file for 'openttd'
|
|
|
|
pkgname=openttd
|
2016-04-02 04:17:35 +00:00
|
|
|
version=1.6.0
|
2016-04-01 07:58:58 +00:00
|
|
|
revision=2
|
2015-11-05 16:39:06 +00:00
|
|
|
_gfxver=0.5.3
|
|
|
|
_sfxver=0.2.3
|
|
|
|
build_style=gnu-configure
|
|
|
|
configure_args="--menu-name=OpenTTD --personal-dir=.openttd"
|
|
|
|
hostmakedepends="pkg-config unzip"
|
2015-11-29 08:30:48 +00:00
|
|
|
makedepends="SDL-devel icu-devel fontconfig-devel libpng-devel lzo-devel liblzma-devel"
|
2015-11-05 16:39:06 +00:00
|
|
|
depends="openttd-data hicolor-icon-theme"
|
|
|
|
short_desc="Open Source version of Transport Tycoon Deluxe"
|
|
|
|
maintainer="Jürgen Buchmüller <pullmoll@t-online.de>"
|
|
|
|
license="GPL-2 Custom"
|
|
|
|
homepage="https://www.openttd.org/"
|
|
|
|
distfiles="
|
|
|
|
http://binaries.openttd.org/releases/${version}/openttd-${version}-source.tar.xz
|
|
|
|
http://bundles.openttdcoop.org/opengfx/releases/${_gfxver}/opengfx-${_gfxver}.zip
|
|
|
|
http://bundles.openttdcoop.org/opensfx/releases/${_sfxver}/opensfx-${_sfxver}.zip
|
|
|
|
"
|
|
|
|
checksum="
|
2016-04-02 04:17:35 +00:00
|
|
|
4c12e6b516ffdee20a03ebad80dad85d137130002d6d3e123a568376fe4b4eb2
|
2015-11-05 16:39:06 +00:00
|
|
|
f744e3bafc27ee03703554128f8dd6d187858af486b0dcfe9570832028073220
|
|
|
|
3574745ac0c138bae53b56972591db8d778ad9faffd51deae37a48a563e71662
|
|
|
|
"
|
|
|
|
|
|
|
|
post_extract() {
|
|
|
|
cd ${XBPS_BUILDDIR}
|
|
|
|
tar xf opengfx-${_gfxver}.tar
|
|
|
|
rm opengfx-${_gfxver}.tar
|
|
|
|
}
|
|
|
|
|
|
|
|
do_configure() {
|
|
|
|
./configure --prefix-dir=/usr \
|
|
|
|
--endian=LE \
|
|
|
|
--host=${XBPS_CROSS_TRIPLET} \
|
|
|
|
--cc-build=gcc \
|
|
|
|
--cxx-build=g++ \
|
|
|
|
--binary-dir=bin \
|
|
|
|
--data-dir=share/openttd \
|
|
|
|
--doc-dir=share/doc/openttd \
|
2016-04-02 04:22:24 +00:00
|
|
|
--with-lzo2=${XBPS_CROSS_BASE}/usr/lib \
|
2015-11-05 16:39:06 +00:00
|
|
|
--binary-name=openttd \
|
|
|
|
--install-dir=${DESTDIR} \
|
|
|
|
--menu-name=OpenTTD \
|
|
|
|
--personal-dir=.openttd
|
|
|
|
}
|
|
|
|
|
|
|
|
openttd-data_package() {
|
|
|
|
short_desc=" - data files"
|
|
|
|
noarch=yes
|
|
|
|
pkg_install() {
|
|
|
|
vmove usr/share/openttd
|
|
|
|
vmkdir usr/share/openttd/data
|
|
|
|
vcopy ${XBPS_BUILDDIR}/opengfx-${_gfxver}/*.grf usr/share/openttd/data
|
|
|
|
vcopy ${XBPS_BUILDDIR}/opengfx-${_gfxver}/*.obg usr/share/openttd/data
|
|
|
|
vcopy ${XBPS_BUILDDIR}/opensfx-${_sfxver}/opensfx.* usr/share/openttd/data
|
|
|
|
vlicense ${XBPS_BUILDDIR}/opengfx-${_gfxver}/license.txt LICENSE-gfx
|
|
|
|
vlicense ${XBPS_BUILDDIR}/opensfx-${_sfxver}/license.txt LICENSE-sfx
|
|
|
|
vdoc ${XBPS_BUILDDIR}/opengfx-${_gfxver}/readme.txt README-gfx
|
|
|
|
vdoc ${XBPS_BUILDDIR}/opensfx-${_sfxver}/readme.txt README-sfx
|
|
|
|
}
|
|
|
|
}
|