diff options
author | Edwin Groothuis <edwin@FreeBSD.org> | 2003-12-28 09:29:20 +0000 |
---|---|---|
committer | Edwin Groothuis <edwin@FreeBSD.org> | 2003-12-28 09:29:20 +0000 |
commit | 9416c015cb7a2be97a8ddcd6aeb11c7b02624a88 (patch) | |
tree | beef48a76ecfbbb057cde6075be4b276dd29185c /games/ssamtse | |
parent | b1d111d1837b10fcdca43c2891c4d917f2db998c (diff) | |
download | ports-9416c015cb7a2be97a8ddcd6aeb11c7b02624a88.tar.gz ports-9416c015cb7a2be97a8ddcd6aeb11c7b02624a88.zip |
[new port] games/ssamtse - Serious Sam: The Second Encounter
Sam is back in the all new Second Episode of his battles
with his arch-enemy Mental! After finding the Sirian
spacecraft in ancient Egypt, Sam "Serious" Stonr hijacked
it and headed for Mental himself!
Warning: You still need original game data files to play.
PR: ports/59678
Submitted by: Sergey Akifyev <asa@gascom.ru>
Notes
Notes:
svn path=/head/; revision=96752
Diffstat (limited to 'games/ssamtse')
-rw-r--r-- | games/ssamtse/Makefile | 68 | ||||
-rw-r--r-- | games/ssamtse/distinfo | 1 | ||||
-rw-r--r-- | games/ssamtse/files/patch-bin_ssamtse | 21 | ||||
-rw-r--r-- | games/ssamtse/pkg-descr | 8 | ||||
-rw-r--r-- | games/ssamtse/pkg-message | 11 | ||||
-rw-r--r-- | games/ssamtse/pkg-plist | 20 |
6 files changed, 129 insertions, 0 deletions
diff --git a/games/ssamtse/Makefile b/games/ssamtse/Makefile new file mode 100644 index 000000000000..3366813d61a6 --- /dev/null +++ b/games/ssamtse/Makefile @@ -0,0 +1,68 @@ +# New ports collection makefile for: ssamtse +# Date created: 25 November 2003 +# Whom: Sergey Akifyev +# +# $FreeBSD$ +# + +PORTNAME= ssamtse +PORTVERSION= b1 +CATEGORIES= games +MASTER_SITES= # must fetch manually +DISTFILES= ${PORTNAME}-${PORTVERSION:S|b|beta|}.sh.bin +EXTRACT_ONLY= + +MAINTAINER= asa@gascom.ru +COMMENT= Serious Sam - The Second Encounter + +NO_BUILD= yes +USE_BZIP2= yes +USE_REINPLACE= yes +USE_XLIB= yes +USE_GL= yes +USE_LINUX= yes +INSTALLS_SHLIB= yes + +SSAMDIR= ${PREFIX}/ssam +SERIOUS_MHZ?= 1000 +PKGMESSAGE= ${WRKDIR}/pkgmsg + +ONLY_FOR_ARCHS= i386 + +pre-fetch: + @if test ! -e "${DISTDIR}/${DISTFILES}"; then \ + ${ECHO_MSG} "Warning: you should fetch distfiles for this port"; \ + ${ECHO_MSG} "manually! Google for 'serious sam linux', and get"; \ + ${ECHO_MSG} "following files into distdir:"; \ + ${ECHO_MSG} " ${DISTFILES}"; \ + ${ECHO_MSG} "I'll enable auto-fetch, when licensing issues"; \ + ${ECHO_MSG} "become clear"; \ + ${FALSE}; \ + fi + +post-extract: +.if !exists("${WRKDIR}/ssam/") + @${ECHO} n | ${SH} ${DISTDIR}/${DISTFILES} --keep --nox11 --confirm \ + --target ${WRKDIR}/ssam + @${ECHO_MSG} "" +.endif + @${MKDIR} ${WRKSRC} + @${TAR} -C ${WRKSRC} -xzf ${WRKDIR}/ssam/setupstuff.tar.gz + +post-patch: + @${REINPLACE_CMD} -e 's|%SSAMTSE_DATA_PATH%|${SSAMDIR}/Bin|g' \ + -e 's|%SERIOUS_MHZ%|${SERIOUS_MHZ}|g' \ + ${WRKSRC}/bin/ssamtse + @${SED} 's|%SSAMDIR%|${SSAMDIR}|g' ${PKGDIR}/pkg-message > ${PKGMESSAGE} + +do-install: + @${MKDIR} ${SSAMDIR} + @${TAR} --bzip2 -C ${SSAMDIR} -xf \ + ${WRKDIR}/ssam/bins.tar.bz2 + @${LN} -sf ${SSAMDIR}/Bin/libogg.so ${SSAMDIR}/Bin/libogg.so.0 + @${LN} -sf ${SSAMDIR}/Bin/libGameMP.so ${SSAMDIR}/Bin/libGame.so + @${LN} -sf ${SSAMDIR}/Bin/libEntitiesMP.so ${SSAMDIR}/Bin/libEntities.so + @${INSTALL_SCRIPT} ${WRKSRC}/bin/ssamtse ${PREFIX}/bin/ssamtse + @${CAT} ${PKGMESSAGE} + +.include <bsd.port.mk> diff --git a/games/ssamtse/distinfo b/games/ssamtse/distinfo new file mode 100644 index 000000000000..2be1f20f5d26 --- /dev/null +++ b/games/ssamtse/distinfo @@ -0,0 +1 @@ +MD5 (ssamtse-beta1.sh.bin) = 38ba5a60f9f7132a25f92f8aa40c1ba0 diff --git a/games/ssamtse/files/patch-bin_ssamtse b/games/ssamtse/files/patch-bin_ssamtse new file mode 100644 index 000000000000..697068320854 --- /dev/null +++ b/games/ssamtse/files/patch-bin_ssamtse @@ -0,0 +1,21 @@ +--- bin/ssamtse.orig Fri Mar 14 07:07:05 2003 ++++ bin/ssamtse Tue Nov 25 09:14:55 2003 +@@ -3,6 +3,8 @@ + # Serious Sam: The Second Encounter startup script + # + ++SSAMTSE_DATA_PATH=/usr/local/ssam/Bin ++ + # Function to find the real directory a program resides in. + # Feb. 17, 2000 - Sam Lantinga, Loki Entertainment Software + FindPath() +@@ -41,6 +43,9 @@ + + LD_LIBRARY_PATH=.:${SSAMTSE_DATA_PATH}:${LD_LIBRARY_PATH} + export LD_LIBRARY_PATH ++ ++export __GL_SINGLE_THREADED=yes ++export SERIOUS_MHZ=%SERIOUS_MHZ% + + # Let's boogie! + if [ -x "${SSAMTSE_DATA_PATH}/ssam_lnx" ] diff --git a/games/ssamtse/pkg-descr b/games/ssamtse/pkg-descr new file mode 100644 index 000000000000..f3c34d6e462b --- /dev/null +++ b/games/ssamtse/pkg-descr @@ -0,0 +1,8 @@ +Sam is back in the all new Second Episode of his +battles with his arch-enemy Mental! After finding +the Sirian spacecraft in ancient Egypt, Sam +"Serious" Stonr hijacked it and headed for Mental +himself! + +Warning: You still need original game data files +to play. diff --git a/games/ssamtse/pkg-message b/games/ssamtse/pkg-message new file mode 100644 index 000000000000..e35c4721d2fd --- /dev/null +++ b/games/ssamtse/pkg-message @@ -0,0 +1,11 @@ +Serious Sam - The Second Encounter linux binaries are now +installed. But it's up to you to copy SSam data files +to %SSAMDIR%. + +Also, you need to edit ssamtse executable (this is a shell +script) to set correct CPU frequency in SERIOUS_MHZ variable. +This variable can also be passed to make at port build time. + +I hope, this will be fixed someday... +(especially if someone mails me file list +of original game CD) diff --git a/games/ssamtse/pkg-plist b/games/ssamtse/pkg-plist new file mode 100644 index 000000000000..91ac9dcb8fde --- /dev/null +++ b/games/ssamtse/pkg-plist @@ -0,0 +1,20 @@ +bin/ssamtse +ssam/Bin/libEntitiesMP.so +ssam/Bin/libamp11lib.so +ssam/Bin/libvorbis.so +ssam/Bin/ssam_lnx.dynamic +ssam/Bin/libGameMP.so +ssam/Bin/libvorbisfile.so +ssam/Bin/ssam_lnxded +ssam/Bin/libShaders.so +ssam/Bin/libogg.so +ssam/Bin/ssam_lnx +ssam/Bin/ssam_lnxded.dynamic +@exec ln -sf %D/ssam/Bin/libogg.so %D/ssam/Bin/libogg.so.0 +@exec ln -sf %D/ssam/Bin/libGameMP.so %D/ssam/Bin/libGame.so +@exec ln -sf %D/ssam/Bin/libEntitiesMP.so %D/ssam/Bin/libEntities.so +@unexec rm %D/ssam/Bin/libogg.so.0 2>&1 >/dev/null || true +@unexec rm %D/ssam/Bin/libGame.so 2>&1 >/dev/null || true +@unexec rm %D/ssam/Bin/libEntities.so 2>&1 >/dev/null || true +@dirrm ssam/Bin +@dirrm ssam |