mirror of
https://git.FreeBSD.org/ports.git
synced 2024-12-25 04:43:33 +00:00
- Makefile.include must be included before bsd.port.options.mk, otherwise
"make config", "make showconfig" will not work correctly - Drop redundant PKGMESSAGE assignment, tighten PLIST_SUB's - Make a few non-functional changes while here
This commit is contained in:
parent
6c51ce84b9
commit
1f7a710c7f
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=314424
@ -22,8 +22,8 @@ NO_WRKSUBDIR= yes
|
||||
OPTIONS_DEFINE= MANUAL OPTIMIZED_CFLAGS SHAREWARE
|
||||
OPTIONS_DEFAULT= OPTIMIZED_CFLAGS
|
||||
|
||||
MANUAL_DESC= Install game HTML manual
|
||||
SHAREWARE_DESC= Install demo version of the game data
|
||||
MANUAL_DESC= Install game HTML manual
|
||||
SHAREWARE_DESC= Install demo version of the game data
|
||||
|
||||
LATEST_LINK= ${PKGNAMEPREFIX}${PORTNAME}
|
||||
DATADIR= ${Q2DIR}
|
||||
@ -33,7 +33,7 @@ Q2_DEMO= q2-314-demo-x86.exe
|
||||
Q2_SRC= q2src${PORTVERSION:S/.//}.shar.Z
|
||||
Q2_UPDATE= q2-${PORTVERSION}-x86-full.exe
|
||||
|
||||
.include "Makefile.include"
|
||||
.include "Makefile.include" # must be included before bsd.port.options.mk
|
||||
.include <bsd.port.options.mk>
|
||||
|
||||
.if ${PORT_OPTIONS:MMANUAL} || ${PORT_OPTIONS:MSHAREWARE}
|
||||
@ -52,19 +52,16 @@ CFLAGS+= -ffast-math -funroll-loops -fomit-frame-pointer \
|
||||
.endif
|
||||
|
||||
.if ${PORT_OPTIONS:MSHAREWARE}
|
||||
PLIST_SUB+= FULL="@comment " \
|
||||
SHAREWARE=""
|
||||
PLIST_SUB+= FULL="@comment " SHAREWARE=""
|
||||
.else
|
||||
PLIST_SUB+= FULL="" \
|
||||
SHAREWARE="@comment "
|
||||
PLIST_SUB+= FULL="" SHAREWARE="@comment "
|
||||
SUB_FILES= pkg-message
|
||||
PKGMESSAGE= ${WRKDIR}/pkg-message
|
||||
.endif
|
||||
|
||||
do-extract:
|
||||
@${MKDIR} ${WRKDIR}
|
||||
@cd ${WRKDIR} && \
|
||||
uncompress -c ${DISTDIR}/${Q2_SRC} | ${TAIL} +434 | ${SH}
|
||||
@cd ${WRKDIR} && uncompress -c ${DISTDIR}/${Q2_SRC} | \
|
||||
${TAIL} +434 | ${SH}
|
||||
@${UNZIP_CMD} -q -d ${WRKDIR} \
|
||||
${DISTDIR}/${Q2_UPDATE} baseq2/* -x *.dll
|
||||
.if ${PORT_OPTIONS:MMANUAL}
|
||||
@ -86,10 +83,10 @@ post-patch:
|
||||
do-install:
|
||||
@${MKDIR} ${DATADIR}/baseq2
|
||||
${INSTALL_PROGRAM} ${WRKSRC}/game.so ${DATADIR}/baseq2
|
||||
${CP} -R ${WRKSRC}/baseq2/* ${DATADIR}/baseq2
|
||||
${CP} -a ${WRKSRC}/baseq2/* ${DATADIR}/baseq2
|
||||
.if ${PORT_OPTIONS:MMANUAL}
|
||||
@${MKDIR} ${DOCSDIR}
|
||||
${CP} -R ${WRKSRC}/DOCS ${DOCSDIR}/manual
|
||||
${CP} -a ${WRKSRC}/DOCS ${DOCSDIR}/manual
|
||||
.endif
|
||||
|
||||
post-install:
|
||||
|
@ -2,6 +2,6 @@
|
||||
|
||||
To complete the installation of this port you need to copy the file
|
||||
"baseq2/pak0.pak" from the original Quake II distribution to
|
||||
"%%DATADIR%%/baseq2".
|
||||
%%DATADIR%%/baseq2.
|
||||
|
||||
==============================================================================
|
||||
|
Loading…
Reference in New Issue
Block a user