pkgsrc-wip/residualvm/options.mk
Thomas Klausner 5804cf6fff Import residualvm-0.1.0 as wip/residualvm.
Residual is a ScummVM sub-project to play LucasArts' LUA-based 3D
adventures, such as Grim Fandango. Residual is an OpenGL program,
and requires a 3D card with working OpenGL support for optimum
playability.

A software renderer is also included for machines without hardware
OpenGL.

TODO: dumps core when starting a game.
2012-12-21 23:56:29 +00:00

76 lines
2.4 KiB
Makefile

# $NetBSD: options.mk,v 1.1 2012/12/21 23:56:29 thomasklausner Exp $
PKG_OPTIONS_VAR= PKG_OPTIONS.residualvm
PKG_SUPPORTED_OPTIONS= faad flac fluidsynth mad freetype png theora timidity
PKG_SUGGESTED_OPTIONS= faad flac fluidsynth mad freetype png theora timidity vorbis
# only one of tremor or ogg/vorbis
PKG_OPTIONS_OPTIONAL_GROUPS+= vorbis
PKG_OPTIONS_GROUP.vorbis= vorbis tremor
.include "../../mk/bsd.options.mk"
.if !empty(PKG_OPTIONS:Mfaad)
CONFIGURE_ARGS+= --enable-faad
CONFIGURE_ARGS+= --with-faad-prefix=${BUILDLINK_PREFIX.faad2}
.include "../../audio/faad2/buildlink3.mk"
.endif
.if !empty(PKG_OPTIONS:Mflac)
CONFIGURE_ARGS+= --enable-flac
CONFIGURE_ARGS+= --with-flac-prefix=${BUILDLINK_PREFIX.flac}
.include "../../audio/flac/buildlink3.mk"
.endif
.if !empty(PKG_OPTIONS:Mfluidsynth)
CONFIGURE_ARGS+= --enable-fluidsynth
CONFIGURE_ARGS+= --with-fluidsynth-prefix=${BUILDLINK_PREFIX.fluidsynth}
.include "../../audio/fluidsynth/buildlink3.mk"
.endif
.if !empty(PKG_OPTIONS:Mfreetype)
CONFIGURE_ARGS+= --enable-freetype2
#CONFIGURE_ARGS+= --with-freetype-prefix=${BUILDLINK_PREFIX.freetype2}
.include "../../graphics/freetype2/buildlink3.mk"
.endif
.if !empty(PKG_OPTIONS:Mmad)
CONFIGURE_ARGS+= --enable-mad
CONFIGURE_ARGS+= --with-mad-prefix=${BUILDLINK_PREFIX.libmad}
.include "../../audio/libmad/buildlink3.mk"
.endif
.if !empty(PKG_OPTIONS:Mvorbis)
CONFIGURE_ARGS+= --enable-vorbis
CONFIGURE_ARGS+= --with-vorbis-prefix=${BUILDLINK_PREFIX.libvorbis}
.include "../../audio/libvorbis/buildlink3.mk"
CONFIGURE_ARGS+= --with-ogg-prefix=${BUILDLINK_PREFIX.libogg}
.include "../../multimedia/libogg/buildlink3.mk"
.endif
# mentioned in configure script, but seemingly not used
#.if !empty(PKG_OPTIONS:Mlibmpeg2)
#.include "../../multimedia/libmpeg2/buildlink3.mk"
#.endif
.if !empty(PKG_OPTIONS:Mpng)
CONFIGURE_ARGS+= --enable-png
CONFIGURE_ARGS+= --with-png-prefix=${BUILDLINK_PREFIX.png}
.include "../../graphics/png/buildlink3.mk"
.endif
.if !empty(PKG_OPTIONS:Mtheora)
CONFIGURE_ARGS+= --enable-theoradec
CONFIGURE_ARGS+= --with-theoradec-prefix=${BUILDLINK_PREFIX.libtheora}
.include "../../multimedia/libtheora/buildlink3.mk"
.endif
.if !empty(PKG_OPTIONS:Mtimidity)
DEPENDS+= timidity-[0-9]*:../../audio/timidity
CONFIGURE_ARGS+= --enable-timidity
.endif
.if !empty(PKG_OPTIONS:Mtremor)
CONFIGURE_ARGS+= --with-tremor-prefix=${BUILDLINK_PREFIX.tremor}
CONFIGURE_ARGS+= --enable-tremor
.include "../../audio/tremor/buildlink3.mk"
.endif