blob: 712cb75acd2068cd24022b492f79a91c914e67f3 (
plain)
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
|
# $NetBSD: Makefile,v 1.4 2000/11/16 19:14:12 wiz Exp $
DISTNAME= s9xs132
PKGNAME= snes9x-1.32
WRKSRC= ${WRKDIR}/release
CATEGORIES= emulators
MASTER_SITES= http://www.snes9x.com/zips/
EXTRACT_SUFX= .zip
MAINTAINER= jmcneill@invisible.yi.org
HOMEPAGE= http://www.snes9x.com/
BUILD_DEPENDS+= nasm:../../devel/nasm
USE_X11= yes
USE_GMAKE= yes
do-install:
${INSTALL_PROGRAM} ${WRKSRC}/snes9x ${PREFIX}/bin
${INSTALL_PROGRAM} ${WRKSRC}/offsets ${PREFIX}/bin
${INSTALL_DATA_DIR} ${PREFIX}/share/doc/snes9x
${INSTALL_MAN} ${WRKSRC}/CHANGES.TXT ${PREFIX}/share/doc/snes9x
${INSTALL_MAN} ${WRKSRC}/COPYRIGHT.TXT ${PREFIX}/share/doc/snes9x
${INSTALL_MAN} ${WRKSRC}/HARDWARE.TXT ${PREFIX}/share/doc/snes9x
${INSTALL_MAN} ${WRKSRC}/HOW2PORT.TXT ${PREFIX}/share/doc/snes9x
${INSTALL_MAN} ${WRKSRC}/PROBLEMS.TXT ${PREFIX}/share/doc/snes9x
${INSTALL_MAN} ${WRKSRC}/README.TXT ${PREFIX}/share/doc/snes9x
${INSTALL_MAN} ${WRKSRC}/TODO.TXT ${PREFIX}/share/doc/snes9x
.include "../../mk/bsd.pkg.mk"
.if ( ${MACHINE_ARCH} == "i386" )
.if ( ${OBJECT_FMT} == "a.out" )
MAKE_ENV+= FILEFORMAT=aoutb
MAKE_ENV+= _ASM_UNDERBARS=1
.else
MAKE_ENV+= FILEFORMAT=elf
# use assembler part only for ELF, since it doesn't link on a.out
MAKE_ENV+= ZSNESFX=1
MAKE_ENV+= ASMCPU=1
.endif
.endif
.if exists(${X11BASE}/lib/libXxf86dga.a)
MAKE_ENV+= NETBSD_USE_DGA=1
.endif
|