2011-11-03 22:18:24 +00:00
|
|
|
# Template file for 'foobillard'
|
|
|
|
pkgname=foobillard++
|
|
|
|
version=3.41beta
|
2013-04-30 09:51:59 +00:00
|
|
|
revision=5
|
2011-11-03 22:18:24 +00:00
|
|
|
wrksrc=foobillardplus-${version}
|
|
|
|
homepage="http://foobillardplus.sourceforge.net/"
|
|
|
|
distfiles="${SOURCEFORGE_SITE}/foobillardplus/foobillardplus-$version.tar.gz"
|
2013-04-30 09:51:59 +00:00
|
|
|
makedepends="freetype-devel libpng-devel>=1.6 MesaLib-devel SDL_net-devel desktop-file-utils"
|
2011-11-03 22:18:24 +00:00
|
|
|
short_desc="An OpenGL billard game - fork of foobillard"
|
|
|
|
maintainer="Juan RP <xtraeme@gmail.com>"
|
|
|
|
license="GPL-2"
|
|
|
|
checksum=e69218d4458c2c769396d7e8583e7309b719f8a15e9965940cf8aec2aaeca69a
|
|
|
|
long_desc="
|
|
|
|
It is not a new game, but an enhanced version of the great foobillard
|
|
|
|
3.0a by Florian Berger."
|
|
|
|
|
|
|
|
do_configure() {
|
|
|
|
sed -i 's|$prefix/foobillardplus|$prefix|' configure
|
|
|
|
sed -i 's|$prefix/data|$prefix/share/foobillardplus|' configure
|
|
|
|
sed -i 's|"/data"|"/share/foobillardplus"|' src/language.c
|
|
|
|
sed -i 's|/opt/foobillardplus/bin/||' foobillardplus.desktop
|
|
|
|
sed -i 's|/opt/foobillardplus/||' foobillardplus.desktop
|
2013-05-26 08:41:55 +00:00
|
|
|
./configure ${configure_args}
|
2011-11-03 22:18:24 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
do_build() {
|
|
|
|
make ${makejobs}
|
|
|
|
}
|
|
|
|
|
|
|
|
do_install() {
|
|
|
|
vinstall src/foobillardplus 755 usr/bin
|
|
|
|
vmkdir usr/share/foobillardplus
|
|
|
|
vcopy "data/*" usr/share/foobillardplus
|
|
|
|
vinstall foobillardplus.desktop 644 usr/share/applications
|
|
|
|
vinstall foobillardplus.png 644 usr/share/pixmaps
|
|
|
|
vinstall foobillardplus.xbm 644 usr/share/pixmaps
|
|
|
|
find ${DESTDIR} -depth -type d -name .svn -exec rm -rf {} \;
|
|
|
|
}
|
2013-04-12 09:16:02 +00:00
|
|
|
|
|
|
|
foobillard++_package() {
|
|
|
|
depends="desktop-file-utils"
|
|
|
|
pkg_install() {
|
2013-04-30 09:51:59 +00:00
|
|
|
vmove all
|
2013-04-12 09:16:02 +00:00
|
|
|
}
|
|
|
|
}
|