Lines 5-16
Link Here
|
5 |
PORTVERSION= 1.07b1 |
5 |
PORTVERSION= 1.07b1 |
6 |
PORTREVISION= 1 |
6 |
PORTREVISION= 1 |
7 |
CATEGORIES= games linux |
7 |
CATEGORIES= games linux |
8 |
MASTER_SITES= http://home.coc-ag.de/dressler-ro/liflg/files/final/ \ |
8 |
MASTER_SITES= https://files.holarse-linuxgaming.de/native/Spiele/Serious%20Sam%20The%20Second%20Encounter/Installer/ \ |
9 |
http://bsd-geek.de/FreeBSD/distfiles/ |
9 |
http://bsd-geek.de/FreeBSD/distfiles/ |
10 |
PKGNAMEPREFIX= linux- |
10 |
PKGNAMEPREFIX= linux- |
11 |
DISTFILES= ${PORTNAME:S|ssam|serious.sam.|}_${PORTVERSION:S|b|beta|}-english-2.run |
11 |
DISTFILES= ${PORTNAME:S|ssam|serious.sam.|}_${PORTVERSION:S|b|beta|}-english-2.run |
12 |
|
12 |
|
13 |
MAINTAINER= ports@FreeBSD.org |
13 |
MAINTAINER= scf@FreeBSD.org |
14 |
COMMENT= Serious Sam: The Second Encounter for Linux |
14 |
COMMENT= Serious Sam: The Second Encounter for Linux |
15 |
|
15 |
|
16 |
OPTIONS_DEFINE= VORBIS DOCS |
16 |
OPTIONS_DEFINE= VORBIS DOCS |
Lines 17-22
Link Here
|
17 |
OPTIONS_DEFAULT= VORBIS |
17 |
OPTIONS_DEFAULT= VORBIS |
18 |
|
18 |
|
19 |
USES= linux |
19 |
USES= linux |
|
|
20 |
STRIP= |
20 |
USE_LINUX= xorglibs |
21 |
USE_LINUX= xorglibs |
21 |
NO_BUILD= yes |
22 |
NO_BUILD= yes |
22 |
RESTRICTED= Redistribution is limited, see license |
23 |
RESTRICTED= Redistribution is limited, see license |
Lines 52-57
Link Here
|
52 |
post-patch: |
53 |
post-patch: |
53 |
@${REINPLACE_CMD} -e "s|^\(GAMEDIR=\).*|\1\"${DATADIR}\"|" \ |
54 |
@${REINPLACE_CMD} -e "s|^\(GAMEDIR=\).*|\1\"${DATADIR}\"|" \ |
54 |
-e "s|%%PREFIX%%|${PREFIX}|g" ${WRKSRC}/bin/${PORTNAME} |
55 |
-e "s|%%PREFIX%%|${PREFIX}|g" ${WRKSRC}/bin/${PORTNAME} |
|
|
56 |
${BRANDELF} -t Linux ${WRKSRC}/Data/Bin/ssam_* |
55 |
|
57 |
|
56 |
do-install: |
58 |
do-install: |
57 |
.if !exists(${CDROM_MOUNT}/Install/Mods/SecondEncounterTbn.tex) |
59 |
.if !exists(${CDROM_MOUNT}/Install/Mods/SecondEncounterTbn.tex) |
Lines 85-91
Link Here
|
85 |
@cd ${WRKSRC}/Data && \ |
87 |
@cd ${WRKSRC}/Data && \ |
86 |
${FIND} Bin -type f -exec \ |
88 |
${FIND} Bin -type f -exec \ |
87 |
${INSTALL_PROGRAM} "${WRKSRC}/Data/{}" "${STAGEDIR}${DATADIR}/{}" \; |
89 |
${INSTALL_PROGRAM} "${WRKSRC}/Data/{}" "${STAGEDIR}${DATADIR}/{}" \; |
88 |
${BRANDELF} -t Linux ${STAGEDIR}${DATADIR}/Bin/ssam_* |
|
|
89 |
${INSTALL_DATA} ${WRKSRC}/ModExt.txt ${STAGEDIR}${DATADIR} |
90 |
${INSTALL_DATA} ${WRKSRC}/ModExt.txt ${STAGEDIR}${DATADIR} |
90 |
${INSTALL_PROGRAM} ${WRKSRC}/bin/${PORTNAME} ${STAGEDIR}${PREFIX}/bin |
91 |
${INSTALL_PROGRAM} ${WRKSRC}/bin/${PORTNAME} ${STAGEDIR}${PREFIX}/bin |
91 |
.if ${PORT_OPTIONS:MVORBIS} |
92 |
.if ${PORT_OPTIONS:MVORBIS} |
Lines 100-112
Link Here
|
100 |
>${WRKDIR}/tmp.txt; ${MV} ${WRKDIR}/tmp.txt '{}'" \; |
101 |
>${WRKDIR}/tmp.txt; ${MV} ${WRKDIR}/tmp.txt '{}'" \; |
101 |
@${ECHO} SERIOUS_MHZ=2000 > ${STAGEDIR}${PREFIX}/etc/${PORTNAME}.conf.sample |
102 |
@${ECHO} SERIOUS_MHZ=2000 > ${STAGEDIR}${PREFIX}/etc/${PORTNAME}.conf.sample |
102 |
.if !exists(${PREFIX}/etc/${PORTNAME}.conf) |
103 |
.if !exists(${PREFIX}/etc/${PORTNAME}.conf) |
103 |
${INSTALL_DATA} ${PREFIX}/etc/${PORTNAME}.conf.sample ${STAGEDIR}${PREFIX}/etc/${PORTNAME}.conf |
104 |
${INSTALL_DATA} ${STAGEDIR}${PREFIX}/etc/${PORTNAME}.conf.sample ${STAGEDIR}${PREFIX}/etc/${PORTNAME}.conf |
104 |
.endif |
105 |
.endif |
105 |
.if ${PORT_OPTIONS:MDOCS} |
106 |
.if ${PORT_OPTIONS:MDOCS} |
106 |
@${MKDIR} ${DOCSDIR} |
107 |
@${MKDIR} ${STAGEDIR}${DOCSDIR} |
107 |
${INSTALL_DATA} -p ${WRKSRC}/README.liflg ${STAGEDIR}${DOCSDIR} |
108 |
${INSTALL_DATA} -p ${WRKSRC}/README.liflg ${STAGEDIR}${DOCSDIR} |
108 |
.for i in ${PORTDOCS:NREADME.liflg} |
109 |
.for i in ${PORTDOCS:NREADME.liflg} |
109 |
${LN} -sf ${DATADIR}/Help/${i} ${STAGEDIR}${DOCSDIR}/${i} |
110 |
# NOTE: check-plist fails on symbolic links, so make hard links for |
|
|
111 |
# installation. |
112 |
${LN} -f ${STAGEDIR}${DATADIR}/Help/${i} ${STAGEDIR}${DOCSDIR}/${i} |
110 |
.endfor |
113 |
.endfor |
111 |
.endif |
114 |
.endif |
112 |
|
115 |
|