summaryrefslogtreecommitdiff
path: root/games/scummvm-tools/Makefile
blob: 34e86c161b45cbac7243d7985a55136e7311c6e9 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
# Created by: Adam Weinberger <adamw@FreeBSD.org>
# $FreeBSD$

PORTNAME=	scummvm-tools
PORTVERSION=	2.0.0
PORTREVISION=	3
CATEGORIES=	games emulators
MASTER_SITES=	http://www.scummvm.org/frs/${PORTNAME}/${PORTVERSION}/

MAINTAINER=	lme@FreeBSD.org
COMMENT=	Tools for use with the SCUMMVM game emulator

LICENSE=	GPLv2
LICENSE_FILE=	${WRKSRC}/COPYING

RUN_DEPENDS:=	${BUILD_DEPENDS}
BUILD_DEPENDS=	lame:audio/lame \
		flac:audio/flac \
		oggenc:audio/vorbis-tools
LIB_DEPENDS=	libboost_system.so:devel/boost-libs \
		libpng.so:graphics/png \
		libmad.so:audio/libmad \
		libogg.so:audio/libogg \
		libvorbis.so:audio/libvorbis \
		libfreetype.so:print/freetype2

USES=		compiler:c++11-lang gmake iconv tar:bzip2
GNU_CONFIGURE=	yes

CONFIGURE_ARGS+=	--enable-verbose-build
CONFIGURE_TARGET=

STRIP_FILES=	construct_mohawk create_sjisfnt decine decompile degob \
		dekyra deriven descumm desword2 extract_mohawk gob_loadcalc \
		scummvm-tools-cli

DESKTOP_ENTRIES="ScummVM Tools" \
		"" \
		"${DATADIR}/scummvmtools_128.png" \
		"${PORTNAME}" \
		"Games;" \
		false

PORTDOCS=	COPYRIGHT NEWS README TODO

OPTIONS_DEFINE=		WXGTK DOCS
OPTIONS_DEFAULT=	WXGTK

.include <bsd.port.pre.mk>

.if ${PORT_OPTIONS:MWXGTK}
USE_WX=		2.8
WX_COMP=	wx:lib:build
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:
	${STRIP_CMD} ${STRIP_FILES:S|^|${WRKSRC}/|}

post-install-DOCS-on:
	@${MKDIR} ${STAGEDIR}${DOCSDIR}
	${INSTALL_DATA} ${PORTDOCS:S,^,${WRKSRC}/,} ${STAGEDIR}${DOCSDIR}

.include <bsd.port.post.mk>