Lines 24-46
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 openal:al tar:bzip2 |
26 |
USES= gmake openal:al 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 |
|
30 |
|
34 |
PORTDATA= config packages scripts |
31 |
PORTDATA= config packages scripts |
35 |
PORTDOCS= * |
32 |
PORTDOCS= * |
36 |
|
33 |
|
37 |
OPTIONS_DEFINE= DOCS |
34 |
OPTIONS_DEFINE= DOCS PORT_ENET |
38 |
OPTIONS_MULTI= BUILD |
35 |
OPTIONS_MULTI= BUILD |
39 |
OPTIONS_MULTI_BUILD= CLIENT DEDICATED MASTER |
36 |
OPTIONS_MULTI_BUILD= CLIENT DEDICATED MASTER |
40 |
OPTIONS_DEFAULT= CLIENT DEDICATED |
37 |
OPTIONS_DEFAULT= CLIENT DEDICATED |
41 |
CLIENT_DESC= Build client |
38 |
CLIENT_DESC= Build client |
42 |
DEDICATED_DESC= Build dedicated server |
39 |
DEDICATED_DESC= Build dedicated server |
43 |
MASTER_DESC= Build master server |
40 |
MASTER_DESC= Build master server |
|
|
41 |
PORT_ENET_DESC= Use libenet from net/enet |
42 |
PORT_ENET_LIB_DEPENDS= libenet.so:${PORTSDIR}/net/enet |
43 |
PORT_ENET_ALL_TARGET_OFF= libenet |
44 |
PORT_ENET_CONFIGURE_OFF= --enable-shared=no --enable-static=yes |
44 |
|
45 |
|
45 |
.include <bsd.port.options.mk> |
46 |
.include <bsd.port.options.mk> |
46 |
|
47 |
|
Lines 70-75
Link Here
|
70 |
ACUBE_BIN+= master |
71 |
ACUBE_BIN+= master |
71 |
.endif |
72 |
.endif |
72 |
|
73 |
|
|
|
74 |
.if !${PORT_OPTIONS:MPORT_ENET} |
75 |
GNU_CONFIGURE= yes |
76 |
CONFIGURE_WRKSRC= ${WRKSRC}/source/enet |
77 |
.endif |
78 |
|
79 |
post-patch: .SILENT |
80 |
${REINPLACE_CMD} -e '/^CXXFLAGS=/d ; /^CXX=/d ; \ |
81 |
/^PLATFORM_PREFIX=/s|native|${OPSYS}| ; \ |
82 |
/^INCLUDES=/s|$$| -I${LOCALBASE}/include| ; \ |
83 |
s|-I/usr/include || ; \ |
84 |
s|sdl-config|${SDL_CONFIG}| ; \ |
85 |
s|-lcurl|& -lintl| ; \ |
86 |
s|$$(USRLIB)|${LOCALBASE}/lib| ; \ |
87 |
/^SERVER_LIBS=/s|-lz|& -L${LOCALBASE}/lib|' \ |
88 |
${BUILD_WRKSRC}/Makefile |
89 |
.if ${PORT_OPTIONS:MPORT_ENET} |
90 |
${SED} -i .port_enet.bak -e 's/libenet // ; \ |
91 |
s|-I\.\./enet/include|| ; \ |
92 |
s|-L\.\./enet/\.libs||' \ |
93 |
${BUILD_WRKSRC}/Makefile |
94 |
.endif |
95 |
.if ${OPSYS} != FreeBSD |
96 |
${REINPLACE_CMD} -e '/defined/s|FreeBSD|${OPSYS}|g' \ |
97 |
${WRKSRC}/source/enet/unix.c |
98 |
.endif |
99 |
|
73 |
pre-install: .SILENT |
100 |
pre-install: .SILENT |
74 |
# Current STAGEDIR doesn't create empty directories for package, |
101 |
# Current STAGEDIR doesn't create empty directories for package, |
75 |
# in case of dynamically generated TMPPLIST, where these directories exist |
102 |
# in case of dynamically generated TMPPLIST, where these directories exist |