View | Details | Raw Unified | Return to bug 197605 | Differences between
and this patch

Collapse All | Expand All

(-)assaultcube/Makefile (-5 / +17 lines)
Lines 24-34 Link Here
24
LICENSE_PERMS_OTHER=	dist-mirror pkg-mirror auto-accept
24
LICENSE_PERMS_OTHER=	dist-mirror pkg-mirror auto-accept
25
25
26
USES=		gmake tar:bzip2
26
USES=		gmake tar:bzip2
27
GNU_CONFIGURE=	yes
27
ALL_TARGET=	# empty
28
ALL_TARGET=	libenet
29
WRKSRC=		${WRKDIR}/AssaultCube_v${PORTVERSION}
28
WRKSRC=		${WRKDIR}/AssaultCube_v${PORTVERSION}
30
CONFIGURE_ARGS=	--enable-shared=no --enable-static=yes
31
CONFIGURE_WRKSRC=	${WRKSRC}/source/enet
32
BUILD_WRKSRC=	${WRKSRC}/source/src
29
BUILD_WRKSRC=	${WRKSRC}/source/src
33
SUB_FILES=	${PLIST_FILES:Mbin/*:T}
30
SUB_FILES=	${PLIST_FILES:Mbin/*:T}
34
31
Lines 36-42 Link Here
36
PORTDOCS=	*
33
PORTDOCS=	*
37
PLIST_DIRS=	%%DATADIR%%/packages/maps/servermaps/incoming
34
PLIST_DIRS=	%%DATADIR%%/packages/maps/servermaps/incoming
38
35
39
OPTIONS_DEFINE=	DOCS
36
OPTIONS_DEFINE=	DOCS PORT_ENET
40
OPTIONS_MULTI=	BUILD
37
OPTIONS_MULTI=	BUILD
41
OPTIONS_MULTI_BUILD=	CLIENT DEDICATED MASTER
38
OPTIONS_MULTI_BUILD=	CLIENT DEDICATED MASTER
42
OPTIONS_DEFAULT=	CLIENT DEDICATED
39
OPTIONS_DEFAULT=	CLIENT DEDICATED
Lines 55-60 Link Here
55
MASTER_DESC=	Build master server
52
MASTER_DESC=	Build master server
56
MASTER_ALL_TARGET=	master
53
MASTER_ALL_TARGET=	master
57
MASTER_PLIST_FILES=	bin/${PORTNAME}_master libexec/${PORTNAME}_master
54
MASTER_PLIST_FILES=	bin/${PORTNAME}_master libexec/${PORTNAME}_master
55
PORT_ENET_DESC=	Use libenet from net/enet
56
PORT_ENET_LIB_DEPENDS=		libenet.so:${PORTSDIR}/net/enet
57
PORT_ENET_ALL_TARGET_OFF=	libenet
58
PORT_ENET_CONFIGURE_OFF=	--enable-shared=no --enable-static=yes
58
59
59
.include <bsd.port.options.mk>
60
.include <bsd.port.options.mk>
60
61
Lines 64-69 Link Here
64
	"Game;" false
65
	"Game;" false
65
.endif
66
.endif
66
67
68
.if !${PORT_OPTIONS:MPORT_ENET}
69
GNU_CONFIGURE=		yes
70
CONFIGURE_WRKSRC=	${WRKSRC}/source/enet
71
.endif
72
67
post-patch: .SILENT
73
post-patch: .SILENT
68
	${REINPLACE_CMD} -e '/^CXXFLAGS=/d ; /^CXX=/d ; /^CLIENT_PCH/d ; \
74
	${REINPLACE_CMD} -e '/^CXXFLAGS=/d ; /^CXX=/d ; /^CLIENT_PCH/d ; \
69
		/^INCLUDES=/s|$$| -I$$(LOCALBASE)/include| ; \
75
		/^INCLUDES=/s|$$| -I$$(LOCALBASE)/include| ; \
Lines 73-78 Link Here
73
		/^CLIENT_LIBS=/s|$$| -lintl| ; \
79
		/^CLIENT_LIBS=/s|$$| -lintl| ; \
74
		/^SERVER_LIBS=/s|$$| -L$$(LOCALBASE)/lib|' \
80
		/^SERVER_LIBS=/s|$$| -L$$(LOCALBASE)/lib|' \
75
		${BUILD_WRKSRC}/Makefile
81
		${BUILD_WRKSRC}/Makefile
82
.if ${PORT_OPTIONS:MPORT_ENET}
83
	${SED} -i '.port_enet.bak' -e 's/libenet // ; \
84
		s|-I\.\./enet/include|| ; \
85
		s|-L\.\./enet/\.libs||' \
86
		${BUILD_WRKSRC}/Makefile
87
.endif
76
88
77
do-install:
89
do-install:
78
.for f in ${PLIST_FILES:Mbin/*}
90
.for f in ${PLIST_FILES:Mbin/*}

Return to bug 197605