From 0bd9a545660037e43654459539fddf7e9287bfed Mon Sep 17 00:00:00 2001 From: Raphael Kubo da Costa Date: Sat, 12 Jul 2014 17:35:20 +0000 Subject: - Support staging. - Sort OPTIONS_DEFINE. - Stop including bsd.port.{pre,post}.mk: o Replace the ${ARCH} check with BROKEN_=... o Include bsd.port.options.mk for checking the GTK2 option. --- emulators/vba/Makefile | 36 +++++++++++++++--------------------- 1 file changed, 15 insertions(+), 21 deletions(-) (limited to 'emulators') diff --git a/emulators/vba/Makefile b/emulators/vba/Makefile index 13b2197c3efd..89022e61df6d 100644 --- a/emulators/vba/Makefile +++ b/emulators/vba/Makefile @@ -30,26 +30,25 @@ DATA_FILES= ${WRKSRC}/src/VisualBoyAdvance.cfg PROG_FILES= ${WRKSRC}/src/sdl/VisualBoyAdvance PORTDOCS= AUTHORS NEWS README ChangeLog -OPTIONS_DEFINE= GTK2 PROFILING DOCS +OPTIONS_DEFINE= DOCS GTK2 PROFILING OPTIONS_SUB= yes PROFILING_DESC= Enable profiling GTK2_CONFIGURE_ON= --enable-gtk=2.4 +GTK2_LIB_DEPENDS= libglademm-2.4.so:${PORTSDIR}/devel/libglademm24 PROFILING_CONFIGURE_ENABLE= profiling -NO_STAGE= yes -.include +BROKEN_ia64= Runaway cc1plus process +BROKEN_powerpc= Runaway cc1plus process +BROKEN_sparc64= Runaway cc1plus process + +.include .if ${PORT_OPTIONS:MGTK2} -LIB_DEPENDS+= glademm-2.4:${PORTSDIR}/devel/libglademm24 -PROG_FILES+= ${WRKSRC}/src/gtk/gvba +PROG_FILES+= ${WRKSRC}/src/gtk/gvba GTK2_DATA_FILES= ${WRKSRC}/src/gtk/vba.glade .endif -.if ${ARCH} == "ia64" || ${ARCH} == "powerpc" || ${ARCH} == "sparc64" -BROKEN= Runaway cc1plus process -.endif - post-patch: @${REINPLACE_CMD} -e '/for(int i = 0; i < 16; i++/s| i|&_|g' \ ${WRKSRC}/src/sdl/debugger.cpp @@ -57,19 +56,14 @@ post-patch: s|^|#include |; H; x; }' ${WRKSRC}/src/expr.cpp do-install: - ${INSTALL_PROGRAM} ${PROG_FILES} ${PREFIX}/bin + ${INSTALL_PROGRAM} ${PROG_FILES} ${STAGEDIR}${PREFIX}/bin .if ${PORT_OPTIONS:MGTK2} - @${MKDIR} ${PREFIX}/share/VisualBoyAdvance - ${INSTALL_DATA} ${GTK2_DATA_FILES} ${PREFIX}/share/VisualBoyAdvance + ${MKDIR} ${STAGEDIR}${PREFIX}/share/VisualBoyAdvance + ${INSTALL_DATA} ${GTK2_DATA_FILES} ${STAGEDIR}${PREFIX}/share/VisualBoyAdvance .endif ${SED} -e 's|filter=0|filter=1|' ${DATA_FILES} > ${DATA_FILES}-default - ${INSTALL_DATA} ${DATA_FILES}-default ${PREFIX}/bin -.if ${PORT_OPTIONS:MDOCS} - @${MKDIR} ${DOCSDIR} - ${INSTALL_DATA} ${PORTDOCS:S|^|${WRKSRC}/|} ${DOCSDIR} -.endif - @${ECHO_MSG} - @${CAT} ${PKGMESSAGE} - @${ECHO_MSG} + ${INSTALL_DATA} ${DATA_FILES}-default ${STAGEDIR}${PREFIX}/bin + ${MKDIR} ${STAGEDIR}${DOCSDIR} + ${INSTALL_DATA} ${PORTDOCS:S|^|${WRKSRC}/|} ${STAGEDIR}${DOCSDIR} -.include +.include -- cgit v1.2.3