openbsd-ports/games/scummvm/Makefile

71 lines
1.7 KiB
Makefile
Raw Normal View History

2006-07-08 00:14:30 -04:00
# $OpenBSD: Makefile,v 1.21 2006/07/08 04:14:30 jsg Exp $
2005-02-28 17:24:53 -05:00
.if ${MACHINE_ARCH} == "hppa"
BROKEN= "gcc bug"
.endif
2005-01-05 19:29:48 -05:00
COMMENT= "graphical adventure game interpreter"
2006-07-08 00:14:30 -04:00
DISTNAME= scummvm-0.9.0
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>
# GPL
PERMIT_PACKAGE_CDROM= Yes
PERMIT_PACKAGE_FTP= Yes
PERMIT_DISTFILES_CDROM= Yes
PERMIT_DISTFILES_FTP= Yes
WANTLIB= X11 Xext c m pthread stdc++ usbhid z
.if ${MACHINE_ARCH} == "i386"
BUILD_DEPENDS= ::devel/nasm
.endif
LIB_DEPENDS= SDL::devel/sdl \
mad.2::audio/libmad \
mpeg2::graphics/libmpeg2 \
2005-01-05 19:29:48 -05:00
FLAC.5::audio/flac
2004-03-30 21:49:36 -05:00
CONFIGURE_STYLE=simple
2005-01-05 19:29:48 -05:00
CONFIGURE_ARGS+=--disable-alsa --disable-debug
2004-03-30 21:49:36 -05:00
CONFIGURE_ENV+= CPPFLAGS="-I${LOCALBASE}/include" \
LDFLAGS="-L${LOCALBASE}/lib"
.if ${MACHINE_ARCH} == "arm"
CONFIGURE_ARGS+=--enable-tremor --disable-vorbis
LIB_DEPENDS+= vorbisidec.1::audio/tremor
.else
LIB_DEPENDS+= vorbis.0,vorbisfile.1::audio/libvorbis
WANTLIB+= ogg
.endif
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
2006-07-08 00:14:30 -04:00
# prevent ICE
.if ${MACHINE_ARCH} == "arm"
CXXFLAGS+= -O1
.endif
do-install:
${INSTALL_DATA_DIR} ${PREFIX}/share/doc/scummvm
${INSTALL_DATA_DIR} ${PREFIX}/share/pixmaps
2005-11-03 04:35:31 -05:00
${INSTALL_DATA} ${WRKSRC}/{NEWS,AUTHORS,README} ${PREFIX}/share/doc/scummvm
2006-07-08 00:14:30 -04:00
${INSTALL_DATA} ${WRKSRC}/icons/scummvm.xpm ${PREFIX}/share/pixmaps
${INSTALL_MAN} ${WRKSRC}/dists/scummvm.6 ${PREFIX}/man/man6
${INSTALL_PROGRAM} ${WRKSRC}/scummvm ${PREFIX}/bin
.include <bsd.port.mk>