Lines 27-33
Link Here
|
27 |
IGNORE= ${PKGNAME} requires CDROM_MOUNT set to mount point of CD |
27 |
IGNORE= ${PKGNAME} requires CDROM_MOUNT set to mount point of CD |
28 |
.endif |
28 |
.endif |
29 |
|
29 |
|
30 |
NO_STAGE= yes |
|
|
31 |
.include <bsd.port.options.mk> |
30 |
.include <bsd.port.options.mk> |
32 |
|
31 |
|
33 |
.if ${PORT_OPTIONS:MVORBIS} |
32 |
.if ${PORT_OPTIONS:MVORBIS} |
Lines 59-111
Link Here
|
59 |
@${ECHO_CMD} "${PKGNAME} requires a retail Second Encounter disc" |
58 |
@${ECHO_CMD} "${PKGNAME} requires a retail Second Encounter disc" |
60 |
@${FALSE} |
59 |
@${FALSE} |
61 |
.endif |
60 |
.endif |
62 |
@${MKDIR} ${DATADIR}/Mods |
61 |
@${MKDIR} ${STAGEDIR}${DATADIR}/Mods |
63 |
.for gro in "" _Extra _ExtraTools _Levels _Music |
62 |
.for gro in "" _Extra _ExtraTools _Levels _Music |
64 |
${INSTALL_DATA} "${CDROM_MOUNT}/Install/SE1_00${gro}.gro" ${DATADIR}/SE1_00${gro}.gro |
63 |
${INSTALL_DATA} "${CDROM_MOUNT}/Install/SE1_00${gro}.gro" ${STAGEDIR}${DATADIR}/SE1_00${gro}.gro |
65 |
.endfor |
64 |
.endfor |
66 |
${INSTALL_DATA} "${CDROM_MOUNT}/Install/Mods/SecondEncounterTbn.tex" ${DATADIR}/Mods/SecondEncounterTbn.tex |
65 |
${INSTALL_DATA} "${CDROM_MOUNT}/Install/Mods/SecondEncounterTbn.tex" ${STAGEDIR}${DATADIR}/Mods/SecondEncounterTbn.tex |
67 |
.for dir in Controls Data Scripts VirtualTrees Worlds Demos |
66 |
.for dir in Controls Data Scripts VirtualTrees Worlds Demos |
68 |
@cd ${CDROM_MOUNT}/Install && \ |
67 |
@cd ${CDROM_MOUNT}/Install && \ |
69 |
${FIND} ${dir} -type d -exec \ |
68 |
${FIND} ${dir} -type d -exec \ |
70 |
${MKDIR} "${DATADIR}/{}" \; && \ |
69 |
${MKDIR} "${STAGEDIR}${DATADIR}/{}" \; && \ |
71 |
${FIND} ${dir} -type f -exec \ |
70 |
${FIND} ${dir} -type f -exec \ |
72 |
${INSTALL_DATA} "${CDROM_MOUNT}/Install/{}" "${DATADIR}/{}" \; |
71 |
${INSTALL_DATA} "${CDROM_MOUNT}/Install/{}" "${STAGEDIR}${DATADIR}/{}" \; |
73 |
.endfor |
72 |
.endfor |
74 |
@${MKDIR} ${DATADIR}/Help |
73 |
@${MKDIR} ${STAGEDIR}${DATADIR}/Help |
75 |
.for i in ${PORTDOCS:NREADME.liflg} |
74 |
.for i in ${PORTDOCS:NREADME.liflg} |
76 |
${INSTALL_DATA} "${CDROM_MOUNT}/Install/Help/${i}" ${DATADIR}/Help/${i} |
75 |
${INSTALL_DATA} "${CDROM_MOUNT}/Install/Help/${i}" ${STAGEDIR}${DATADIR}/Help/${i} |
77 |
.endfor |
76 |
.endfor |
78 |
.for dir in Data/Var Levels |
77 |
.for dir in Data/Var Levels |
79 |
@cd ${WRKSRC} && \ |
78 |
@cd ${WRKSRC} && \ |
80 |
${FIND} ${dir} -type d -exec \ |
79 |
${FIND} ${dir} -type d -exec \ |
81 |
${MKDIR} "${DATADIR}/{}" \; && \ |
80 |
${MKDIR} "${STAGEDIR}${DATADIR}/{}" \; && \ |
82 |
${FIND} ${dir} -type f -exec \ |
81 |
${FIND} ${dir} -type f -exec \ |
83 |
${INSTALL_DATA} "${WRKSRC}/{}" "${DATADIR}/{}" \; |
82 |
${INSTALL_DATA} "${WRKSRC}/{}" "${STAGEDIR}${DATADIR}/{}" \; |
84 |
.endfor |
83 |
.endfor |
85 |
@${MKDIR} ${DATADIR}/Bin |
84 |
@${MKDIR} ${STAGEDIR}${DATADIR}/Bin |
86 |
@cd ${WRKSRC}/Data && \ |
85 |
@cd ${WRKSRC}/Data && \ |
87 |
${FIND} Bin -type f -exec \ |
86 |
${FIND} Bin -type f -exec \ |
88 |
${INSTALL_PROGRAM} "${WRKSRC}/Data/{}" "${DATADIR}/{}" \; |
87 |
${INSTALL_PROGRAM} "${WRKSRC}/Data/{}" "${STAGEDIR}${DATADIR}/{}" \; |
89 |
${BRANDELF} -t Linux ${DATADIR}/Bin/ssam_* |
88 |
${BRANDELF} -t Linux ${STAGEDIR}${DATADIR}/Bin/ssam_* |
90 |
${INSTALL_DATA} ${WRKSRC}/ModExt.txt ${DATADIR} |
89 |
${INSTALL_DATA} ${WRKSRC}/ModExt.txt ${STAGEDIR}${DATADIR} |
91 |
${INSTALL_PROGRAM} ${WRKSRC}/bin/${PORTNAME} ${PREFIX}/bin |
90 |
${INSTALL_PROGRAM} ${WRKSRC}/bin/${PORTNAME} ${STAGEDIR}${PREFIX}/bin |
92 |
.if ${PORT_OPTIONS:MVORBIS} |
91 |
.if ${PORT_OPTIONS:MVORBIS} |
93 |
${LN} -fs ${LINUXBASE}/usr/lib/libvorbisfile.so.3 ${DATADIR}/Bin/libvorbisfile.so |
92 |
${LN} -fs ${LINUXBASE}/usr/lib/libvorbisfile.so.3 ${STAGEDIR}${DATADIR}/Bin/libvorbisfile.so |
94 |
.endif |
93 |
.endif |
95 |
@${FIND} -E ${DATADIR} -type f \ |
94 |
@${FIND} -E ${STAGEDIR}${DATADIR} -type f \ |
96 |
-iregex ".*\.(ctl|txt|lst|ini|cfg|des|reg)" \ |
95 |
-iregex ".*\.(ctl|txt|lst|ini|cfg|des|reg)" \ |
97 |
! -iregex ".*ModExt.txt" \ |
96 |
! -iregex ".*ModExt.txt" \ |
98 |
-exec ${SH} -c "${SED} "s/`printf '\r'`//" '{}' \ |
97 |
-exec ${SH} -c "${SED} "s/`printf '\r'`//" '{}' \ |
99 |
>${WRKDIR}/tmp.txt; ${MV} ${WRKDIR}/tmp.txt '{}'" \; |
98 |
>${WRKDIR}/tmp.txt; ${MV} ${WRKDIR}/tmp.txt '{}'" \; |
100 |
@${ECHO} SERIOUS_MHZ=2000 > ${PREFIX}/etc/${PORTNAME}.conf.sample |
99 |
@${ECHO} SERIOUS_MHZ=2000 > ${STAGEDIR}${PREFIX}/etc/${PORTNAME}.conf.sample |
101 |
.if !exists(${PREFIX}/etc/${PORTNAME}.conf) |
100 |
.if !exists(${PREFIX}/etc/${PORTNAME}.conf) |
102 |
${INSTALL_DATA} ${PREFIX}/etc/${PORTNAME}.conf.sample ${PREFIX}/etc/${PORTNAME}.conf |
101 |
${INSTALL_DATA} ${PREFIX}/etc/${PORTNAME}.conf.sample ${STAGEDIR}${PREFIX}/etc/${PORTNAME}.conf |
103 |
.endif |
102 |
.endif |
104 |
.if ${PORT_OPTIONS:MDOCS} |
103 |
.if ${PORT_OPTIONS:MDOCS} |
105 |
@${MKDIR} ${DOCSDIR} |
104 |
@${MKDIR} ${DOCSDIR} |
106 |
${INSTALL_DATA} -p ${WRKSRC}/README.liflg ${DOCSDIR} |
105 |
${INSTALL_DATA} -p ${WRKSRC}/README.liflg ${STAGEDIR}${DOCSDIR} |
107 |
.for i in ${PORTDOCS:NREADME.liflg} |
106 |
.for i in ${PORTDOCS:NREADME.liflg} |
108 |
${LN} -sf ${DATADIR}/Help/${i} ${DOCSDIR}/${i} |
107 |
${LN} -sf ${DATADIR}/Help/${i} ${STAGEDIR}${DOCSDIR}/${i} |
109 |
.endfor |
108 |
.endfor |
110 |
.endif |
109 |
.endif |