2012-10-06 15:24:32 -04:00
|
|
|
# $OpenBSD: Makefile,v 1.54 2012/10/06 19:24:32 jsg Exp $
|
2003-03-30 09:05:25 -05:00
|
|
|
|
2007-09-15 14:01:00 -04:00
|
|
|
COMMENT= graphical adventure game interpreter
|
2012-08-04 11:58:37 -04:00
|
|
|
DISTNAME= scummvm-1.5.0
|
2012-10-06 15:24:32 -04:00
|
|
|
REVISION= 0
|
2003-03-30 09:05:25 -05:00
|
|
|
CATEGORIES= games x11 emulators
|
|
|
|
MASTER_SITES= ${MASTER_SITE_SOURCEFORGE:=scummvm/}
|
|
|
|
|
|
|
|
HOMEPAGE= http://scummvm.sourceforge.net/
|
|
|
|
|
2004-11-28 06:56:57 -05:00
|
|
|
MAINTAINER= Jonathan Gray <jsg@openbsd.org>
|
2003-03-30 09:05:25 -05:00
|
|
|
|
2011-05-29 16:41:50 -04:00
|
|
|
# GPLv2+
|
2003-03-30 09:05:25 -05:00
|
|
|
PERMIT_PACKAGE_CDROM= Yes
|
|
|
|
PERMIT_PACKAGE_FTP= Yes
|
|
|
|
PERMIT_DISTFILES_CDROM= Yes
|
|
|
|
PERMIT_DISTFILES_FTP= Yes
|
2011-05-29 16:41:50 -04:00
|
|
|
|
2012-04-19 03:43:47 -04:00
|
|
|
WANTLIB= FLAC>=5 SDL c faad m mad>=2 pthread sndio stdc++ theoradec z
|
2003-03-30 09:05:25 -05:00
|
|
|
|
2005-07-06 06:45:44 -04:00
|
|
|
.if ${MACHINE_ARCH} == "i386"
|
2010-11-16 06:23:25 -05:00
|
|
|
BUILD_DEPENDS= devel/nasm
|
2005-07-06 06:45:44 -04:00
|
|
|
.endif
|
|
|
|
|
2010-11-16 06:23:25 -05:00
|
|
|
RUN_DEPENDS= devel/desktop-file-utils
|
2011-05-29 16:41:50 -04:00
|
|
|
LIB_DEPENDS= audio/libmad \
|
|
|
|
audio/flac \
|
2012-05-22 14:39:42 -04:00
|
|
|
audio/faad>=2.7 \
|
2011-05-29 16:41:50 -04:00
|
|
|
devel/sdl \
|
|
|
|
multimedia/libtheora
|
2003-03-30 09:05:25 -05:00
|
|
|
|
2004-03-30 21:49:36 -05:00
|
|
|
CONFIGURE_STYLE=simple
|
2012-04-19 03:43:47 -04:00
|
|
|
CONFIGURE_ARGS+=--disable-alsa --disable-debug --disable-seq-midi --enable-sndio
|
2004-03-30 21:49:36 -05:00
|
|
|
CONFIGURE_ENV+= CPPFLAGS="-I${LOCALBASE}/include" \
|
|
|
|
LDFLAGS="-L${LOCALBASE}/lib"
|
2010-10-18 17:50:38 -04:00
|
|
|
USE_GROFF = Yes
|
2005-06-29 22:47:48 -04:00
|
|
|
|
|
|
|
.if ${MACHINE_ARCH} == "arm"
|
2010-11-08 10:54:53 -05:00
|
|
|
CONFIGURE_ARGS += --enable-tremor --disable-vorbis
|
2010-11-16 06:23:25 -05:00
|
|
|
LIB_DEPENDS += audio/tremor
|
|
|
|
WANTLIB += vorbisidec>=1
|
2005-06-29 22:47:48 -04:00
|
|
|
.else
|
2010-11-16 06:23:25 -05:00
|
|
|
LIB_DEPENDS += audio/libvorbis
|
|
|
|
WANTLIB += ogg vorbis>=0 vorbisfile>=1
|
2005-06-29 22:47:48 -04:00
|
|
|
.endif
|
|
|
|
|
2003-03-30 09:05:25 -05:00
|
|
|
NO_REGRESS= Yes
|
|
|
|
USE_GMAKE= Yes
|
|
|
|
|
2011-05-29 16:41:50 -04:00
|
|
|
MAKE_ENV+= CXXFLAGS="${CXXFLAGS}" CXX="${CXX}" VERBOSE_BUILD=1
|
2004-03-30 21:49:36 -05:00
|
|
|
|
2003-03-30 09:05:25 -05:00
|
|
|
do-install:
|
|
|
|
${INSTALL_DATA_DIR} ${PREFIX}/share/doc/scummvm
|
2007-07-06 21:37:53 -04:00
|
|
|
${INSTALL_DATA_DIR} ${PREFIX}/share/icons
|
|
|
|
${INSTALL_DATA_DIR} ${PREFIX}/share/scummvm
|
|
|
|
${INSTALL_DATA_DIR} ${PREFIX}/share/applications
|
|
|
|
${INSTALL_DATA} ${WRKSRC}/{NEWS,AUTHORS,README} \
|
|
|
|
${PREFIX}/share/doc/scummvm
|
|
|
|
${INSTALL_DATA} ${WRKSRC}/icons/scummvm.{svg,xpm} ${PREFIX}/share/icons
|
2006-07-08 00:14:30 -04:00
|
|
|
${INSTALL_MAN} ${WRKSRC}/dists/scummvm.6 ${PREFIX}/man/man6
|
2009-05-21 09:27:44 -04:00
|
|
|
${INSTALL_DATA} ${WRKSRC}/gui/themes/{scummmodern,scummclassic}.zip \
|
2007-07-06 21:37:53 -04:00
|
|
|
${PREFIX}/share/scummvm
|
2010-10-17 15:59:51 -04:00
|
|
|
${INSTALL_DATA} ${WRKSRC}/gui/themes/translations.dat \
|
|
|
|
${PREFIX}/share/scummvm
|
2007-07-06 21:37:53 -04:00
|
|
|
${INSTALL_DATA} ${WRKSRC}/dists/scummvm.desktop \
|
|
|
|
${PREFIX}/share/applications
|
2003-03-30 09:05:25 -05:00
|
|
|
${INSTALL_PROGRAM} ${WRKSRC}/scummvm ${PREFIX}/bin
|
|
|
|
|
|
|
|
.include <bsd.port.mk>
|