|
|
@ -3,8 +3,6 @@ |
|
|
|
# |
|
|
|
# Filename: package/.../pingus/pingus.conf |
|
|
|
# Copyright (C) 2007 The OpenSDE Project |
|
|
|
# Copyright (C) 2004 - 2006 The T2 SDE Project |
|
|
|
# Copyright (C) 1998 - 2003 Clifford Wolf |
|
|
|
# |
|
|
|
# More information can be found in the files COPYING and README. |
|
|
|
# |
|
|
@ -14,22 +12,26 @@ |
|
|
|
# GNU General Public License can be found in the file COPYING. |
|
|
|
# --- SDE-COPYRIGHT-NOTE-END --- |
|
|
|
|
|
|
|
# Prevent executing normal make and install build steps. |
|
|
|
# This package uses scons and a custom install script. |
|
|
|
MAKE=scons |
|
|
|
makeinstopt='' |
|
|
|
|
|
|
|
bindir=$root/$SDECFG_PKG_GAMES_BINDIR |
|
|
|
datadir=$root/$SDECFG_PKG_GAMES_DATADIR |
|
|
|
datadir=$root/$SDECFG_PKG_GAMES_DATADIR/$pkg |
|
|
|
|
|
|
|
pingus_install() { |
|
|
|
# We need to do some additional magic. |
|
|
|
pushd $builddir/pingus-${ver} |
|
|
|
|
|
|
|
[ "$SDECFG_DISABLE_NLS" == "1" ] && \ |
|
|
|
var_append extraconfopt " " "--disable-nls" |
|
|
|
[ "$SDECFG_PKG_PINGUS_NOGETTEXT" == "1" ] && \ |
|
|
|
var_append extraconfopt " " "--without-gettext" |
|
|
|
[ "$SDECFG_PKG_PINGUS_OPENGL" == "1" ] && \ |
|
|
|
var_append extraconfopt " " "--with-clanGL" |
|
|
|
# Custom installation steps. We could trim some additional fat |
|
|
|
# here (look at install.sh). install.sh complained and could not |
|
|
|
# be easily fixed. |
|
|
|
install -v pingus "$bindir/$pkg" |
|
|
|
tar -c data | tar -x -C $datadir |
|
|
|
|
|
|
|
pkgprefix -t clanlib06 |
|
|
|
for x in CXX CPP GCC; do |
|
|
|
var_append ${x}_WRAPPER_APPEND ' ' "-I$( pkgprefix includedir clanlib06 )/ClanLib-0.6" |
|
|
|
done |
|
|
|
for x in CXX GCC; do |
|
|
|
var_append ${x}_WRAPPER_APPEND ' ' "-L$( pkgprefix libdir clanlib06 )" |
|
|
|
done |
|
|
|
# Restore directory. |
|
|
|
popd |
|
|
|
} |
|
|
|
|
|
|
|
autogen=1 |
|
|
|
hook_add postmake 5 pingus_install |