freebsd-ports/emulators/snes9x/Makefile
Sean Chittenden b8e1e7ef86 Correct ports that were abusing the FORBIDDEN variable and replace with
either IGNORE or BROKEN.

Since there seems to be some confusion, for the record:

BROKEN		is reserved for ports that don't work.  This will prevent
		users from installing the port, but please note that
		ports marked as BROKEN will still be built by bento
IGNORE		is reserved for ports that should not be built for one
		reason or another (including bento).  Users and bento
		will not build ports marked as IGNORE.
FORBIDDEN	is reserved for security breakages only!!!  Only mark a
		port as FORBIDDEN if there is a security issue with the
		port at the time.

Reviewed by:	kris (portmgr)
2003-02-07 02:44:21 +00:00

50 lines
1.1 KiB
Makefile

# New ports collection makefile for: snes9x
# Date created: 20 July 1997
# Whom: Yukihiro Nakai<Nakai@Mlab.t.u-tokyo.ac.jp>
#
# $FreeBSD$
#
PORTNAME= snes9x
PORTVERSION= 1.37c
CATEGORIES= emulators
MASTER_SITES= http://www.snes9x.com/zips/
DISTNAME= s9xs137c
MAINTAINER= green@FreeBSD.org
.if ${MACHINE_ARCH} == i386
BUILD_DEPENDS= nasm:${PORTSDIR}/devel/nasm
.elif ${MACHINE_ARCH} == alpha
MAKEFILE= Makefile.alpha
BROKEN= currently does not work on alpha
.endif
USE_GMAKE= YES
USE_X_PREFIX= YES
MAKE_ENV= CC="${CC}" CXX="${CXX}" CFLAGS="${CFLAGS}" \
CXXFLAGS="${CXXFLAGS}"
USE_ZIP= YES
WRKSRC= ${WRKDIR}/release
.if exists(/usr/lib/libusbhid.a)
MAKE_ENV+= USB_JOYSTICK_SUPPORT=yes
.endif
ONLY_FOR_ARCHS= i386 alpha
.if ${MACHINE_ARCH} == alpha
post-patch:
@${SED} -e '/^ZSNESFX/d' \
-e '/^ASMCPU/d' \
-e '/^OPTIMISE/s/-mpentium //' \
-e '/^-Ii386/d' \
-e '/offsets >/s:i386/::' \
< ${WRKSRC}/Makefile \
> ${WRKSRC}/Makefile.alpha
.endif
do-install:
${INSTALL_PROGRAM} ${WRKSRC}/snes9x ${PREFIX}/bin
.include <bsd.port.mk>