ports/128535: [new port] games/linux-sof: Soldier of Fortune for Linux

Alexander Logvinov ports at logvinov.com
Sun Nov 2 11:10:03 UTC 2008


>Number:         128535
>Category:       ports
>Synopsis:       [new port] games/linux-sof: Soldier of Fortune for Linux
>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:   Sun Nov 02 11:10:02 UTC 2008
>Closed-Date:
>Last-Modified:
>Originator:     Alexander Logvinov
>Release:        FreeBSD 6.3-RELEASE-p1 i386
>Organization:
>Environment:

>Description:

Soldier of Fortune is a first-person 3-D shooter based on the mercenary trade.
You play as John, an ex-military mercinary who still has plenty of good friends
on the inside. For a wad of bucks, you'll do the job -- no cares, no worries.
Just get the gun, play for keeps, get paid, on to the next one -- that's your life.
That's what you do. And you're good at it, one of the best even. But now is the
time for your biggest challenge ever.

http://www.lokigames.com/products/sof/

>How-To-Repeat:

>Fix:

# 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:
#
#	linux-sof
#	linux-sof/files
#	linux-sof/files/patch-sof
#	linux-sof/files/pkg-message.in
#	linux-sof/Makefile
#	linux-sof/distinfo
#	linux-sof/pkg-descr
#	linux-sof/pkg-plist
#
echo c - linux-sof
mkdir -p linux-sof > /dev/null 2>&1
echo c - linux-sof/files
mkdir -p linux-sof/files > /dev/null 2>&1
echo x - linux-sof/files/patch-sof
sed 's/^X//' >linux-sof/files/patch-sof << '8259285b7b3695835529c0d056698270'
X--- data/sof.orig	2008-10-10 17:55:11.000000000 +1000
X+++ data/sof	2008-10-10 17:54:52.000000000 +1000
X@@ -1,5 +1,7 @@
X #!/bin/sh
X 
X+SOF_DATA_PATH="%%DATADIR%%"
X+
X # Function to find the real directory a program resides in.
X # Feb. 17, 2000 - Sam Lantinga, Loki Entertainment Software
X FindPath()
8259285b7b3695835529c0d056698270
echo x - linux-sof/files/pkg-message.in
sed 's/^X//' >linux-sof/files/pkg-message.in << '52ea8cc26ec6a9e746aabf099c7abb71'
X
X###############################################################################
X
XThe Soldier of Fortune game was installed
X
X1) Run the game using:
X
X   # sof
X
X2) The config files are stored into the ~/.loki/sof directory
X
X3) You can see more information about this game at:
X
X   %%DOCSDIR%%
X
X4) Enjoy it ;)
X
X###############################################################################
X
52ea8cc26ec6a9e746aabf099c7abb71
echo x - linux-sof/Makefile
sed 's/^X//' >linux-sof/Makefile << '6018037f4778cca9ab44695ca3e1fd4e'
X# New ports collection makefile for:	linux-sof
X# Date created:				09 October 2008
X# Whom:					Alexander Logvinov <ports at logvinov.com>
X#
X# $FreeBSD$
X#
X
XPORTNAME=	sof
XPORTVERSION=	1.06a
XCATEGORIES=	games linux
XMASTER_SITES=	http://updates.lokigames.com/${PORTNAME}/
XPKGNAMEPREFIX=	linux-
XDISTNAME=	${PORTNAME}-${PORTVERSION}-cdrom-x86
XEXTRACT_SUFX=	.run
X
XMAINTAINER=	ports at logvinov.com
XCOMMENT=	Soldier of Fortune for Linux
X
XPATCH_DEPENDS=	xdelta:${PORTSDIR}/misc/xdelta
X
XUSE_LINUX=	yes
XUSE_XLIB=	yes
XNO_BUILD=	yes
XNO_PACKAGE=	Distribution is 448MB; set FORCE_PACKAGE if you really want\
X		to build this package
XRESTRICTED=	Redistribution is limited, see license
X
XXDELTA=		${LOCALBASE}/bin/xdelta patch
XEXTRACT_FILES=	libopenal-0.0.so libSDL-1.1.so.0 README.105 README.106 base/pak2.pak
XPORTDOCS=	README README.105 README.106
XSUB_FILES=	pkg-message
X
X.include <bsd.port.pre.mk>
X
Xdo-extract:
X	@${MKDIR} ${WRKSRC}/data ${WRKSRC}/patch
X	@cd ${WRKSRC}/patch && ${SED} -e '1,/END_OF_STUB/d' ${_DISTDIR}/${DISTFILES} | \
X		${GUNZIP_CMD} -q | ${TAR} xf -
X.if !defined(CDROM_MOUNT)
X	@${ECHO_CMD} "${PKGNAME} requires CDROM_MOUNT set to mount point of CD"
X	@${FALSE}
X.endif
X.if !exists(${CDROM_MOUNT}/bin/x86/glibc-2.1/${PORTNAME})
X	@${ECHO_CMD} "${PKGNAME} requires CD with Soldier of Fortune for Linux"
X	@${FALSE}
X.endif
X	@${CP} ${CDROM_MOUNT}/bin/x86/glibc-2.1/${PORTNAME} ${CDROM_MOUNT}/kver.pub ${WRKSRC}/data
X	@${CP} ${CDROM_MOUNT}/README ${WRKSRC}/data/
X.for file in binaries paks
X	@${TAR} x -C ${WRKSRC}/data -f ${CDROM_MOUNT}/${file}.tar.gz
X.endfor
X.for file in ${EXTRACT_FILES}
X	@${GUNZIP_CMD} -qc ${WRKSRC}/patch/data/${file} > ${WRKSRC}/data/${file}
X	@${RM} ${WRKSRC}/patch/data/${file}
X.endfor
X
Xpre-patch:
X	@cd ${WRKSRC}/patch/ && \
X		${FIND} data -name "*.0" | \
X		${SED} 's/\(.*\)\(.0\)/${XDELTA:S,/,\\/,g} & ${WRKSRC:S,/,\\/,g}\/\1 ${WRKSRC:S,/,\\/,g}\/\1.patched/' | ${SH}
X	@cd ${WRKSRC} && \
X		${FIND} data -name "*.patched" | \
X		${SED} 's/\(.*\)\(.patched\)/${MV:S,/,\\/,g} & \1/' | ${SH}
X
Xpost-patch:
X	@${REINPLACE_CMD} -e "s|%%DATADIR%%|${DATADIR}|" ${WRKSRC}/data/${PORTNAME}
X
Xdo-install:
X	@${MKDIR} ${DATADIR}/base
X	${INSTALL_PROGRAM} ${WRKSRC}/data/${PORTNAME} ${PREFIX}/bin
X	${INSTALL_PROGRAM} ${WRKSRC}/data/${PORTNAME}-bin ${DATADIR}
X	@${BRANDELF} -t Linux ${DATADIR}/${PORTNAME}-bin
X	${INSTALL_DATA} ${WRKSRC}/data/kver.pub ${DATADIR}
X	cd ${WRKSRC}/data && \
X		${FIND} . -name "*.so*" -exec ${INSTALL_PROGRAM} {} ${DATADIR}/{} \; && \
X		${FIND} base -name "*.pak" -exec ${INSTALL_DATA} {} ${DATADIR}/{} \;
X.if !defined(NOPORTDOCS)
X	@${MKDIR} ${DOCSDIR}
X.for i in ${PORTDOCS}
X	${INSTALL_DATA} ${WRKSRC}/data/${i} ${DOCSDIR}
X.endfor
X.endif
X
Xpost-install:
X	@${CAT} ${PKGMESSAGE}
X
X.include <bsd.port.post.mk>
6018037f4778cca9ab44695ca3e1fd4e
echo x - linux-sof/distinfo
sed 's/^X//' >linux-sof/distinfo << 'ec9c458e4b5bf6fbf0902766d3cc6f87'
XMD5 (sof-1.06a-cdrom-x86.run) = ab5aa49149bc9aa645029557fcb7f40d
XSHA256 (sof-1.06a-cdrom-x86.run) = 44546073f26a610ec554f3d197e157a6691c0891651689308e62feccc01a1c16
XSIZE (sof-1.06a-cdrom-x86.run) = 22928437
ec9c458e4b5bf6fbf0902766d3cc6f87
echo x - linux-sof/pkg-descr
sed 's/^X//' >linux-sof/pkg-descr << 'd117d8714bf0b788b2498b2154cbca17'
XYou're the world's deadliest soldier of fortune and your mission
Xis clear: survive. Track your prey across the globe in a series of secret
Xmissions to take down a fanatical terrorist organization before it takes you
Xdown. Maintain your cover as a covert warrior in a startling variety of
Xexplosive missions ranging from underhanded sabotage to stealthy assassination
Xto full frontal assaults where skill marks the difference between the hunter and
Xthe hunted.
X
XTear your way past enemy lines utilizing the world's most lethal weaponry,
Xincluding a sniper rifle, white phosphorous grenades, and prototype microwave
Xpulse guns. Real bullets do real damage: shoot someone in the leg and he falls,
Xwrithing and grasping his wound; shoot someone in the head and he falls down dead.
X
XBased on the popular magazine of the same name, Soldier of Fortune delivers the
Xmost realistic, covert-operative themed shooter experience ever created. Like a
Xblockbuster action-thriller, Soldier of Fortune plunges you into the secret and
Xdeadly world of the modern-day gun-for-hire via dozens of real-to-life missions
Xspanning five continents and innovative multiplayer modes.
X
XYou need an original game CD of Soldier of Fortune for Linux to use this port.
X
XWWW: http://www.lokigames.com/products/sof/
XWWW: http://www.ravensoft.com/GamesDetail/tabid/76/XMID/16/Default.aspx
d117d8714bf0b788b2498b2154cbca17
echo x - linux-sof/pkg-plist
sed 's/^X//' >linux-sof/pkg-plist << '38dbbde0a15103cfb0bd731a96500b1a'
Xbin/sof
X%%DATADIR%%/kver.pub
X%%DATADIR%%/libSDL-1.1.so.0
X%%DATADIR%%/libTitan.so
X%%DATADIR%%/liboasnd.so
X%%DATADIR%%/libopenal-0.0.so
X%%DATADIR%%/libopenal.so
X%%DATADIR%%/ref_gl.so
X%%DATADIR%%/sof-bin
X%%DATADIR%%/base/gamex86.so
X%%DATADIR%%/base/pak0.pak
X%%DATADIR%%/base/pak1.pak
X%%DATADIR%%/base/pak2.pak
X%%DATADIR%%/base/player.so
X at dirrm %%DATADIR%%/base
X at dirrm %%DATADIR%%
38dbbde0a15103cfb0bd731a96500b1a
exit

Index: LEGAL
===================================================================
RCS file: /home/pcvs/ports/LEGAL,v
retrieving revision 1.585
diff -u -r1.585 LEGAL
--- LEGAL	28 Jul 2008 11:18:09 -0000	1.585
+++ LEGAL	2 Nov 2008 11:02:36 -0000
@@ -570,6 +570,7 @@
 						directly from Sun via WWW
 						interface
 socks5-*		net/socks5		No commercial use
+sof-*-cdrom-x86.run	games/linux-sof		Redistribution is limited
 SpaceAryarya-KXL-*	games/spacearyarya	Possible copyright infringement
 speedmgmt*		net/pppoa		Not for redistribution -- see
 						http://www.alcatel.com/consumer-
>Release-Note:
>Audit-Trail:
>Unformatted:



More information about the freebsd-ports-bugs mailing list