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

(-)Makefile (-5 / +12 lines)
Lines 3-8 Link Here
3
3
4
PORTNAME=	darkplaces
4
PORTNAME=	darkplaces
5
PORTVERSION=	20140513
5
PORTVERSION=	20140513
6
PORTREVISION=	1
6
CATEGORIES=	games
7
CATEGORIES=	games
7
MASTER_SITES=	http://icculus.org/twilight/darkplaces/files/
8
MASTER_SITES=	http://icculus.org/twilight/darkplaces/files/
8
DISTNAME=	${PORTNAME}engine${PORTVERSION}
9
DISTNAME=	${PORTNAME}engine${PORTVERSION}
Lines 22-31 Link Here
22
ALL_TARGET=	#
23
ALL_TARGET=	#
23
24
24
OPTIONS_DEFINE=	DOCS SDL1
25
OPTIONS_DEFINE=	DOCS SDL1
26
OPTIONS_DEFINE_i386=	SSE
27
OPTIONS_DEFINE_amd64=	SSE
25
OPTIONS_MULTI=	MODULE
28
OPTIONS_MULTI=	MODULE
26
MODULE_DESC=	Components
29
MODULE_DESC=	Components
27
OPTIONS_MULTI_MODULE=	GLX SDL SERVER
30
OPTIONS_MULTI_MODULE=	GLX SDL SERVER
28
OPTIONS_DEFAULT=	${OPTIONS_MULTI_MODULE}
31
OPTIONS_DEFAULT=	${OPTIONS_MULTI_MODULE}
32
OPTIONS_DEFAULT_amd64=	SSE
29
OPTIONS_SUB=	yes
33
OPTIONS_SUB=	yes
30
34
31
GLX_DESC=	Build GLX client
35
GLX_DESC=	Build GLX client
Lines 73-78 Link Here
73
		darkplaces darkplaces-sdl "Game;Shooter;" false
77
		darkplaces darkplaces-sdl "Game;Shooter;" false
74
.endif
78
.endif
75
79
80
.if ! ${PORT_OPTIONS:MSSE}
81
CFLAGS+=	-DNO_SSE=1
82
.endif
83
76
post-extract:
84
post-extract:
77
	@${UNZIP_CMD} ${EXTRACT_BEFORE_ARGS} \
85
	@${UNZIP_CMD} ${EXTRACT_BEFORE_ARGS} \
78
		${WRKDIR}/${PORTNAME}enginesource${PORTVERSION}.zip \
86
		${WRKDIR}/${PORTNAME}enginesource${PORTVERSION}.zip \
Lines 79-88 Link Here
79
		-d ${WRKDIR}
87
		-d ${WRKDIR}
80
88
81
post-patch:
89
post-patch:
82
	${REINPLACE_CMD} 's,/usr/X11R6,${LOCALBASE},g' \
90
	@${REINPLACE_CMD} 's,/usr/X11R6,${LOCALBASE},g' \
83
		${WRKSRC}/makefile \
91
		${WRKSRC}/makefile \
84
		${WRKSRC}/makefile.inc \
92
		${WRKSRC}/makefile.inc \
85
		${WRKSRC}/BSDmakefile
93
		${WRKSRC}/BSDmakefile
94
.if ! ${PORT_OPTIONS:MSSE}
95
	@${REINPLACE_CMD} '/^CFLAGS_SSE/ d' ${WRKSRC}/makefile.inc
96
.endif
86
97
87
do-install:
98
do-install:
88
	${INSTALL_PROGRAM} ${EXE_TARGETS:S,^,${WRKSRC}/,} ${STAGEDIR}${PREFIX}/bin
99
	${INSTALL_PROGRAM} ${EXE_TARGETS:S,^,${WRKSRC}/,} ${STAGEDIR}${PREFIX}/bin
Lines 99-106 Link Here
99
.endfor
110
.endfor
100
.endif
111
.endif
101
112
102
BROKEN_ia64=	does not compile: unrecognized command line option "-msse2"
103
BROKEN_powerpc=	${BROKEN_ia64}
104
BROKEN_sparc64=	${BROKEN_ia64}
105
106
.include <bsd.port.mk>
113
.include <bsd.port.mk>

Return to bug 201252