View | Details | Raw Unified | Return to bug 187865
Collapse All | Expand All

(-)Makefile (-18 / +18 lines)
Lines 3-8 Link Here
3
3
4
PORTNAME=	quake4
4
PORTNAME=	quake4
5
PORTVERSION=	1.4.2
5
PORTVERSION=	1.4.2
6
PORTREVISION=	1
6
PORTEPOCH=	1
7
PORTEPOCH=	1
7
CATEGORIES=	games linux
8
CATEGORIES=	games linux
8
MASTER_SITES=	${MASTER_SITE_IDSOFTWARE:S|$|quake4/linux/|} \
9
MASTER_SITES=	${MASTER_SITE_IDSOFTWARE:S|$|quake4/linux/|} \
Lines 29-35 Link Here
29
30
30
OPTIONS_DEFAULT=	THREADS
31
OPTIONS_DEFAULT=	THREADS
31
32
32
NO_STAGE=	yes
33
.include <bsd.port.options.mk>
33
.include <bsd.port.options.mk>
34
.include <bsd.port.pre.mk>
34
.include <bsd.port.pre.mk>
35
35
Lines 58-105 Link Here
58
58
59
do-install:
59
do-install:
60
	# Executables
60
	# Executables
61
	@${MKDIR} ${PREFIX}/${Q4DIR}
61
	@${MKDIR} ${STAGEDIR}${PREFIX}/${Q4DIR}
62
.for FILE in quake4 q4ded
62
.for FILE in quake4 q4ded
63
	${INSTALL_SCRIPT} ${WRKSRC}/${PKGNAMEPREFIX}${FILE}.sh ${PREFIX}/bin/${PKGNAMEPREFIX}${FILE}
63
	${INSTALL_SCRIPT} ${WRKSRC}/${PKGNAMEPREFIX}${FILE}.sh ${STAGEDIR}${PREFIX}/bin/${PKGNAMEPREFIX}${FILE}
64
	${INSTALL_PROGRAM} ${WRKSRC}/bin/FreeBSD/x86/${FILE}.x86 ${PREFIX}/${Q4DIR}
64
	${INSTALL_PROGRAM} ${WRKSRC}/bin/FreeBSD/x86/${FILE}.x86 ${STAGEDIR}${PREFIX}/${Q4DIR}
65
.endfor
65
.endfor
66
.if ${PORT_OPTIONS:MTHREADS}
66
.if ${PORT_OPTIONS:MTHREADS}
67
	${INSTALL_SCRIPT} ${WRKSRC}/${PKGNAMEPREFIX}quake4smp.sh ${PREFIX}/bin/${PKGNAMEPREFIX}quake4smp
67
	${INSTALL_SCRIPT} ${WRKSRC}/${PKGNAMEPREFIX}quake4smp.sh ${STAGEDIR}${PREFIX}/bin/${PKGNAMEPREFIX}quake4smp
68
	${INSTALL_PROGRAM} ${WRKSRC}/bin/FreeBSD/x86/quake4smp.x86 ${PREFIX}/${Q4DIR}
68
	${INSTALL_PROGRAM} ${WRKSRC}/bin/FreeBSD/x86/quake4smp.x86 ${STAGEDIR}${PREFIX}/${Q4DIR}
69
.endif
69
.endif
70
70
71
	# Punkbuster
71
	# Punkbuster
72
	@${MKDIR} ${PREFIX}/${Q4DIR}/pb/htm
72
	@${MKDIR} ${STAGEDIR}${PREFIX}/${Q4DIR}/pb/htm
73
	@${MKDIR} ${PREFIX}/${Q4DIR}/q4base
73
	@${MKDIR} ${STAGEDIR}${PREFIX}/${Q4DIR}/q4base
74
	@cd ${WRKSRC} && \
74
	@cd ${WRKSRC} && \
75
		${FIND} -E pb -type f -iregex ".*\.(so)" \
75
		${FIND} -E pb -type f -iregex ".*\.(so)" \
76
			-exec ${INSTALL_DATA} "{}" "${PREFIX}/${Q4DIR}/{}" \; && \
