2009-06-12 15:25:17 +02:00
|
|
|
# Copyright 2009 Daniel Mierswa <impulze@impulze.org>
|
|
|
|
# Distributed under the terms of the GNU General Public License v2
|
|
|
|
|
|
|
|
SUMMARY="A tactical role-playing game. Third game of the Jagged Alliance series."
|
|
|
|
DESCRIPTION="A very high rated tactical role-playing game with a big community and
|
|
|
|
lots of modifications."
|
|
|
|
HOMEPAGE="http://ja2.dragonriders.de"
|
|
|
|
DOWNLOADS="editor? ( http://tron.homeunix.org/ja2/editor.slf.gz -> ${PN}-editor.slf.gz )"
|
|
|
|
|
|
|
|
if [[ "${PV}" != scm ]] ; then
|
|
|
|
DOWNLOADS+=" http://tron.homeunix.org/ja2/ja2-${PV}-source.tar.bz2"
|
|
|
|
WORK="${WORKBASE}/ja2-${PV}"
|
|
|
|
fi
|
|
|
|
|
|
|
|
LICENCES="SFI-SCLA"
|
|
|
|
SLOT="0"
|
|
|
|
|
|
|
|
MYOPTIONS="debug demo editor
|
|
|
|
linguas: (
|
|
|
|
( nl en fr de it pl ru ) [[ description = [ Jagged Alliance 2 Vanilla Translations ] ]]
|
|
|
|
( ru_gold ) [[ description = [ Jagged Alliance 2 Gold Translations ] ]]
|
|
|
|
) [[ number-selected = exactly-one ]]"
|
|
|
|
|
|
|
|
DEPENDENCIES="
|
|
|
|
build+run:
|
|
|
|
media-libs/SDL
|
|
|
|
"
|
|
|
|
|
|
|
|
UPSTREAM_CHANGELOG="http://tron.homeunix.org/ja2"
|
|
|
|
|
|
|
|
ja2_config() {
|
|
|
|
until [ $# -eq 0 ] ; do
|
|
|
|
echo "$1" >> config.default
|
|
|
|
shift
|
|
|
|
done
|
|
|
|
}
|
|
|
|
|
|
|
|
src_prepare() {
|
2009-10-13 01:29:30 +02:00
|
|
|
sed -e "s:TILECACHE:[Tt][Ii][Ll][Ee][Cc][Aa][Cc][Hh][Ee]:g" \
|
|
|
|
-e '/^INSTALL_PROGRAM ?= /s: -s::' \
|
|
|
|
-i Makefile || die "sed Makefile failed"
|
2009-06-12 15:25:17 +02:00
|
|
|
option debug && ja2_config _DEBUG=yes WITH_SOUND_DEBUG=yes
|
|
|
|
option demo && ja2_config WITH_DEMO=yes
|
|
|
|
option editor && ja2_config JA2EDITOR=yes
|
|
|
|
option linguas:nl && ja2_config LNG=DUTCH
|
|
|
|
option linguas:en && ja2_config LNG=ENGLISH
|
|
|
|
option linguas:fr && ja2_config LNG=FRENCH
|
|
|
|
option linguas:de && ja2_config LNG=GERMAN
|
|
|
|
option linguas:it && ja2_config LNG=ITALIAN
|
|
|
|
option linguas:pl && ja2_config LNG=POLISH
|
|
|
|
option linguas:ru && ja2_config LNG=RUSSIAN
|
|
|
|
option linguas:ru_gold && ja2_config LNG=RUSSIAN_GOLD
|
2010-01-08 01:29:42 +01:00
|
|
|
ja2_config CC="${CC}" CXX="${CXX}"
|
2009-06-12 15:25:17 +02:00
|
|
|
ja2_config PREFIX="${IMAGE}/usr" MANPREFIX="${IMAGE}/usr/share"
|
|
|
|
}
|
|
|
|
|
|
|
|
src_install() {
|
|
|
|
default
|
|
|
|
insinto /usr/share/${PN}
|
|
|
|
doins Makefile
|
|
|
|
option editor && newins "${WORKBASE}/${PN}-editor.slf" editor.slf
|
|
|
|
}
|
|
|
|
|
|
|
|
pkg_postinst() {
|
|
|
|
elog "Before playing:"
|
2009-06-12 16:25:41 +02:00
|
|
|
elog " make -f /usr/share/${PN}/Makefile SGPDATADIR=/path/to/data lowercase"
|
2009-06-12 15:25:17 +02:00
|
|
|
if option editor ; then
|
2009-06-12 16:25:41 +02:00
|
|
|
elog " cp /usr/share/${PN}/editor.slf /path/to/data/Data/"
|
2009-06-12 15:25:17 +02:00
|
|
|
fi
|
|
|
|
elog "Then put:"
|
2009-06-12 16:25:41 +02:00
|
|
|
elog " data_dir = /path/to/data"
|
2009-06-12 15:25:17 +02:00
|
|
|
elog "into ~/.ja2/ja2.ini where /path/to/data is the topmost data directory (i.e. /path/to/data/Data exists)"
|
|
|
|
}
|
2009-07-29 12:55:27 +02:00
|
|
|
|