void-packages/srcpkgs/gdash/template
2020-09-22 15:04:49 +02:00

34 lines
1,016 B
Bash

# Template file for 'gdash'
pkgname=gdash
version=20180129
revision=2
wrksrc=${pkgname}-${version}unstable
build_style=gnu-configure
hostmakedepends="gettext-devel glib-devel gtk+-devel SDL2-devel pkg-config"
makedepends="glu-devel gtk+-devel SDL2_image-devel SDL2_mixer-devel"
configure_args="--with-sdl-prefix=${XBPS_CROSS_BASE}/usr"
short_desc="Boulder Dash clone close to the original"
maintainer="Jürgen Buchmüller <pullmoll@t-online.de>"
license="MIT"
homepage="https://bitbucket.org/czirkoszoltan/gdash"
distfiles="https://bitbucket.org/czirkoszoltan/${pkgname}/downloads/${pkgname}-${version}unstable.tar.gz"
checksum=7d4bc188d26b6cfce2c94c17dada22282a7108482c5a0f87d37f6ac6db76298e
replaces="gdash-data"
if [ -n "$CROSS_BUILD" ]; then
# Make sure SDL_opengl.h finds GL/gl.h
CXXFLAGS="-I${XBPS_CROSS_BASE}/usr/include"
fi
pre_build() {
if [ "$CROSS_BUILD" ]; then
cd ${wrksrc}/include
g++ -O2 -o files2c files2c.cpp
sed -i Makefile -e "s; files2c;;"
fi
}
post_install() {
vlicense COPYING
}