Lines 154-172
Link Here
|
154 |
-malign-functions=4 -malign-jumps=4 -malign-loops=4 |
154 |
-malign-functions=4 -malign-jumps=4 -malign-loops=4 |
155 |
.endif |
155 |
.endif |
156 |
|
156 |
|
157 |
# SDL extension - enabled by default because x{mame,mess} can run full |
157 |
# Choose one of several display targets: |
|
|
158 |
# WITH_GL OpenGL based, displays vector games with hardware |
159 |
# acceleration |
160 |
# WITH_SDL Uses the SDL library to be able to play fullscreen |
161 |
# without root rights |
162 |
# WITH_X11 The standard display target, should work without |
163 |
# dependancies other than X |
164 |
# |
165 |
# WITH_SDL is enabled by default because x{mame,mess} can run full |
158 |
# screen without having to be setuid root. |
166 |
# screen without having to be setuid root. |
|
|
167 |
.if defined(WITH_GL) && ${WITH_GL} == "yes" |
168 |
CFLAGS+= ${PTHREAD_CFLAGS} |
169 |
USE_MESA= yes |
170 |
DISPLAY_METHOD= xgl |
171 |
PLIST_SUB+= OPENGL="" |
172 |
.else |
173 |
PLIST_SUB+= OPENGL="@comment " |
159 |
.if !defined(WITH_SDL) || ${WITH_SDL} != "no" |
174 |
.if !defined(WITH_SDL) || ${WITH_SDL} != "no" |
160 |
LIB_DEPENDS= SDL-1.1.3:${PORTSDIR}/devel/sdl-devel |
175 |
LIB_DEPENDS= SDL-1.1.3:${PORTSDIR}/devel/sdl-devel |
161 |
SDL_CONFIG?= ${LOCALBASE}/bin/sdl11-config |
176 |
SDL_CONFIG?= ${LOCALBASE}/bin/sdl11-config |
162 |
MAKE_ENV+= SDL_CONFIG=${SDL_CONFIG} |
177 |
MAKE_ENV+= SDL_CONFIG=${SDL_CONFIG} |
163 |
DISPLAY_METHOD= SDL |
178 |
DISPLAY_METHOD= SDL |
|
|
179 |
.if !defined(WITH_SDL) |
164 |
pre-everything:: |
180 |
pre-everything:: |
165 |
@${ECHO_MSG} "===> If you don't want ${MAMEMESS:U} to be built with SDL support," |
181 |
@${ECHO_MSG} "===> If you don't want ${MAMEMESS:U} to be built with SDL support," |
166 |
@${ECHO_MSG} " use \"make WITH_SDL=no\"" |
182 |
@${ECHO_MSG} " use \"make WITH_SDL=no\"" |
|
|
183 |
@${ECHO_MSG} "===> If you want to build ${MAMEMESS:U} with OpenGL support for vector games," |
184 |
@${ECHO_MSG} " use \"make WITH_GL=yes\"" |
185 |
.endif |
167 |
.else |
186 |
.else |
168 |
DISPLAY_METHOD= x11 |
187 |
DISPLAY_METHOD= x11 |
169 |
.endif |
188 |
.endif |
|
|
189 |
.endif |
170 |
|
190 |
|
171 |
# The large number of sed regexes here is intended to make this port a whole |
191 |
# The large number of sed regexes here is intended to make this port a whole |
172 |
# lot easier to maintain - please don't convert them into a patch. |
192 |
# lot easier to maintain - please don't convert them into a patch. |
Lines 182-190
Link Here
|
182 |
-e "s@= x11@= ${DISPLAY_METHOD}@g" \ |
202 |
-e "s@= x11@= ${DISPLAY_METHOD}@g" \ |
183 |
-e "s@= mame@= ${MAMEMESS}@g" \ |
203 |
-e "s@= mame@= ${MAMEMESS}@g" \ |
184 |
-e "s@# X86_ASM@${ASM_COMMENT}X86_ASM@g" \ |
204 |
-e "s@# X86_ASM@${ASM_COMMENT}X86_ASM@g" \ |
|
|
205 |
-e "s@GLLIBS=.-ldl@GLLIBS= ${PTHREAD_LIBS}@g" \ |
185 |
${WRKSRC}/makefile.unix.sed > ${WRKSRC}/makefile.unix |
206 |
${WRKSRC}/makefile.unix.sed > ${WRKSRC}/makefile.unix |
186 |
.if !defined(WITH_SDL) || ${WITH_SDL} != "no" |
|
|
187 |
${PERL} -pi -e 's@SDL/@SDL11/@' ${WRKSRC}/src/unix/video-drivers/SDL.c |
207 |
${PERL} -pi -e 's@SDL/@SDL11/@' ${WRKSRC}/src/unix/video-drivers/SDL.c |
|
|
208 |
.if ${XMAMEVERSION} != "0.37b12.1" |
209 |
${PERL} -pi -e 's@png.h@../../png.h@' \ |
210 |
${WRKSRC}/src/unix/video-drivers/glexport.c |
211 |
${PERL} -pi -e 's@malloc.h@stdlib.h@' \ |
212 |
${WRKSRC}/src/unix/video-drivers/gljpg.c |
188 |
.endif |
213 |
.endif |
189 |
|
214 |
|
190 |
post-build: |
215 |
post-build: |