Lines 42-58
Link Here
|
42 |
PORTDATA= config demos packages |
42 |
PORTDATA= config demos packages |
43 |
PORTDOCS= * |
43 |
PORTDOCS= * |
44 |
|
44 |
|
45 |
OPTIONS= CLIENT "Build client" on \ |
45 |
OPTIONS_DEFINE= CLIENT DEDICATED DOCS MASTER |
46 |
DEDICATED "Build dedicated server" on \ |
46 |
OPTIONS_DEFAULT= CLIENT DEDICATED |
47 |
MASTER "Build master server" off |
47 |
CLIENT_DESC= Build client |
|
|
48 |
DEDICATED_DESC= Build dedicated server |
49 |
MASTER_DESC= Build master server |
48 |
|
50 |
|
49 |
.include <bsd.port.pre.mk> |
51 |
.include <bsd.port.options.mk> |
50 |
|
52 |
|
51 |
.if defined(WITHOUT_CLIENT) && defined(WITHOUT_DEDICATED) && defined(WITHOUT_MASTER) |
53 |
.if !${PORT_OPTIONS:MCLIENT} && !${PORT_OPTIONS:MDEDICATED} && !${PORT_OPTIONS:MMASTER} |
52 |
IGNORE= needs at least one executable (CLIENT, DEDICATED or MASTER) |
54 |
IGNORE= needs at least one executable (CLIENT, DEDICATED or MASTER) |
53 |
.endif |
55 |
.endif |
54 |
|
56 |
|
55 |
.if !defined(WITHOUT_CLIENT) |
57 |
.if ${PORT_OPTIONS:MCLIENT} |
56 |
USE_GETTEXT= yes |
58 |
USE_GETTEXT= yes |
57 |
USE_GL= yes |
59 |
USE_GL= yes |
58 |
USE_SDL= image mixer sdl |
60 |
USE_SDL= image mixer sdl |
Lines 65-77
Link Here
|
65 |
"Application;Game;" ${FALSE} |
67 |
"Application;Game;" ${FALSE} |
66 |
.endif |
68 |
.endif |
67 |
|
69 |
|
68 |
.if !defined(WITHOUT_DEDICATED) |
70 |
.if ${PORT_OPTIONS:MDEDICATED} |
69 |
ALL_TARGET+= server |
71 |
ALL_TARGET+= server |
70 |
SUB_FILES+= ${PORTNAME}_server |
72 |
SUB_FILES+= ${PORTNAME}_server |
71 |
ACUBE_BIN+= server |
73 |
ACUBE_BIN+= server |
72 |
.endif |
74 |
.endif |
73 |
|
75 |
|
74 |
.if !defined(WITHOUT_MASTER) |
76 |
.if ${PORT_OPTIONS:MMASTER} |
75 |
ALL_TARGET+= master |
77 |
ALL_TARGET+= master |
76 |
SUB_FILES+= ${PORTNAME}_master |
78 |
SUB_FILES+= ${PORTNAME}_master |
77 |
ACUBE_BIN+= master |
79 |
ACUBE_BIN+= master |
Lines 86-92
Link Here
|
86 |
${MKDIR} ${DATADIR} |
88 |
${MKDIR} ${DATADIR} |
87 |
cd ${WRKSRC} && ${COPYTREE_SHARE} "${PORTDATA}" ${DATADIR} |
89 |
cd ${WRKSRC} && ${COPYTREE_SHARE} "${PORTDATA}" ${DATADIR} |
88 |
.endif |
90 |
.endif |
89 |
.if !defined(NOPORTDOCS) |
91 |
.if ${PORT_OPTIONS:MDOCS} |
90 |
${MKDIR} ${DOCSDIR} |
92 |
${MKDIR} ${DOCSDIR} |
91 |
cd ${WRKSRC}/docs && ${COPYTREE_SHARE} . ${DOCSDIR} |
93 |
cd ${WRKSRC}/docs && ${COPYTREE_SHARE} . ${DOCSDIR} |
92 |
.endif |
94 |
.endif |
Lines 97-100
Link Here
|
97 |
@${ECHO_CMD} libexec/${PORTNAME}_${f} >> ${TMPPLIST} |
99 |
@${ECHO_CMD} libexec/${PORTNAME}_${f} >> ${TMPPLIST} |
98 |
.endfor |
100 |
.endfor |
99 |
|
101 |
|
100 |
.include <bsd.port.post.mk> |
102 |
.include <bsd.port.mk> |