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