ports/105598: New port: games/ja2 A port of "Jagged Alliance 2" using SDL

Christoph Mallon christoph.mallon at gmx.de
Thu Nov 16 07:50:08 UTC 2006


>Number:         105598
>Category:       ports
>Synopsis:       New port: games/ja2 A port of "Jagged Alliance 2" using SDL
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-ports-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          change-request
>Submitter-Id:   current-users
>Arrival-Date:   Thu Nov 16 07:50:05 GMT 2006
>Closed-Date:
>Last-Modified:
>Originator:     Christoph Mallon
>Release:        n/a
>Organization:
n/a
>Environment:
n/a
>Description:
This is a source port of Jagged Alliance 2, in which the player controls
mercenaries to liberate the small country of Arulco.
You need an original game CD and installation to use this port.

Please add this port to the ports collection.
>How-To-Repeat:
n/a
>Fix:
n/a

Patch attached with submission follows:

# This is a shell archive.  Save it in a file, remove anything before
# this line, and then unpack it by entering "sh file".  Note, it may
# create directories; files and directories will be owned by you and
# have default permissions.
#
# This archive contains:
#
#	JaggedAlliance2/
#	JaggedAlliance2/Makefile
#	JaggedAlliance2/distinfo
#	JaggedAlliance2/pkg-descr
#	JaggedAlliance2/pkg-message
#	JaggedAlliance2/pkg-plist
#
echo c - JaggedAlliance2/
mkdir -p JaggedAlliance2/ > /dev/null 2>&1
echo x - JaggedAlliance2/Makefile
sed 's/^X//' >JaggedAlliance2/Makefile << 'END-of-JaggedAlliance2/Makefile'
X# New ports collection makefile for: Jagged Alliance 2
X# Date created:         xx Nov 2006
X# Whom:                 Christoph Mallon <christoph.mallon at gmx.de>
X#
X# $FreeBSD$
X#
X
XPORTNAME=	ja2
XPORTVERSION=	0.1
XCATEGORIES=	games
XMASTER_SITES=	\
X	http://deponie.yamagi.org/freebsd/distfiles/ \
X	http://ja2.dragonriders.de/files/
X
XMAINTAINER=	christoph.mallon at gmx.de
XCOMMENT=	A port of "Jagged Alliance 2" using SDL
X
XBUILD_DEPENDS=	iconv:${PORTSDIR}/converters/iconv
X
XDISTVERSIONSUFFIX=	-source
X
X# There are still many endianness and data size issues
X# Ignore this if you feel adventurous
XONLY_FOR_ARCHS=	i386
XUSE_BZIP2=	yes
XUSE_GMAKE=	yes
XUSE_SDL=	sdl
XNO_CDROM=	License only permits non-commerical use
XNO_PACKAGE=	Language of the datafiles must be hardcoded in the game binary
X
XWRKSRC=		${WRKDIR}/${PORTNAME}-${PORTVERSION}
X
XOPTIONS=	DUTCH	"Compile for dutch version"	Off \
X		ENGLISH	"Compile for english version"	Off \
X		FRENCH	"Compile for french version"	Off \
X		GERMAN	"Compile for german version"	Off \
X		ITALIAN	"Compile for italian version"	Off \
X		POLISH	"Compile for polish version"	Off
X
X.include <bsd.port.pre.mk>
X
X.ifdef WITH_DUTCH
XMAKE_ARGS+=	DUTCH=yes
X.elifdef WITH_ENGLISH
XMAKE_ARGS+=	ENGLISH=yes
X.elifdef WITH_FRENCH
XMAKE_ARGS+=	FRENCH=yes
X.elifdef WITH_GERMAN
XMAKE_ARGS+=	GERMAN=yes
X.elifdef WITH_ITALIAN
XMAKE_ARGS+=	ITALIAN=yes
X.elifdef WITH_POLISH
XMAKE_ARGS+=	POLISH=yes
X.else
XIGNORE=	no language has been chosen. Please choose the appropriate language for your game CD
X.endif
X
XMAKE_ARGS+=	NO_DEPS=yes # For a single full build dependency calculation is unnecessary
X
XMAKE_ARGS+=	DATADIR=${DATADIR}
X
XMAN6=	ja2.6
X
Xdo-install:
X	@${MKDIR} ${DATADIR}/Data/TILECACHE
X	@${INSTALL_PROGRAM} ${WRKSRC}/ja ${PREFIX}/bin/${PORTNAME}
X	@${INSTALL_MAN} ${WRKSRC}/${MAN6} ${MANPREFIX}/man/man6 
X
Xpost-install:
X	@${SED} -e 's|$${DATADIR}|${DATADIR}|' ${PKGMESSAGE}
X
Xlowercase:
X	@for i in \
X		${DATADIR}/Data/*.[Ss][Ll][Ff] \
X		${DATADIR}/Data/TILECACHE/*.[Jj][Ss][Dd] \
X		${DATADIR}/Data/TILECACHE/*.[Ss][Tt][Ii]; \
X	do \
X		${MV} -n $$i `${DIRNAME} $$i`/`${BASENAME} $$i | ${TR} '[A-Z]' '[a-z]'`; \
X	done
X
X.include <bsd.port.post.mk>
END-of-JaggedAlliance2/Makefile
echo x - JaggedAlliance2/distinfo
sed 's/^X//' >JaggedAlliance2/distinfo << 'END-of-JaggedAlliance2/distinfo'
XMD5 (ja2-0.1-source.tar.bz2) = ae34e02ee5e8ce59b64247ba83df581b
XSHA256 (ja2-0.1-source.tar.bz2) = 1632bf93bea91f1515274dcbebde517d7f094e0aa60132538e0b617b8944e63e
XSIZE (ja2-0.1-source.tar.bz2) = 3402438
END-of-JaggedAlliance2/distinfo
echo x - JaggedAlliance2/pkg-descr
sed 's/^X//' >JaggedAlliance2/pkg-descr << 'END-of-JaggedAlliance2/pkg-descr'
XThis is a source port of Jagged Alliance 2, in which the player controls
Xmercenaries to liberate the small country of Arulco.
X
XYou need an original game CD and installation to use this port.
X
XWWW: http://ja2.dragonriders.de/
END-of-JaggedAlliance2/pkg-descr
echo x - JaggedAlliance2/pkg-message
sed 's/^X//' >JaggedAlliance2/pkg-message << 'END-of-JaggedAlliance2/pkg-message'
X==========================================================================
X
X    This Jagged Alliance 2 port requires data files from the original
X    game CD and installation.  Copy the following files:
X
X    Put all *.slf files into ${DATADIR}/Data.
X    Put all *.jsd and *.sti files from the TILECACHE directory into
X    ${DATADIR}/Data/TILECACHE.
X		All filenames must be lowercase!
X		After copying you can use "make lowercase" to rename all files.
X
X    Enjoy!
X
X==========================================================================
END-of-JaggedAlliance2/pkg-message
echo x - JaggedAlliance2/pkg-plist
sed 's/^X//' >JaggedAlliance2/pkg-plist << 'END-of-JaggedAlliance2/pkg-plist'
Xbin/ja2
X at dirrm %%DATADIR%%/Data/TILECACHE
X at dirrm %%DATADIR%%/Data
X at dirrm %%DATADIR%%
END-of-JaggedAlliance2/pkg-plist
exit


>Release-Note:
>Audit-Trail:
>Unformatted:



More information about the freebsd-ports-bugs mailing list