1 # Created by: Alex Trull <freebsd.alex@trull.org>
6 CATEGORIES= games emulators
8 MASTER_SITE_SUBDIR= ${PORTNAME}/${PORTNAME}/${DISTVERSION}
10 MAINTAINER= lme@FreeBSD.org
11 COMMENT= Interpreter for several adventure games
17 CONFIGURE_ARGS= --with-sdl-prefix=${LOCALBASE} \
19 --with-zlib-prefix=/usr \
23 LDFLAGS+= ${PTHREAD_LIBS}
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
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
36 MP3_LIB_DEPENDS= libmad.so:${PORTSDIR}/audio/libmad
37 MP3_CONFIGURE_ON= --with-mad-prefix=${LOCALBASE}
38 MP3_CONFIGURE_OFF= --disable-mad
40 PNG_LIB_DEPENDS= libpng.so:${PORTSDIR}/graphics/png
41 PNG_CONFIGURE_ON= --with-png-prefix=${LOCALBASE}
42 PNG_CONFIGURE_OFF= --disable-png
44 FLAC_LIB_DEPENDS= libFLAC.so:${PORTSDIR}/audio/flac
45 FLAC_CONFIGURE_ON= --with-flac-prefix=${LOCALBASE}
46 FLAC_CONFIGURE_OFF= --disable-flac
48 FLUIDSYNTH_LIB_DEPENDS= libfluidsynth.so:${PORTSDIR}/audio/fluidsynth
49 FLUIDSYNTH_CONFIGURE_ON= --with-fluidsynth-prefix=${LOCALBASE}
50 FLUIDSYNTH_CONFIGURE_OFF= --disable-fluidsynth
52 MT32EMU_CONFIGURE_OFF= --disable-mt32emu
54 .include <bsd.port.pre.mk>
56 .if ${ARCH} == "ia64" || ${ARCH} == "powerpc" || ${ARCH} == "sparc64"
57 BROKEN= Does not compile on ia64, powerpc, or sparc64
61 @${REINPLACE_CMD} -e '/^mandir=/s/datarootdir/prefix/' ${WRKSRC}/configure
64 ${MKDIR} ${STAGEDIR}${DESKTOPDIR}
65 ${INSTALL_DATA} ${WRKSRC}/dists/${PORTNAME}.desktop ${STAGEDIR}${DESKTOPDIR}/
66 ${STRIP_CMD} ${STAGEDIR}${PREFIX}/bin/${PORTNAME}
68 .include <bsd.port.post.mk>