Update ports-mgmt/pkg-devel to version 1.4.0.p.a4
[dports.git] / games / scummvm / Makefile
1 # Created by: Alex Trull <freebsd.alex@trull.org>
2 # $FreeBSD$
3
4 PORTNAME=       scummvm
5 DISTVERSION=    1.7.0
6 CATEGORIES=     games emulators
7 MASTER_SITES=   SF
8 MASTER_SITE_SUBDIR=     ${PORTNAME}/${PORTNAME}/${DISTVERSION}
9
10 MAINTAINER=     lme@FreeBSD.org
11 COMMENT=        Interpreter for several adventure games
12
13 USES=           gmake tar:bzip2
14 HAS_CONFIGURE=  yes
15 USE_SDL=        sdl
16
17 CONFIGURE_ARGS= --with-sdl-prefix=${LOCALBASE} \
18                 --disable-alsa \
19                 --with-zlib-prefix=/usr \
20                 --disable-debug \
21                 --disable-nasm \
22                 --disable-tremor
23 LDFLAGS+=       ${PTHREAD_LIBS}
24
25 OPTIONS_DEFINE= VORBIS MP3 PNG FLAC FLUIDSYNTH MT32EMU DOCS
26 FLUIDSYNTH_DESC=        FluidSynth MIDI synthesizer
27 MT32EMU_DESC=   MT-32 emulator
28 OPTIONS_DEFAULT=        VORBIS MP3 PNG MT32EMU
29
30 VORBIS_LIB_DEPENDS=     libogg.so:${PORTSDIR}/audio/libogg \
31                         libvorbis.so:${PORTSDIR}/audio/libvorbis
32 VORBIS_CONFIGURE_ON=    --with-ogg-prefix=${LOCALBASE} \
33                         --with-vorbis-prefix=${LOCALBASE}
34 VORBIS_CONFIGURE_OFF=   --disable-vorbis
35
36 MP3_LIB_DEPENDS=        libmad.so:${PORTSDIR}/audio/libmad
37 MP3_CONFIGURE_ON=       --with-mad-prefix=${LOCALBASE}
38 MP3_CONFIGURE_OFF=      --disable-mad
39
40 PNG_LIB_DEPENDS=        libpng.so:${PORTSDIR}/graphics/png
41 PNG_CONFIGURE_ON=       --with-png-prefix=${LOCALBASE}
42 PNG_CONFIGURE_OFF=      --disable-png
43
44 FLAC_LIB_DEPENDS=       libFLAC.so:${PORTSDIR}/audio/flac
45 FLAC_CONFIGURE_ON=      --with-flac-prefix=${LOCALBASE}
46 FLAC_CONFIGURE_OFF=     --disable-flac
47
48 FLUIDSYNTH_LIB_DEPENDS=         libfluidsynth.so:${PORTSDIR}/audio/fluidsynth
49 FLUIDSYNTH_CONFIGURE_ON=        --with-fluidsynth-prefix=${LOCALBASE}
50 FLUIDSYNTH_CONFIGURE_OFF=       --disable-fluidsynth
51
52 MT32EMU_CONFIGURE_OFF=  --disable-mt32emu
53
54 .include <bsd.port.pre.mk>
55
56 .if ${ARCH} == "ia64" || ${ARCH} == "powerpc" || ${ARCH} == "sparc64"
57 BROKEN=         Does not compile on ia64, powerpc, or sparc64
58 .endif
59
60 post-patch:
61         @${REINPLACE_CMD} -e '/^mandir=/s/datarootdir/prefix/' ${WRKSRC}/configure
62
63 post-install:
64         ${MKDIR} ${STAGEDIR}${DESKTOPDIR}
65         ${INSTALL_DATA} ${WRKSRC}/dists/${PORTNAME}.desktop ${STAGEDIR}${DESKTOPDIR}/
66         ${STRIP_CMD} ${STAGEDIR}${PREFIX}/bin/${PORTNAME}
67
68 .include <bsd.port.post.mk>