1997-11-02 15:56:43 +01:00
|
|
|
# New ports collection makefile for: snes9x
|
1998-07-27 03:01:00 +02:00
|
|
|
# Date created: 20 July 1997
|
1997-11-02 15:56:43 +01:00
|
|
|
# Whom: Yukihiro Nakai<Nakai@Mlab.t.u-tokyo.ac.jp>
|
|
|
|
#
|
1999-08-25 07:57:29 +02:00
|
|
|
# $FreeBSD$
|
1997-11-02 15:56:43 +01:00
|
|
|
#
|
|
|
|
|
2000-04-12 06:56:17 +02:00
|
|
|
PORTNAME= snes9x
|
2001-01-13 21:28:00 +01:00
|
|
|
PORTVERSION= 1.34a
|
2001-01-24 02:16:14 +01:00
|
|
|
PORTREVISION= 2
|
1997-11-02 15:56:43 +01:00
|
|
|
CATEGORIES= emulators
|
1998-07-27 03:01:00 +02:00
|
|
|
MASTER_SITES= http://www.snes9x.com/zips/
|
2001-01-13 21:28:00 +01:00
|
|
|
DISTNAME= s9xs134a
|
1997-11-02 15:56:43 +01:00
|
|
|
|
1999-12-28 05:27:57 +01:00
|
|
|
MAINTAINER= nakai@FreeBSD.org
|
1997-11-02 15:56:43 +01:00
|
|
|
|
1999-09-20 02:04:34 +02:00
|
|
|
.if ${MACHINE_ARCH} == i386
|
|
|
|
BUILD_DEPENDS= nasm:${PORTSDIR}/devel/nasm
|
|
|
|
.elif ${MACHINE_ARCH} == alpha
|
|
|
|
MAKEFILE= Makefile.alpha
|
2000-03-12 08:03:04 +01:00
|
|
|
FORBIDDEN= currently does not work on alpha
|
1999-09-20 02:04:34 +02:00
|
|
|
.endif
|
1999-01-07 03:31:51 +01:00
|
|
|
|
1999-01-12 08:07:21 +01:00
|
|
|
USE_GMAKE= YES
|
|
|
|
USE_X_PREFIX= YES
|
1999-09-20 03:56:08 +02:00
|
|
|
MAKE_ENV= CC="${CC}" CXX="${CXX}" CFLAGS="${CFLAGS}" \
|
|
|
|
CXXFLAGS="${CXXFLAGS}"
|
1999-09-20 02:04:34 +02:00
|
|
|
USE_ZIP= YES
|
1999-01-12 08:07:21 +01:00
|
|
|
WRKSRC= ${WRKDIR}/release
|
1997-11-02 15:56:43 +01:00
|
|
|
|
2000-11-19 08:10:40 +01:00
|
|
|
.if exists(/usr/lib/libusb.a)
|
|
|
|
MAKE_ENV+= USB_JOYSTICK_SUPPORT=yes
|
|
|
|
.endif
|
|
|
|
|
1999-09-20 02:04:34 +02:00
|
|
|
ONLY_FOR_ARCHS= i386 alpha
|
|
|
|
|
2000-03-09 06:16:30 +01:00
|
|
|
.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
|
|
|
|
|
1997-11-02 15:56:43 +01:00
|
|
|
do-install:
|
|
|
|
${INSTALL_PROGRAM} ${WRKSRC}/snes9x ${PREFIX}/bin
|
|
|
|
|
|
|
|
.include <bsd.port.mk>
|