46 lines
1.2 KiB
Bash
46 lines
1.2 KiB
Bash
# Template file for 'enigma'
|
|
pkgname=enigma
|
|
version=1.21
|
|
revision=3
|
|
build_style=gnu-configure
|
|
hostmakedepends="ImageMagick automake libtool gettext-devel SDL-devel pkg-config"
|
|
makedepends="libcurl-devel libxerces-c-devel SDL_mixer-devel SDL_image-devel SDL_ttf-devel"
|
|
depends="enigma-data>=${version}_${revision}"
|
|
short_desc="Puzzle game inspired by Oxyd on the Atari ST"
|
|
maintainer="Jürgen Buchmüller <pullmoll@t-online.de>"
|
|
license="GPL-2"
|
|
homepage="http://www.nongnu.org/enigma/"
|
|
distfiles="${SOURCEFORGE_SITE}/enigma-game/Release%20${version}/${pkgname}-${version}.tar.gz"
|
|
checksum=d872cf067d8eb560d3bb1cb17245814bc56ac3953ae1f12e2229c8eb6f82ce01
|
|
|
|
CXXFLAGS="-I${XBPS_CROSS_BASE}/usr/include/SDL"
|
|
|
|
pre_configure() {
|
|
local dir
|
|
for dir in . lib-src/enet lib-src/zipios++; do
|
|
[ ! -f ${dir}/COPYING ] && cp ${wrksrc}/doc/gpl.txt ${dir}/COPYING
|
|
touch ${dir}/NEWS ${dir}/AUTHORS ${dir}/ChangeLog
|
|
done
|
|
autoreconf -if
|
|
}
|
|
|
|
post_install() {
|
|
# remove the libenet headers and static library
|
|
rm -r ${DESTDIR}/usr/include ${DESTDIR}/usr/lib/libenet.a
|
|
}
|
|
|
|
enigma-data_package() {
|
|
short_desc+=" - data files"
|
|
noarch=yes
|
|
pkg_install() {
|
|
vmove usr/share/enigma
|
|
}
|
|
}
|
|
|
|
enigma-doc_package() {
|
|
short_desc+=" - documentation"
|
|
noarch=yes
|
|
pkg_install() {
|
|
vmove usr/share/doc
|
|
}
|
|
}
|