diff options
Diffstat (limited to 'emulators/xmame/Makefile')
-rw-r--r-- | emulators/xmame/Makefile | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/emulators/xmame/Makefile b/emulators/xmame/Makefile index b887e74..c295fa4 100644 --- a/emulators/xmame/Makefile +++ b/emulators/xmame/Makefile @@ -176,11 +176,13 @@ LIB_DEPENDS= SDL-1.1.3:${PORTSDIR}/devel/sdl-devel SDL_CONFIG?= ${LOCALBASE}/bin/sdl11-config MAKE_ENV+= SDL_CONFIG=${SDL_CONFIG} DISPLAY_METHOD= SDL +.if !defined(WITH_SDL) pre-everything:: @${ECHO_MSG} "===> If you don't want ${MAMEMESS:U} to be built with SDL support," @${ECHO_MSG} " use \"make WITH_SDL=no\"" - @${ECHO_MSG} "===> You can also build ${MAMEMESS:U} with OpenGL support." - @${ECHO_MSG} " use \"make WITH_GL=yes\" for this" + @${ECHO_MSG} "===> If you want to build ${MAMEMESS:U} with OpenGL support for vector games," + @${ECHO_MSG} " use \"make WITH_GL=yes\"" +.endif .else DISPLAY_METHOD= x11 .endif @@ -203,8 +205,12 @@ do-configure: -e "s@GLLIBS=.-ldl@GLLIBS= ${PTHREAD_LIBS}@g" \ ${WRKSRC}/makefile.unix.sed > ${WRKSRC}/makefile.unix ${PERL} -pi -e 's@SDL/@SDL11/@' ${WRKSRC}/src/unix/video-drivers/SDL.c +.if ${XMAMEVERSION} != "0.37b12.1" ${PERL} -pi -e 's@png.h@../../png.h@' \ ${WRKSRC}/src/unix/video-drivers/glexport.c + ${PERL} -pi -e 's@malloc.h@stdlib.h@' \ + ${WRKSRC}/src/unix/video-drivers/gljpg.c +.endif post-build: cd ${WRKSRC} && ${SETENV} ${MAKE_ENV} SDL_VIDEODRIVER=aalib \ |