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

Collapse All | Expand All

(-)assaultcube/Makefile (-5 / +18 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
58
56
59
.include <bsd.port.options.mk>
57
.include <bsd.port.options.mk>
60
58
Lines 64-69 Link Here
64
	"Game;" false
62
	"Game;" false
65
.endif
63
.endif
66
64
65
.if ${PORT_OPTIONS:MPORT_ENET}
66
LIB_DEPENDS+=	libenet.so:${PORTSDIR}/net/enet
67
.else
68
ALL_TARGET+=	libenet
69
GNU_CONFIGURE=		yes
70
CONFIGURE_ARGS+=	--enable-shared=no --enable-static=yes
71
CONFIGURE_WRKSRC=	${WRKSRC}/source/enet
72
.endif
73
67
post-patch: .SILENT
74
post-patch: .SILENT
68
	${REINPLACE_CMD} -e '/^CXXFLAGS=/d ; /^CXX=/d ; /^CLIENT_PCH/d ; \
75
	${REINPLACE_CMD} -e '/^CXXFLAGS=/d ; /^CXX=/d ; /^CLIENT_PCH/d ; \
69
		/^INCLUDES=/s|$$| -I$$(LOCALBASE)/include| ; \
76
		/^INCLUDES=/s|$$| -I$$(LOCALBASE)/include| ; \
Lines 73-78 Link Here
73
		/^CLIENT_LIBS=/s|$$| -lintl| ; \
80
		/^CLIENT_LIBS=/s|$$| -lintl| ; \
74
		/^SERVER_LIBS=/s|$$| -L$$(LOCALBASE)/lib|' \
81
		/^SERVER_LIBS=/s|$$| -L$$(LOCALBASE)/lib|' \
75
		${BUILD_WRKSRC}/Makefile
82
		${BUILD_WRKSRC}/Makefile
83
.if ${PORT_OPTIONS:MPORT_ENET}
84
	${SED} -i '.port_enet.bak' -e 's/libenet // ; \
85
		s|-I\.\./enet/include|| ; \
86
		s|-L\.\./enet/\.libs||' \
87
		${BUILD_WRKSRC}/Makefile
88
.endif
76
89
77
do-install:
90
do-install:
78
.for f in ${PLIST_FILES:Mbin/*}
91
.for f in ${PLIST_FILES:Mbin/*}

Return to bug 197605