aboutsummaryrefslogtreecommitdiff
path: root/games/scummvm-tools/Makefile
diff options
context:
space:
mode:
authorLars Engels <lme@FreeBSD.org>2014-04-10 20:57:50 +0000
committerLars Engels <lme@FreeBSD.org>2014-04-10 20:57:50 +0000
commit583a6b8418ec73fb78564a2ec9474664adcb282f (patch)
treea62eae122c2646c51f6c9a82453f891c34a8738d /games/scummvm-tools/Makefile
parent876883a3500d9bf21cc4c0d44261db40149f9d72 (diff)
downloadports-583a6b8418ec73fb78564a2ec9474664adcb282f.tar.gz
ports-583a6b8418ec73fb78564a2ec9474664adcb282f.zip
Notes
Diffstat (limited to 'games/scummvm-tools/Makefile')
-rw-r--r--games/scummvm-tools/Makefile21
1 files changed, 19 insertions, 2 deletions
diff --git a/games/scummvm-tools/Makefile b/games/scummvm-tools/Makefile
index babc3803700a..f3a53144d8bf 100644
--- a/games/scummvm-tools/Makefile
+++ b/games/scummvm-tools/Makefile
@@ -3,13 +3,15 @@
PORTNAME= scummvm-tools
DISTVERSION= 1.6.0
-PORTREVISION= 1
+PORTREVISION= 2
CATEGORIES= games emulators
MASTER_SITES= SF/scummvm/${PORTNAME}/${DISTVERSION}
MAINTAINER= lme@FreeBSD.org
COMMENT= Tools for use with the SCUMMVM game emulator
+LICENSE= GPLv2
+
RUN_DEPENDS= scummvm:${PORTSDIR}/games/scummvm
BUILD_DEPENDS= lame:${PORTSDIR}/audio/lame \
flac:${PORTSDIR}/audio/flac \
@@ -24,6 +26,10 @@ GNU_CONFIGURE= yes
CONFIGURE_TARGET=
+STRIP_FILES= construct_mohawk create_sjisfnt decine decompile degob dekyra \
+ deriven descumm desword2 extract_mohawk gob_loadcalc \
+ scummvm-tools-cli
+
OPTIONS_DEFINE= WXGTK
OPTIONS_DEFAULT= WXGTK
@@ -31,16 +37,27 @@ OPTIONS_DEFAULT= WXGTK
.include <bsd.port.pre.mk>
.if ${PORT_OPTIONS:MWXGTK}
-USE_WX= 3.0
+USE_WX= 2.8
WX_COMP= wx:lib:build
WX_UNICODE= yes
+WX_CONFIG_ARGS= absolute
GUI_BIN= tools_gui
PLIST_SUB= WX=""
+STRIP_FILES+= scummvm-tools
.else
CONFIGURE_ARGS+= --disable-wxwidgets
PLIST_SUB= WX="@comment "
.endif
+pre-patch:
+ @${REINPLACE_CMD} -e 's|wxgtk2-2.8-config|${WX_CONFIG:C/.*\///}|' \
+ ${WRKSRC}/configure
+
+pre-install:
+.for f in ${STRIP_FILES}
+ @${STRIP_CMD} ${WRKSRC}/$f
+.endfor
+
post-install:
@${MKDIR} ${STAGEDIR}${DOCSDIR}
@${INSTALL_DATA} ${WRKSRC}/README ${STAGEDIR}${DOCSDIR}