Lines 21-27
Link Here
|
21 |
|
21 |
|
22 |
OPTIONS= ALLEGRO "Use Allegro for hardware API" off \ |
22 |
OPTIONS= ALLEGRO "Use Allegro for hardware API" off \ |
23 |
FLAC "Enable FLAC support" off \ |
23 |
FLAC "Enable FLAC support" off \ |
24 |
LAUNCHER "Build GUI launcher" on \ |
24 |
LAUNCHER "Build GUI launcher" off \ |
25 |
LIBMAD "Enable MP3 support" off \ |
25 |
LIBMAD "Enable MP3 support" off \ |
26 |
MIKMOD "Enable MikMod support" off \ |
26 |
MIKMOD "Enable MikMod support" off \ |
27 |
OPENAL "Enable OpenAL support" off \ |
27 |
OPENAL "Enable OpenAL support" off \ |
Lines 29-40
Link Here
|
29 |
OPTIMIZED_CFLAGS "Enable compilation optimizations" off \ |
29 |
OPTIMIZED_CFLAGS "Enable compilation optimizations" off \ |
30 |
VORBIS "Enable Ogg Vorbis support" off \ |
30 |
VORBIS "Enable Ogg Vorbis support" off \ |
31 |
SDL "Use SDL for hardware API" on \ |
31 |
SDL "Use SDL for hardware API" on \ |
32 |
WXUNICODE "Enable Unicode support" on |
32 |
WXUNICODE "Enable Unicode support" off |
33 |
|
33 |
|
34 |
SUB_FILES= pkg-message |
34 |
SUB_FILES= pkg-message |
35 |
|
35 |
|
36 |
BROKEN= fails to build with new cmake. |
|
|
37 |
|
38 |
.include <bsd.port.pre.mk> |
36 |
.include <bsd.port.pre.mk> |
39 |
|
37 |
|
40 |
# The `-fno-strict-aliasing' flag (default on FreeBSD 6.0+) produces |
38 |
# The `-fno-strict-aliasing' flag (default on FreeBSD 6.0+) produces |
Lines 64-78
Link Here
|
64 |
CMAKE_ARGS+= -DWITH_FLAC=N |
62 |
CMAKE_ARGS+= -DWITH_FLAC=N |
65 |
.endif |
63 |
.endif |
66 |
|
64 |
|
67 |
.if defined(WITH_LAUNCHER) |
65 |
#.if defined(WITH_LAUNCHER) |
68 |
USE_WX= 2.4+ |
66 |
#USE_WX= 2.4+ |
69 |
CMAKE_ARGS+= -DENABLE_LAUNCHER=Y \ |
67 |
#CMAKE_ARGS+= -DENABLE_LAUNCHER=Y \ |
70 |
-DwxWidgets_CONFIG_EXECUTABLE="${WX_CONFIG}" |
68 |
# -DwxWidgets_CONFIG_EXECUTABLE="${WX_CONFIG}" |
71 |
PLIST_SUB+= LAUNCHER="" |
69 |
#PLIST_SUB+= LAUNCHER="" |
72 |
.else |
70 |
#.else |
73 |
CMAKE_ARGS+= -DENABLE_LAUNCHER=N |
71 |
CMAKE_ARGS+= -DENABLE_LAUNCHER=N |
74 |
PLIST_SUB+= LAUNCHER="@comment " |
72 |
PLIST_SUB+= LAUNCHER="@comment " |
75 |
.endif |
73 |
#.endif |
76 |
|
74 |
|
77 |
.if defined(WITH_LIBMAD) |
75 |
.if defined(WITH_LIBMAD) |
78 |
LIB_DEPENDS+= mad.2:${PORTSDIR}/audio/libmad |
76 |
LIB_DEPENDS+= mad.2:${PORTSDIR}/audio/libmad |
Lines 128-133
Link Here
|
128 |
WX_UNICODE=yes |
126 |
WX_UNICODE=yes |
129 |
.endif |
127 |
.endif |
130 |
|
128 |
|
|
|
129 |
pre-everything:: |
130 |
.if defined(WITH_LAUNCHER) |
131 |
@${ECHO_MSG} "" |
132 |
@${ECHO_MSG} "===> Even if WITH_LAUNCHER has been set, vlauch will not" |
133 |
@${ECHO_MSG} "===> be built because of a problem with cmake and wxgtk" |
134 |
@${ECHO_MSG} "" |
135 |
.endif |
136 |
|
131 |
post-patch: |
137 |
post-patch: |
132 |
@cd ${WRKSRC} && ${SH} fixunix.sh |
138 |
@cd ${WRKSRC} && ${SH} fixunix.sh |
133 |
@${REINPLACE_CMD} -e 's|$$\* ||; s|$${IWADDIR}|-iwaddir ${DMDIR} $$*|' \ |
139 |
@${REINPLACE_CMD} -e 's|$$\* ||; s|$${IWADDIR}|-iwaddir ${DMDIR} $$*|' \ |