Bug 128535 - [new port] games/linux-sof: Soldier of Fortune for Linux
Summary: [new port] games/linux-sof: Soldier of Fortune for Linux
Status: Closed FIXED
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Individual Port(s) (show other bugs)
Version: Latest
Hardware: Any Any
: Normal Affects Only Me
Assignee: Martin Wilke
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2008-11-02 11:10 UTC by Alexander Logvinov
Modified: 2008-12-25 20:30 UTC (History)
1 user (show)

See Also:


Attachments
file.diff (582 bytes, patch)
2008-11-02 11:10 UTC, Alexander Logvinov
no flags Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Alexander Logvinov 2008-11-02 11:10:02 UTC
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/

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@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@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@dirrm %%DATADIR%%/base
X@dirrm %%DATADIR%%
38dbbde0a15103cfb0bd731a96500b1a
exit
Comment 1 Martin Wilke freebsd_committer freebsd_triage 2008-11-06 06:53:51 UTC
Responsible Changed
From-To: freebsd-ports-bugs->miwi

I'll take it.
Comment 2 Martin Wilke freebsd_committer freebsd_triage 2008-12-25 20:28:49 UTC
State Changed
From-To: open->closed

Committed. Thanks!
Comment 3 dfilter service freebsd_committer freebsd_triage 2008-12-25 20:29:20 UTC
miwi        2008-12-25 20:29:06 UTC

  FreeBSD ports repository

  Modified files:
    games                Makefile 
  Added files:
    games/linux-sof      Makefile distinfo pkg-descr pkg-plist 
    games/linux-sof/files patch-sof pkg-message.in 
  Log:
  You're the world's deadliest soldier of fortune and your mission
  is clear: survive. Track your prey across the globe in a series
  of secret missions to take down a fanatical terrorist organization
  before it takes you down. Maintain your cover as a covert warrior
  in a startling variety of explosive missions ranging from underhanded
  sabotage to stealthy assassination to full frontal assaults where
  skill marks the difference between the hunter and the hunted.
  
  Tear your way past enemy lines utilizing the world's most lethal
  weaponry, including a sniper rifle, white phosphorous grenades, and
  prototype microwave pulse guns. Real bullets do real damage: shoot
  someone in the leg and he falls, writhing and grasping his wound;
  shoot someone in the head and he falls down dead.
  
  Based on the popular magazine of the same name, Soldier of Fortune
  delivers the most realistic, covert-operative themed shooter experience
  ever created. Like a blockbuster action-thriller, Soldier of Fortune
  plunges you into the secret and deadly world of the modern-day
  gun-for-hire via dozens of real-to-life missions spanning five continents
  and innovative multiplayer modes.
  
  You need an original game CD of Soldier of Fortune for Linux to use
  this port.
  
  WWW: http://www.lokigames.com/products/sof/
  WWW: http://www.ravensoft.com/GamesDetail/tabid/76/XMID/16/Default.aspx
  
  PR:             ports/128535
  Submitted by:   Alexander Logvinov <ports at logvinov.com>
  
  Revision  Changes    Path
  1.1256    +1 -0      ports/games/Makefile
  1.1       +88 -0     ports/games/linux-sof/Makefile (new)
  1.1       +3 -0      ports/games/linux-sof/distinfo (new)
  1.1       +10 -0     ports/games/linux-sof/files/patch-sof (new)
  1.1       +19 -0     ports/games/linux-sof/files/pkg-message.in (new)
  1.1       +26 -0     ports/games/linux-sof/pkg-descr (new)
  1.1       +16 -0     ports/games/linux-sof/pkg-plist (new)
_______________________________________________
cvs-all@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/cvs-all
To unsubscribe, send any mail to "cvs-all-unsubscribe@freebsd.org"