2006-12-05 18:15:10 +01:00
|
|
|
# New ports collection makefile for: Jagged Alliance 2
|
2007-03-16 13:14:49 +01:00
|
|
|
# Date created: 16 Nov 2006
|
2006-12-05 18:15:10 +01:00
|
|
|
# Whom: Christoph Mallon <christoph.mallon@gmx.de>
|
|
|
|
#
|
|
|
|
# $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
|
2006-12-05 18:15:10 +01:00
|
|
|
COMMENT= A port of "Jagged Alliance 2" using SDL
|
|
|
|
|
|
|
|
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
|
|
|
|
USE_GMAKE= yes
|
|
|
|
USE_SDL= sdl
|
2009-06-14 10:41:39 +02:00
|
|
|
MAKE_JOBS_SAFE= yes
|
2006-12-05 18:15:10 +01:00
|
|
|
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
|
|
|
|
2008-03-06 22:13:42 +01:00
|
|
|
OPTIONS= DUTCH "Compile for Dutch version (choose ONE)" Off \
|
|
|
|
ENGLISH "Compile for English version (choose ONE)" Off \
|
|
|
|
FRENCH "Compile for French version (choose ONE)" Off \
|
|
|
|
GERMAN "Compile for German version (choose ONE)" Off \
|
|
|
|
ITALIAN "Compile for Italian version (choose ONE)" Off \
|
|
|
|
POLISH "Compile for Polish version (choose ONE)" Off \
|
2010-02-20 13:37:38 +01:00
|
|
|
RUSSIAN "Compile for Russian version (choose ONE)" Off \
|
|
|
|
RUSSIAN_GOLD "Compile for Russian Gold version (choose ONE)" Off
|
2006-12-05 18:15:10 +01:00
|
|
|
|
|
|
|
.include <bsd.port.pre.mk>
|
|
|
|
|
2007-09-13 22:38:51 +02:00
|
|
|
.ifdef WITH_ENGLISH
|
2007-03-16 13:14:49 +01:00
|
|
|
MAKE_ARGS+= LNG=ENGLISH
|
2006-12-05 18:15:10 +01:00
|
|
|
.elifdef WITH_DUTCH
|
2007-03-16 13:14:49 +01:00
|
|
|
MAKE_ARGS+= LNG=DUTCH
|
2006-12-05 18:15:10 +01:00
|
|
|
.elifdef WITH_FRENCH
|
2007-03-16 13:14:49 +01:00
|
|
|
MAKE_ARGS+= LNG=FRENCH
|
2006-12-05 18:15:10 +01:00
|
|
|
.elifdef WITH_GERMAN
|
2007-03-16 13:14:49 +01:00
|
|
|
MAKE_ARGS+= LNG=GERMAN
|
2006-12-05 18:15:10 +01:00
|
|
|
.elifdef WITH_ITALIAN
|
2007-03-16 13:14:49 +01:00
|
|
|
MAKE_ARGS+= LNG=ITALIAN
|
2006-12-05 18:15:10 +01:00
|
|
|
.elifdef WITH_POLISH
|
2007-03-16 13:14:49 +01:00
|
|
|
MAKE_ARGS+= LNG=POLISH
|
2007-07-24 12:41:31 +02:00
|
|
|
.elifdef WITH_RUSSIAN
|
|
|
|
MAKE_ARGS+= LNG=RUSSIAN
|
2010-02-20 13:37:38 +01:00
|
|
|
.elifdef WITH_RUSSIAN_GOLD
|
|
|
|
MAKE_ARGS+= LNG=RUSSIAN_GOLD
|
2006-12-05 18:15:10 +01:00
|
|
|
.else
|
|
|
|
IGNORE= no language has been chosen. Please choose the appropriate language for your game CD
|
|
|
|
.endif
|
|
|
|
|
|
|
|
MAKE_ARGS+= NO_DEPS=yes # For a single full build dependency calculation is unnecessary
|
|
|
|
|
2007-04-17 21:41:21 +02:00
|
|
|
MAKE_ARGS+= SGPDATADIR=${DATADIR}
|
2006-12-05 18:15:10 +01:00
|
|
|
|
2012-01-28 20:02:22 +01:00
|
|
|
MAKE_ARGS+= ${INSTALL_MACROS:S/BSD_//}
|
|
|
|
|
2006-12-05 18:15:10 +01:00
|
|
|
MAN6= ja2.6
|
|
|
|
|
|
|
|
post-install:
|
2007-09-13 22:38:51 +02:00
|
|
|
@${MKDIR} ${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 \
|
|
|
|
${DATADIR}/Data/*.[Ss][Ll][Ff] \
|
|
|
|
${DATADIR}/Data/TILECACHE/*.[Jj][Ss][Dd] \
|
|
|
|
${DATADIR}/Data/TILECACHE/*.[Ss][Tt][Ii]; \
|
|
|
|
do \
|
|
|
|
${MV} -n $$i `${DIRNAME} $$i`/`${BASENAME} $$i | ${TR} '[A-Z]' '[a-z]'`; \
|
|
|
|
done
|
|
|
|
|
|
|
|
.include <bsd.port.post.mk>
|