aboutsummaryrefslogtreecommitdiffstats
path: root/emulators/snes9x/Makefile
blob: d37509b44f5c953c0aaf9a692623507b998be81e (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
# 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
COMMENT=    Super Nintendo Entertainment System(SNES) Emulator

BROKEN=     "Does not compile"

.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>