2009-12-22 11:27:59 -05:00
|
|
|
# $OpenBSD: Makefile,v 1.33 2009/12/22 16:28:01 ajacoutot Exp $
|
2005-02-28 17:24:53 -05:00
|
|
|
|
|
|
|
.if ${MACHINE_ARCH} == "hppa"
|
2007-09-15 14:01:00 -04:00
|
|
|
BROKEN= gcc bug
|
2005-02-28 17:24:53 -05:00
|
|
|
.endif
|
2003-03-30 09:05:25 -05:00
|
|
|
|
2007-09-15 14:01:00 -04:00
|
|
|
COMMENT= graphical adventure game interpreter
|
2009-12-09 17:03:06 -05:00
|
|
|
DISTNAME= scummvm-1.0.0
|
2009-12-22 11:27:59 -05:00
|
|
|
PKGNAME= ${DISTNAME}p0
|
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
|
|
|
|
|
|
|
# GPL
|
|
|
|
PERMIT_PACKAGE_CDROM= Yes
|
|
|
|
PERMIT_PACKAGE_FTP= Yes
|
|
|
|
PERMIT_DISTFILES_CDROM= Yes
|
|
|
|
PERMIT_DISTFILES_FTP= Yes
|
2009-08-10 02:29:51 -04:00
|
|
|
WANTLIB= X11 Xext c m pthread pthread-stubs stdc++ usbhid xcb z
|
2003-03-30 09:05:25 -05:00
|
|
|
|
2005-07-06 06:45:44 -04:00
|
|
|
.if ${MACHINE_ARCH} == "i386"
|
|
|
|
BUILD_DEPENDS= ::devel/nasm
|
|
|
|
.endif
|
|
|
|
|
2007-12-15 15:37:32 -05:00
|
|
|
RUN_DEPENDS= :desktop-file-utils-*:devel/desktop-file-utils
|
2003-03-30 09:05:25 -05:00
|
|
|
LIB_DEPENDS= SDL::devel/sdl \
|
2006-08-01 06:50:19 -04:00
|
|
|
mad.>=2::audio/libmad \
|
|
|
|
FLAC.>=5::audio/flac
|
2003-03-30 09:05:25 -05:00
|
|
|
|
2004-03-30 21:49:36 -05:00
|
|
|
CONFIGURE_STYLE=simple
|
2009-12-09 17:03:06 -05:00
|
|
|
CONFIGURE_ARGS+=--disable-alsa --disable-debug --enable-sci
|
2004-03-30 21:49:36 -05:00
|
|
|
CONFIGURE_ENV+= CPPFLAGS="-I${LOCALBASE}/include" \
|
|
|
|
LDFLAGS="-L${LOCALBASE}/lib"
|
2005-06-29 22:47:48 -04:00
|
|
|
|
|
|
|
.if ${MACHINE_ARCH} == "arm"
|
|
|
|
CONFIGURE_ARGS+=--enable-tremor --disable-vorbis
|
2006-08-01 06:50:19 -04:00
|
|
|
LIB_DEPENDS+= vorbisidec.>=1::audio/tremor
|
2005-06-29 22:47:48 -04:00
|
|
|
.else
|
2006-08-01 06:50:19 -04:00
|
|
|
LIB_DEPENDS+= vorbis.>=0,vorbisfile.>=1::audio/libvorbis
|
2005-06-29 22:47:48 -04:00
|
|
|
WANTLIB+= ogg
|
|
|
|
.endif
|
|
|
|
|
2003-03-30 09:05:25 -05:00
|
|
|
NO_REGRESS= Yes
|
|
|
|
USE_GMAKE= Yes
|
|
|
|
USE_X11= Yes
|
|
|
|
|
2004-03-30 21:49:36 -05:00
|
|
|
MAKE_ENV+= CXXFLAGS="${CXXFLAGS}" CXX="${CXX}"
|
|
|
|
|
|
|
|
# XXX gcc3 compiling compact.cpp with -O2 gobbles 800MB
|
2006-07-08 00:14:30 -04:00
|
|
|
# ICE on sparc with >= -O1
|
2005-04-16 01:54:15 -04:00
|
|
|
.if ${MACHINE_ARCH} == "sparc64" || ${MACHINE_ARCH} == "sparc"
|
2004-03-30 21:49:36 -05:00
|
|
|
CXXFLAGS+= -O0
|
|
|
|
.endif
|
2003-03-30 09:05:25 -05:00
|
|
|
|
2006-07-08 00:14:30 -04:00
|
|
|
# prevent ICE
|
|
|
|
.if ${MACHINE_ARCH} == "arm"
|
|
|
|
CXXFLAGS+= -O1
|
|
|
|
.endif
|
|
|
|
|
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
|
|
|
|
${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>
|