pkgsrc/emulators/snes9x/Makefile

66 lines
1.8 KiB
Makefile
Raw Normal View History

Massive cleanup of buildlink3.mk and builtin.mk files in pkgsrc. Several changes are involved since they are all interrelated. These changes affect about 1000 files. The first major change is rewriting bsd.builtin.mk as well as all of the builtin.mk files to follow the new example in bsd.builtin.mk. The loop to include all of the builtin.mk files needed by the package is moved from bsd.builtin.mk and into bsd.buildlink3.mk. bsd.builtin.mk is now included by each of the individual builtin.mk files and provides some common logic for all of the builtin.mk files. Currently, this includes the computation for whether the native or pkgsrc version of the package is preferred. This causes USE_BUILTIN.* to be correctly set when one builtin.mk file includes another. The second major change is teach the builtin.mk files to consider files under ${LOCALBASE} to be from pkgsrc-controlled packages. Most of the builtin.mk files test for the presence of built-in software by checking for the existence of certain files, e.g. <pthread.h>, and we now assume that if that file is under ${LOCALBASE}, then it must be from pkgsrc. This modification is a nod toward LOCALBASE=/usr. The exceptions to this new check are the X11 distribution packages, which are handled specially as noted below. The third major change is providing builtin.mk and version.mk files for each of the X11 distribution packages in pkgsrc. The builtin.mk file can detect whether the native X11 distribution is the same as the one provided by pkgsrc, and the version.mk file computes the version of the X11 distribution package, whether it's built-in or not. The fourth major change is that the buildlink3.mk files for X11 packages that install parts which are part of X11 distribution packages, e.g. Xpm, Xcursor, etc., now use imake to query the X11 distribution for whether the software is already provided by the X11 distribution. This is more accurate than grepping for a symbol name in the imake config files. Using imake required sprinkling various builtin-imake.mk helper files into pkgsrc directories. These files are used as input to imake since imake can't use stdin for that purpose. The fifth major change is in how packages note that they use X11. Instead of setting USE_X11, package Makefiles should now include x11.buildlink3.mk instead. This causes the X11 package buildlink3 and builtin logic to be executed at the correct place for buildlink3.mk and builtin.mk files that previously set USE_X11, and fixes packages that relied on buildlink3.mk files to implicitly note that X11 is needed. Package buildlink3.mk should also include x11.buildlink3.mk when linking against the package libraries requires also linking against the X11 libraries. Where it was obvious, redundant inclusions of x11.buildlink3.mk have been removed.
2005-06-01 20:02:37 +02:00
# $NetBSD: Makefile,v 1.24 2005/06/01 18:02:48 jlam Exp $
Update snes9x to version 1.39. Changes since snes9x-1.37.3 include: - Fixed a timing problem caused by a speed up hack that was affecting Top Gear 3000. No the game still isn't playable, but I noticed the problem while investigating the DSP-4 chip used by the game. - Added support for Star Ocean and Street Fighter 2 Alpha decompressed graphics packs from dejap. Used a binary chop search rather than a linear search to locate correct decompressed graphics more quickly - should help emulation speed during later stages of the game. - Included the latest ZSNES DSP-1 code. Now Pilotwings, SD Racer and Suzuka 8 Hours are playable. Aim For The Ace, Super Air Diver 1 & 2 and Syutoko Battle 94 are also playable, but with bugs. Thanks to zsKnight, _demo_, et al for all their hard work. - Another Daffy Duck: Marvin Missions screen flicker problem worked around - writing to the IRQ enable register shouldn't clear any pending IRQs, but Sieken 3 seems to require this or else the game hangs. Special-cased Daffy Duck for now. - An NMI emulation bug was triggering a Panic Bomberman World game bug, crashing it. Basically, if a game enables NMIs after the normal trigger point, the NMI should not trigger if the game has already read the NMI clear register. - Panic Bomberman World requires SPC700 memory to be initialised to zero on reset otherwise the game hangs when a tune finishes and another one should start. - Added an offset hack for Strike Gunner to get the scrolling ground layer to line up correctly - another offset-per-tile bug hacked around for now. - Hmm. The broken cut-scenes in Deep Space 9 seem to indicate that I haven't got the emulated clock speed of the 65c816 CPU correct yet. And not by a little bit - a 9% too slow error. Hacked special timing for the game for now. - Fixed another crash bug in the interpolated mode 7 code - if no scaling was being used (either up or down) and screen repeat was enabled and the screen was flipped horizontally, the routine would crash Snes9x. Was causing Snes9x to crash during rock monster boss stage of Castlevania 4. - Oops. Got the initialisation of the default SNES screen width and height round the wrong way - could cause a X Windows System error message on the UNIX port after loading a ZSNES freeze file. The package has been changed to use the oss sound instead of the sun sound driver. This improves the sound quality.
2002-07-08 03:04:09 +02:00
DISTNAME= s9xs139
PKGNAME= snes9x-1.39
2003-05-05 18:21:10 +02:00
PKGREVISION= 3
CATEGORIES= emulators
MASTER_SITES= http://www.snes9x.com/zips/
EXTRACT_SUFX= .zip
MAINTAINER= jmcneill@NetBSD.org
HOMEPAGE= http://www.snes9x.com/
COMMENT= Super Nintendo Entertainment System (SNES) emulator
BUILD_DEPENDS+= nasm>=0.98:../../devel/nasm
WRKSRC= ${WRKDIR}/release
USE_TOOLS+= gmake
PTHREAD_OPTS= require
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.prefs.mk"
MAKE_ENV+= THREAD_SOUND=1
.if ( ${MACHINE_ARCH} == "i386" )
MAKE_ENV+= USING_I386=1
.if ( ${OBJECT_FMT} == "a.out" )
MAKE_ENV+= FILEFORMAT=aoutb
MAKE_ENV+= _ASM_UNDERBARS=1
.else
MAKE_ENV+= FILEFORMAT=elf
.endif
MAKE_ENV+= ZSNESFX=1
MAKE_ENV+= ZSNESC4=1
MAKE_ENV+= ASMCPU=1
.if !empty(USE_MMX:M[Yy][Ee][Ss])
MAKE_ENV+= ASMKREED=1
.endif
BUILD_DEFS+= USE_MMX
.endif
.if exists(${X11BASE}/lib/libXxf86dga.a)
MAKE_ENV+= NETBSD_USE_DGA=1
.endif
.if exists(/usr/include/usb.h) || exists(/usr/include/usbhid.h)
MAKE_ENV+= USBJOY=1
.if exists(/usr/include/usbhid.h)
MAKE_ENV+= USBHID_H=1
.endif
.endif
2004-04-11 18:58:18 +02:00
.include "../../mk/pthread.buildlink3.mk"
Massive cleanup of buildlink3.mk and builtin.mk files in pkgsrc. Several changes are involved since they are all interrelated. These changes affect about 1000 files. The first major change is rewriting bsd.builtin.mk as well as all of the builtin.mk files to follow the new example in bsd.builtin.mk. The loop to include all of the builtin.mk files needed by the package is moved from bsd.builtin.mk and into bsd.buildlink3.mk. bsd.builtin.mk is now included by each of the individual builtin.mk files and provides some common logic for all of the builtin.mk files. Currently, this includes the computation for whether the native or pkgsrc version of the package is preferred. This causes USE_BUILTIN.* to be correctly set when one builtin.mk file includes another. The second major change is teach the builtin.mk files to consider files under ${LOCALBASE} to be from pkgsrc-controlled packages. Most of the builtin.mk files test for the presence of built-in software by checking for the existence of certain files, e.g. <pthread.h>, and we now assume that if that file is under ${LOCALBASE}, then it must be from pkgsrc. This modification is a nod toward LOCALBASE=/usr. The exceptions to this new check are the X11 distribution packages, which are handled specially as noted below. The third major change is providing builtin.mk and version.mk files for each of the X11 distribution packages in pkgsrc. The builtin.mk file can detect whether the native X11 distribution is the same as the one provided by pkgsrc, and the version.mk file computes the version of the X11 distribution package, whether it's built-in or not. The fourth major change is that the buildlink3.mk files for X11 packages that install parts which are part of X11 distribution packages, e.g. Xpm, Xcursor, etc., now use imake to query the X11 distribution for whether the software is already provided by the X11 distribution. This is more accurate than grepping for a symbol name in the imake config files. Using imake required sprinkling various builtin-imake.mk helper files into pkgsrc directories. These files are used as input to imake since imake can't use stdin for that purpose. The fifth major change is in how packages note that they use X11. Instead of setting USE_X11, package Makefiles should now include x11.buildlink3.mk instead. This causes the X11 package buildlink3 and builtin logic to be executed at the correct place for buildlink3.mk and builtin.mk files that previously set USE_X11, and fixes packages that relied on buildlink3.mk files to implicitly note that X11 is needed. Package buildlink3.mk should also include x11.buildlink3.mk when linking against the package libraries requires also linking against the X11 libraries. Where it was obvious, redundant inclusions of x11.buildlink3.mk have been removed.
2005-06-01 20:02:37 +02:00
.include "../../mk/x11.buildlink3.mk"
.include "../../mk/bsd.pkg.mk"