2013-02-12 22:15:44 +01:00
|
|
|
# Created by: Christoph Mallon <christoph.mallon@gmx.de>
|
2006-12-05 18:15:10 +01:00
|
|
|
# $FreeBSD$
|
|
|
|
|
|
|
|
PORTNAME= ja2
|
2010-02-20 13:37:38 +01:00
|
|
|
PORTVERSION= 0.12.1
|
2012-02-18 11:18:33 +01:00
|
|
|
PORTREVISION= 1
|
2006-12-05 18:15:10 +01:00
|
|
|
CATEGORIES= games
|
2007-03-16 13:14:49 +01:00
|
|
|
MASTER_SITES= http://deponie.yamagi.org/freebsd/distfiles/ \
|
2009-02-15 12:44:26 +01:00
|
|
|
http://tron.homeunix.org/ja2/
|
2006-12-05 18:15:10 +01:00
|
|
|
|
2012-04-21 20:33:49 +02:00
|
|
|
MAINTAINER= lme@FreeBSD.org
|
2014-06-13 09:36:27 +02:00
|
|
|
COMMENT= Port of "Jagged Alliance 2" using SDL
|
2006-12-05 18:15:10 +01:00
|
|
|
|
|
|
|
DISTVERSIONSUFFIX= -source
|
|
|
|
|
|
|
|
# Ignore this if you feel adventurous
|
2009-06-14 10:41:39 +02:00
|
|
|
ONLY_FOR_ARCHS= amd64 arm i386 pc98
|
|
|
|
ONLY_FOR_ARCHS_REASON= Needs a little endian environment
|
2006-12-05 18:15:10 +01:00
|
|
|
USE_BZIP2= yes
|
2013-09-28 17:09:55 +02:00
|
|
|
USES= gmake
|
2006-12-05 18:15:10 +01:00
|
|
|
USE_SDL= sdl
|
|
|
|
NO_CDROM= License only permits non-commerical use
|
|
|
|
NO_PACKAGE= Language of the datafiles must be hardcoded in the game binary
|
|
|
|
|
|
|
|
WRKSRC= ${WRKDIR}/${PORTNAME}-${PORTVERSION}
|
2010-02-01 03:18:37 +01:00
|
|
|
SUB_FILES= pkg-message
|
2006-12-05 18:15:10 +01:00
|
|
|
|
2013-02-12 22:09:20 +01:00
|
|
|
OPTIONS_SINGLE= LANGUAGE
|
|
|
|
OPTIONS_SINGLE_LANGUAGE= DUTCH ENGLISH FRENCH GERMAN ITALIAN POLISH RUSSIAN RUSSIAN_GOLD
|
2013-05-04 22:00:38 +02:00
|
|
|
OPTIONS_DEFAULT= ENGLISH
|
2013-02-12 22:09:20 +01:00
|
|
|
|
|
|
|
DUTCH_DESC= Compile for Dutch version
|
|
|
|
ENGLISH_DESC= Compile for English version
|
|
|
|
FRENCH_DESC= Compile for French version
|
|
|
|
GERMAN_DESC= Compile for German version
|
|
|
|
ITALIAN_DESC= Compile for Italian version
|
|
|
|
POLISH_DESC= Compile for Polish version
|
|
|
|
RUSSIAN_DESC= Compile for Russian version
|
|
|
|
RUSSIAN_GOLD_DESC= Compile for Russian Gold version
|
|
|
|
|
|
|
|
.include <bsd.port.options.mk>
|
|
|
|
|
|
|
|
.for i in ${OPTIONS_SINGLE_LANGUAGE}
|
|
|
|
. if ${PORT_OPTIONS:M${i}}
|
|
|
|
MAKE_ARGS+= LNG=${i}
|
|
|
|
. endif
|
|
|
|
.endfor
|
2006-12-05 18:15:10 +01:00
|
|
|
|
|
|
|
MAKE_ARGS+= NO_DEPS=yes # For a single full build dependency calculation is unnecessary
|
|
|
|
|
2013-09-28 17:09:55 +02:00
|
|
|
MAKE_ARGS+= SGPDATADIR=${STAGEDIR}${DATADIR}
|
2006-12-05 18:15:10 +01:00
|
|
|
|
2012-01-28 20:02:22 +01:00
|
|
|
MAKE_ARGS+= ${INSTALL_MACROS:S/BSD_//}
|
|
|
|
|
2013-09-28 17:09:55 +02:00
|
|
|
MAKE_ARGS+= PREFIX=${STAGEDIR}${PREFIX} MANPREFIX=${STAGEDIR}${PREFIX}
|
2006-12-05 18:15:10 +01:00
|
|
|
|
|
|
|
post-install:
|
2013-09-28 17:09:55 +02:00
|
|
|
@${MKDIR} ${STAGEDIR}${DATADIR}/Data/TILECACHE
|
2010-02-01 03:18:37 +01:00
|
|
|
@${CAT} ${PKGMESSAGE}
|
2006-12-05 18:15:10 +01:00
|
|
|
|
|
|
|
lowercase:
|
|
|
|
@for i in \
|
2013-09-28 17:09:55 +02:00
|
|
|
${STAGEDIR}${DATADIR}/Data/*.[Ss][Ll][Ff] \
|
|
|
|
${STAGEDIR}${DATADIR}/Data/TILECACHE/*.[Jj][Ss][Dd] \
|
|
|
|
${STAGEDIR}${DATADIR}/Data/TILECACHE/*.[Ss][Tt][Ii]; \
|
2006-12-05 18:15:10 +01:00
|
|
|
do \
|
|
|
|
${MV} -n $$i `${DIRNAME} $$i`/`${BASENAME} $$i | ${TR} '[A-Z]' '[a-z]'`; \
|
|
|
|
done
|
|
|
|
|
2013-02-12 22:09:20 +01:00
|
|
|
.include <bsd.port.mk>
|