aboutsummaryrefslogtreecommitdiffstats
path: root/emulators/vba
diff options
context:
space:
mode:
authorrakuco <rakuco@FreeBSD.org>2014-07-13 01:35:20 +0800
committerrakuco <rakuco@FreeBSD.org>2014-07-13 01:35:20 +0800
commit9cbbb0ce88a336d5f64ac3a0a80d08bdea8da84e (patch)
tree4f30031842df82cdeb089cd14c405d166f675405 /emulators/vba
parent569f4fe782aed76977e3c8d292a4c1b1883951d9 (diff)
downloadfreebsd-ports-gnome-9cbbb0ce88a336d5f64ac3a0a80d08bdea8da84e.tar.gz
freebsd-ports-gnome-9cbbb0ce88a336d5f64ac3a0a80d08bdea8da84e.tar.zst
freebsd-ports-gnome-9cbbb0ce88a336d5f64ac3a0a80d08bdea8da84e.zip
- Support staging.
- Sort OPTIONS_DEFINE. - Stop including bsd.port.{pre,post}.mk: o Replace the ${ARCH} check with BROKEN_<arch>=... o Include bsd.port.options.mk for checking the GTK2 option.
Diffstat (limited to 'emulators/vba')
-rw-r--r--emulators/vba/Makefile36
1 files changed, 15 insertions, 21 deletions
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 <bsd.port.pre.mk>
+BROKEN_ia64= Runaway cc1plus process
+BROKEN_powerpc= Runaway cc1plus process
+BROKEN_sparc64= Runaway cc1plus process
+
+.include <bsd.port.options.mk>
.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 <sys/types.h>|; 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 <bsd.port.post.mk>
+.include <bsd.port.mk>