2016-02-16 13:28:21 +00:00
|
|
|
# Copyright 2016 Julian Ospald <hasufell@posteo.de>
|
|
|
|
# Distributed under the terms of the GNU General Public License v2
|
|
|
|
|
2016-04-22 14:41:52 +00:00
|
|
|
require bitbucket [ user=gennady tag=v${PV} ]
|
|
|
|
|
2016-02-16 13:28:21 +00:00
|
|
|
SUMMARY="A port of Jagged Alliance 2 to SDL"
|
2016-04-22 14:41:52 +00:00
|
|
|
HOMEPAGE+=" http://tron.homeunix.org/ja2/"
|
|
|
|
DOWNLOADS+=" mirror://gentoo/editor.slf.gz"
|
2016-02-16 13:28:21 +00:00
|
|
|
|
|
|
|
LICENCES="SFI-SCLA"
|
|
|
|
SLOT="0"
|
|
|
|
PLATFORMS="~amd64 ~x86"
|
|
|
|
|
|
|
|
DEPENDENCIES="
|
|
|
|
build+run:
|
|
|
|
media-libs/SDL:0[X]
|
|
|
|
"
|
|
|
|
|
2016-02-16 13:29:52 +00:00
|
|
|
DEFAULT_SRC_PREPARE_PATCHES=( "${FILES}"/${PNV}-makefile.patch )
|
|
|
|
|
2016-02-16 13:28:21 +00:00
|
|
|
src_unpack() {
|
|
|
|
default
|
2016-05-13 20:41:29 +00:00
|
|
|
edo mv gennady-ja2-stracciatella-* "${WORK}"
|
2016-02-16 13:28:21 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
src_configure() {
|
|
|
|
# not an autoconf script
|
2016-02-28 23:05:15 +00:00
|
|
|
edo ./configure --prefix=/usr
|
2016-02-16 13:28:21 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
src_compile() {
|
2016-02-17 01:53:28 +00:00
|
|
|
emake Q=""
|
2016-02-16 13:28:21 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
src_install() {
|
2016-02-17 01:53:28 +00:00
|
|
|
emake \
|
|
|
|
BINARY_DIR="${IMAGE}/usr/$(exhost --target)/bin" \
|
|
|
|
MANPAGE_DIR="${IMAGE}/usr/share/man/man6" \
|
|
|
|
FULL_PATH_EXTRA_DATA_DIR="${IMAGE}/usr/share/ja2" \
|
|
|
|
install
|
2016-02-16 13:28:21 +00:00
|
|
|
|
|
|
|
insinto /usr/share/ja2/data
|
|
|
|
doins "${WORKBASE}"/editor.slf
|
|
|
|
|
|
|
|
insinto /usr/share/applications
|
|
|
|
hereins ${PN}.desktop <<EOF
|
|
|
|
[Desktop Entry]
|
|
|
|
Name=ja2-stracciatella
|
|
|
|
Type=Application
|
|
|
|
Comment=A port of Jagged Alliance 2 to SDL
|
|
|
|
Exec=ja2
|
|
|
|
TryExec=ja2
|
|
|
|
Icon=ja2-stracciatella
|
|
|
|
Categories=Game;StrategyGame;
|
|
|
|
EOF
|
|
|
|
}
|
|
|
|
|
|
|
|
pkg_postinst() {
|
2016-02-17 01:53:28 +00:00
|
|
|
elog "You need to copy all files from the Data directory of"
|
|
|
|
elog "Jagged Alliance 2 installation to"
|
|
|
|
elog "/usr/share/ja2/data "
|
|
|
|
elog "Make sure the filenames are lowercase. You may want to run the"
|
|
|
|
elog "script"
|
|
|
|
elog "/usr/bin/ja2-convert"
|
2016-02-16 13:28:21 +00:00
|
|
|
}
|
|
|
|
|