47 lines
1.4 KiB
Bash
47 lines
1.4 KiB
Bash
# Template file for 'xmoto'
|
|
pkgname=xmoto
|
|
version=0.5.11
|
|
revision=10
|
|
build_style=gnu-configure
|
|
configure_args="--disable-sdltest CPPFLAGS=-DdDOUBLE"
|
|
hostmakedepends="automake libtool gettext-devel intltool desktop-file-utils"
|
|
makedepends="sqlite-devel zlib-devel libjpeg-turbo-devel libpng-devel
|
|
libxml2-devel libxdg-basedir-devel glu-devel SDL-devel SDL_mixer-devel
|
|
SDL_net-devel SDL_ttf-devel lua52-devel libcurl-devel libode-devel bzip2-devel"
|
|
depends="${pkgname}-data"
|
|
short_desc="2D motocross platform game"
|
|
maintainer="Enno Boland <gottox@voidlinux.eu>"
|
|
license="GPL-2.0-or-later"
|
|
homepage="http://xmoto.tuxfamily.org/"
|
|
distfiles="http://download.tuxfamily.org/xmoto/xmoto/${version}/xmoto-${version}-src.tar.gz"
|
|
checksum=a584a6f9292b184686b72c78f16de4b82d5c5b72ad89e41912ff50d03eca26b2
|
|
|
|
if [ "$CROSS_BUILD" ]; then
|
|
# configure can't test this when cross compiling
|
|
export ac_cv_lib_GLU_gluBuild2DMipmaps=yes
|
|
LDFLAGS="-L${XBPS_CROSS_BASE}/usr/lib"
|
|
hostmakedepends+=" SDL_mixer-devel libxml2-devel"
|
|
fi
|
|
|
|
pre_configure() {
|
|
# remove old ode version
|
|
rm -r src/ode
|
|
mv configure.{in,ac}
|
|
libtoolize
|
|
./bootstrap
|
|
}
|
|
|
|
post_install() {
|
|
desktop-file-install --set-key=Icon --set-value=xmoto -m 0644 \
|
|
--dir="${DESTDIR}/usr/share/applications" extra/xmoto.desktop
|
|
vinstall extra/xmoto.xpm 644 usr/share/pixmaps
|
|
}
|
|
|
|
xmoto-data_package() {
|
|
short_desc+=" - data files"
|
|
noarch=yes
|
|
pkg_install() {
|
|
vmove usr/share/xmoto
|
|
}
|
|
}
|