2017-04-10 11:46:18 +00:00

65 lines
1.5 KiB
Makefile

# $OpenBSD: Makefile,v 1.68 2017/04/10 11:46:19 sthen Exp $
COMMENT= graphical adventure game interpreter
V= 1.9.0
DISTNAME= scummvm-${V}
CATEGORIES= games x11 emulators
MASTER_SITES= http://www.scummvm.org/frs/scummvm/${V}/
HOMEPAGE= http://www.scummvm.org/
MAINTAINER= Jonathan Gray <jsg@openbsd.org>
# GPLv2+
PERMIT_PACKAGE_CDROM= Yes
WANTLIB += FLAC SDL2 c faad freetype jpeg m mad png pthread sndio ${LIBCXX}
WANTLIB += theoradec z
.if ${MACHINE_ARCH} == "i386"
BUILD_DEPENDS= devel/nasm
.endif
RUN_DEPENDS= devel/desktop-file-utils
LIB_DEPENDS= audio/libmad \
audio/flac \
audio/faad>=2.7 \
devel/sdl2 \
graphics/png \
graphics/jpeg \
multimedia/libtheora
CONFIGURE_STYLE=simple
CONFIGURE_ARGS+= --disable-alsa \
--disable-debug \
--disable-fluidsynth \
--disable-seq-midi \
--disable-mpeg2 \
--disable-sdlnet \
--disable-libcurl \
--enable-sndio \
--mandir="${LOCALBASE}/man"
CONFIGURE_ENV+= CPPFLAGS="-I${LOCALBASE}/include" \
LDFLAGS="-L${LOCALBASE}/lib"
.if ${MACHINE_ARCH} == "arm"
CONFIGURE_ARGS += --enable-tremor --disable-vorbis
LIB_DEPENDS += audio/tremor
WANTLIB += vorbisidec>=1
.else
LIB_DEPENDS += audio/libvorbis
WANTLIB += ogg vorbis>=0 vorbisfile>=1
.endif
NO_TEST= Yes
USE_GMAKE= Yes
MAKE_ENV+= CXXFLAGS="${CXXFLAGS}" CXX="${CXX}" VERBOSE_BUILD=1
post-install:
${INSTALL_DATA_DIR} ${PREFIX}/share/applications
${INSTALL_DATA} ${WRKSRC}/dists/scummvm.desktop \
${PREFIX}/share/applications
.include <bsd.port.mk>