76
			-exec ${INSTALL_DATA} "{}" "${STAGEDIR}${PREFIX}/${Q4DIR}/{}" \; && \
77
		${FIND} -E pb/htm -type f -iregex ".*\.(htm)" \
77
		${FIND} -E pb/htm -type f -iregex ".*\.(htm)" \
78
			-exec ${INSTALL_DATA} "{}" "${PREFIX}/${Q4DIR}/{}" \;
78
			-exec ${INSTALL_DATA} "{}" "${STAGEDIR}${PREFIX}/${Q4DIR}/{}" \;
79
	# Q4base
79
	# Q4base
80
	 @cd ${WRKSRC} && \
80
	 @cd ${WRKSRC} && \
81
		${FIND} -E q4base -type f -iregex ".*\.(cfg|scriptcfg|pk4|off)" \
81
		${FIND} -E q4base -type f -iregex ".*\.(cfg|scriptcfg|pk4|off)" \
82
			-exec ${INSTALL_DATA} "{}" "${PREFIX}/${Q4DIR}/{}" \;
82
			-exec ${INSTALL_DATA} "{}" "${STAGEDIR}${PREFIX}/${Q4DIR}/{}" \;
83
83
84
	# All version (except germany) or only germany version
84
	# All version (except germany) or only germany version
85
.if ${PORT_OPTIONS:MGERMANY}
85
.if ${PORT_OPTIONS:MGERMANY}
86
	@cd ${WRKSRC}/germany && \
86
	@cd ${WRKSRC}/germany && \
87
		${FIND} -E q4base -type f -iregex ".*\.(pk4)" \
87
		${FIND} -E q4base -type f -iregex ".*\.(pk4)" \
88
			-exec ${INSTALL_DATA} "{}" "${PREFIX}/${Q4DIR}/{}" \;
88
			-exec ${INSTALL_DATA} "{}" "${STAGEDIR}${PREFIX}/${Q4DIR}/{}" \;
89
.else
89
.else
90
	@cd ${WRKSRC}/us && \
90
	@cd ${WRKSRC}/us && \
91
		${FIND} -E q4base -type f -iregex ".*\.(pk4)" \
91
		${FIND} -E q4base -type f -iregex ".*\.(pk4)" \
92
			-exec ${INSTALL_DATA} "{}" "${PREFIX}/${Q4DIR}/{}" \;
92
			-exec ${INSTALL_DATA} "{}" "${STAGEDIR}${PREFIX}/${Q4DIR}/{}" \;
93
.endif
93
.endif
94
94
95
	# Documentation
95
	# Documentation
96
.if ${PORT_OPTIONS:MDOCS}
96
.if ${PORT_OPTIONS:MDOCS}
97
	@cd ${WRKSRC}/Docs && \
97
	@cd ${WRKSRC}/Docs && \
98
		${FIND} * -type d -exec ${MKDIR} "${DOCSDIR}/{}" \; && \
98
		${FIND} * -type d -exec ${MKDIR} "${STAGEDIR}${DOCSDIR}/{}" \; && \
99
		${FIND} * -type f -exec ${INSTALL_DATA} "{}" "${DOCSDIR}/{}" \;
99
		${FIND} * -type f -exec ${INSTALL_DATA} "{}" "${STAGEDIR}${DOCSDIR}/{}" \;
100
	${INSTALL_DATA} ${WRKSRC}/License.txt ${DOCSDIR}/LICENSE && \
100
	${INSTALL_DATA} ${WRKSRC}/License.txt ${STAGEDIR}${DOCSDIR}/LICENSE && \
101
	${INSTALL_DATA} ${WRKSRC}/README ${DOCSDIR}/README && \
101
	${INSTALL_DATA} ${WRKSRC}/README ${STAGEDIR}${DOCSDIR}/README && \
102
	${INSTALL_DATA} ${WRKSRC}/pb/PBEULA.txt ${DOCSDIR}/PBEULA
102
	${INSTALL_DATA} ${WRKSRC}/pb/PBEULA.txt ${STAGEDIR}${DOCSDIR}/PBEULA
103
.endif
103
.endif
104
104
105
post-install:
105
post-install:

Return to bug 187865