ports/59678: [new port] games/ssamtse - Serious Sam: The Second Encounter

Sergey Akifyev asa at gascom.ru
Tue Nov 25 11:10:24 UTC 2003


>Number:         59678
>Category:       ports
>Synopsis:       [new port] games/ssamtse - Serious Sam: The Second Encounter
>Confidential:   no
>Severity:       non-critical
>Priority:       medium
>Responsible:    freebsd-ports-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          change-request
>Submitter-Id:   current-users
>Arrival-Date:   Tue Nov 25 03:10:21 PST 2003
>Closed-Date:
>Last-Modified:
>Originator:     Sergey Akifyev
>Release:        FreeBSD 4.8-RELEASE-p13 i386
>Organization:
JSC Gascom
>Environment:
System: FreeBSD mail.gascom.ru 4.8-RELEASE-p13 FreeBSD 4.8-RELEASE-p13 #5: Mon Oct 6 15:48:47 MSD 2003 asa at boulder.gascom.ru:/usr/src/sys/compile/SMP_STD i386

>Description:
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.

* Please, don't review this port too long, I really
need feedback about this one. For me is works fine,
I need to know, what about others!
>How-To-Repeat:
>Fix:
--- ssamtse.sh begins here ---
# 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:
#
#	ssamtse
#	ssamtse/Makefile
#	ssamtse/distinfo
#	ssamtse/pkg-descr
#	ssamtse/pkg-plist
#	ssamtse/files
#	ssamtse/files/patch-bin_ssamtse
#	ssamtse/pkg-message
#
echo c - ssamtse
mkdir -p ssamtse > /dev/null 2>&1
echo x - ssamtse/Makefile
sed 's/^X//' >ssamtse/Makefile << 'END-of-ssamtse/Makefile'
X# New ports collection makefile for:	ssamtse
X# Date created:				25 November 2003
X# Whom:					Sergey Akifyev
X#
X# $FreeBSD$
X#
X
XPORTNAME=	ssamtse
XPORTVERSION=	b1
XCATEGORIES=	games
XMASTER_SITES=
XDISTFILES=	${PORTNAME}-${PORTVERSION:S|b|beta|}.sh.bin
XEXTRACT_ONLY=
X
XMAINTAINER=	asa at gascom.ru
XCOMMENT=	Serious Sam - The Second Encounter
X
XRUN_DEPENDS=	${LINUXBASE}/lib/ld-linux.so.2:${PORTSDIR}/emulators/linux_base
X
XNO_BUILD=	yes
XUSE_BZIP2=	yes
XUSE_REINPLACE=	yes
XUSE_XLIB=	yes
XUSE_GL=		yes
XINSTALLS_SHLIB=	yes
X
XSSAMDIR=	${PREFIX}/ssam
XSERIOUS_MHZ?=	1000
XPKGMESSAGE=	${WRKDIR}/pkgmsg
X
XONLY_FOR_ARCHS=	i386
X
Xpre-fetch:
X	@if test ! -e "${DISTDIR}/${DISTFILES}"; then \
X		${ECHO_MSG} "Warning: you should fetch distfiles for this port"; \
X		${ECHO_MSG} "manually! Google for 'serious sam linux', and get"; \
X		${ECHO_MSG} "following files into distdir:"; \
X		${ECHO_MSG} "	${DISTFILES}"; \
X		${ECHO_MSG} "I'll enable auto-fetch, when licensing issues"; \
X		${ECHO_MSG} "become clear"; \
X		${FALSE}; \
X	fi
X
Xpost-extract:
X.if !exists("${WRKDIR}/ssam/")
X	@${ECHO} n | ${SH} ${DISTDIR}/${DISTFILES} --keep --nox11 --confirm \
X		--target ${WRKDIR}/ssam
X	@${ECHO_MSG} ""
X.endif
X	@${MKDIR} ${WRKSRC}
X	@${TAR} -C ${WRKSRC} -xzf ${WRKDIR}/ssam/setupstuff.tar.gz
X
Xpost-patch:
X	@${REINPLACE_CMD} -e 's|%SSAMTSE_DATA_PATH%|${SSAMDIR}/Bin|g' \
X		-e 's|%SERIOUS_MHZ%|${SERIOUS_MHZ}|g' \
X		${WRKSRC}/bin/ssamtse
X	@${SED} 's|%SSAMDIR%|${SSAMDIR}|g' ${PKGDIR}/pkg-message > ${PKGMESSAGE}
X
Xdo-install:
X	@${MKDIR} ${SSAMDIR}
X	@${TAR} --bzip2 -C ${SSAMDIR} -xf \
X		${WRKDIR}/ssam/bins.tar.bz2
X	@${LN} -sf ${SSAMDIR}/Bin/libogg.so ${SSAMDIR}/Bin/libogg.so.0
X	@${INSTALL_SCRIPT} ${WRKSRC}/bin/ssamtse ${PREFIX}/bin/ssamtse
X	@${CAT} ${PKGMESSAGE}
X
X.include <bsd.port.mk>
END-of-ssamtse/Makefile
echo x - ssamtse/distinfo
sed 's/^X//' >ssamtse/distinfo << 'END-of-ssamtse/distinfo'
XMD5 (ssamtse-beta1.sh.bin) = 38ba5a60f9f7132a25f92f8aa40c1ba0
END-of-ssamtse/distinfo
echo x - ssamtse/pkg-descr
sed 's/^X//' >ssamtse/pkg-descr << 'END-of-ssamtse/pkg-descr'
XSam is back in the all new Second Episode of his
Xbattles with his arch-enemy Mental! After finding
Xthe Sirian spacecraft in ancient Egypt, Sam
X"Serious" Stonr hijacked it and headed for Mental
Xhimself!
X
XWarning: You still need original game data files
Xto play.
END-of-ssamtse/pkg-descr
echo x - ssamtse/pkg-plist
sed 's/^X//' >ssamtse/pkg-plist << 'END-of-ssamtse/pkg-plist'
Xbin/ssamtse
Xssam/Bin/libEntitiesMP.so
Xssam/Bin/libamp11lib.so
Xssam/Bin/libvorbis.so
Xssam/Bin/ssam_lnx.dynamic
Xssam/Bin/libGameMP.so
Xssam/Bin/libvorbisfile.so
Xssam/Bin/ssam_lnxded
Xssam/Bin/libShaders.so
Xssam/Bin/libogg.so
Xssam/Bin/ssam_lnx
Xssam/Bin/ssam_lnxded.dynamic
X at exec ln -sf %D/ssam/Bin/libogg.so %D/ssam/Bin/libogg.so.0
X at unexec rm %D/ssam/Bin/libogg.so.0 2>&1 >/dev/null || true
X at dirrm ssam/Bin
X at dirrm ssam
END-of-ssamtse/pkg-plist
echo c - ssamtse/files
mkdir -p ssamtse/files > /dev/null 2>&1
echo x - ssamtse/files/patch-bin_ssamtse
sed 's/^X//' >ssamtse/files/patch-bin_ssamtse << 'END-of-ssamtse/files/patch-bin_ssamtse'
X--- bin/ssamtse.orig	Fri Mar 14 07:07:05 2003
X+++ bin/ssamtse	Tue Nov 25 09:14:55 2003
X@@ -3,6 +3,8 @@
X # Serious Sam: The Second Encounter startup script
X #
X 
X+SSAMTSE_DATA_PATH=/usr/local/ssam/Bin
X+
X # Function to find the real directory a program resides in.
X # Feb. 17, 2000 - Sam Lantinga, Loki Entertainment Software
X FindPath()
X@@ -41,6 +43,9 @@
X 
X LD_LIBRARY_PATH=.:${SSAMTSE_DATA_PATH}:${LD_LIBRARY_PATH}
X export LD_LIBRARY_PATH
X+
X+export __GL_SINGLE_THREADED=yes
X+export SERIOUS_MHZ=%SERIOUS_MHZ%
X 
X # Let's boogie!
X if [ -x "${SSAMTSE_DATA_PATH}/ssam_lnx" ]
END-of-ssamtse/files/patch-bin_ssamtse
echo x - ssamtse/pkg-message
sed 's/^X//' >ssamtse/pkg-message << 'END-of-ssamtse/pkg-message'
XSerious Sam - The Second Encounter linux binaries are now
Xinstalled. But it's up to you to copy SSam data files
Xto %SSAMDIR%.
X
XI hope, this will be fixed someday...
X(especially if someone mails me file list
Xof original game CD)
END-of-ssamtse/pkg-message
exit
--- ssamtse.sh ends here ---
>Release-Note:
>Audit-Trail:
>Unformatted:



More information about the freebsd-ports-bugs mailing list