1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-10-31 21:57:12 +00:00
freebsd-ports/emulators/snes9x/Makefile

52 lines
1.1 KiB
Makefile
Raw Normal View History

# New ports collection makefile for: snes9x
# Date created: 20 July 1997
# Whom: Yukihiro Nakai<Nakai@Mlab.t.u-tokyo.ac.jp>
#
1999-08-25 05:57:29 +00:00
# $FreeBSD$
#
2000-04-12 04:56:17 +00:00
PORTNAME= snes9x
2000-10-14 01:03:29 +00:00
PORTVERSION= 1.32
PORTREVISION= 2
CATEGORIES= emulators
MASTER_SITES= http://www.snes9x.com/zips/
2000-10-14 01:03:29 +00:00
DISTNAME= s9xs132
1999-12-28 04:27:57 +00:00
MAINTAINER= nakai@FreeBSD.org
.if ${MACHINE_ARCH} == i386
BUILD_DEPENDS= nasm:${PORTSDIR}/devel/nasm
.elif ${MACHINE_ARCH} == alpha
MAKEFILE= Makefile.alpha
FORBIDDEN= 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/libusb.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>