aboutsummaryrefslogtreecommitdiffstats
path: root/games/scummvm-tools/Makefile
blob: 7e70c9667ca3d44226de2e9bd62c3fab4efa72d4 (plain) (blame)
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
# Created by: Adam Weinberger <adamw@FreeBSD.org>
# $FreeBSD$

PORTNAME=   scummvm-tools
DISTVERSION=    1.6.0
PORTREVISION=   1
CATEGORIES= games emulators
MASTER_SITES=   SF/scummvm/${PORTNAME}/${DISTVERSION}

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

RUN_DEPENDS=    scummvm:${PORTSDIR}/games/scummvm
BUILD_DEPENDS=  lame:${PORTSDIR}/audio/lame \
        flac:${PORTSDIR}/audio/flac \
        oggenc:${PORTSDIR}/audio/vorbis-tools \
        oggdec:${PORTSDIR}/audio/vorbis-tools \

LIB_DEPENDS=    libpng15.so:${PORTSDIR}/graphics/png \
        libvorbis.so:${PORTSDIR}/audio/libvorbis

USE_BZIP2=  yes
USES=       gmake
GNU_CONFIGURE=  yes

CONFIGURE_TARGET=

OPTIONS_DEFINE= WXGTK
OPTIONS_DEFAULT=    WXGTK

.include <bsd.port.options.mk>
.include <bsd.port.pre.mk>

.if ${PORT_OPTIONS:MWXGTK}
USE_WX=     3.0
WX_CONFIG=  ${LOCALBASE}/bin/wxgtk2-2.8-config
WX_COMP=    wx:lib:build
WX_UNICODE= yes
GUI_BIN=    tools_gui
PLIST_SUB=  WX=""
.else
CONFIGURE_ARGS+=    --disable-wxwidgets
PLIST_SUB=  WX="@comment "
.endif

post-install:
    @${MKDIR} ${STAGEDIR}${DOCSDIR}
    @${INSTALL_DATA} ${WRKSRC}/README ${STAGEDIR}${DOCSDIR}

.include <bsd.port.post.mk>