pkgsrc/emulators/xmame/Makefile
kristerw e5a12adf2e Update xmame to 0.37b15.1
Changes since 0.37b14.2 include:
- Everything from MAME 0.37b15 except for 'steadykey' support.
- Added an aRts sound server driver.  (Manuel Teira)
- Added another aRts sound server driver.  It needs reasonable aRts
  server settings, something like artsd -F 6 -S 4096 should be ok to get
  near accurate response time.  (Petr Smotek)
- ALSA updates: Added preliminary support for ALSA 0.9 API; split the
  0.5 and 0.9 API stuff into separate files.  (Shyouzou Sugitani)
- HotRod support is now enabled by either -hotrod or -hotrodse, just
  like the DOS/Win32 version.
- Added dummy flicker and vector orientation functions to fxvec.c so
  that xmame.xfx can link again.
2001-05-27 18:58:18 +00:00

75 lines
1.9 KiB
Makefile

# $NetBSD: Makefile,v 1.48 2001/05/27 18:58:18 kristerw Exp $
#
DISTNAME= xmame-0.37b15.1
CATEGORIES= emulators games x11
MASTER_SITES= http://x.mame.net/download/
EXTRACT_SUFX= .tar.bz2
MAINTAINER= kristerw@netbsd.org
HOMEPAGE= http://x.mame.net/
COMMENT= X11 emulator for old arcade and console machines
DEPENDS= unzip>=5.40:../../archivers/unzip
RESTRICTED= "selling is not allowed"
NO_SRC_ON_CDROM= ${RESTRICTED}
NO_BIN_ON_CDROM= ${RESTRICTED}
USE_X11BASE= YES
USE_XPM= YES
USE_GMAKE= YES
MAKE_ENV+= OPSYS=${OPSYS} ARCH=${ARCH} \
MAME_CPU=${MAME_CPU} \
INSTALL_MAN="${INSTALL_MAN}" \
INSTALL_PROGRAM="${INSTALL_PROGRAM}" \
NETBSD_JOYSTICK="${NETBSD_JOYSTICK}" \
NETBSD_DGA="${NETBSD_DGA}" \
DISPLAY_METHOD="${DISPLAY_METHOD}"
MAKEFILE= makefile.unix
DISPLAY_METHOD= x11
ROMPATH= ${PREFIX}/share/xmame
SPOOLDIR= /var/games/xmame
.if exists(/usr/include/machine/joystick.h)
NETBSD_JOYSTICK= yes
.else
NETBSD_JOYSTICK= no
.endif
.if exists(${X11BASE}/include/X11/extensions/xf86dga.h)
NETBSD_DGA= yes
.else
NETBSD_DGA= no
.endif
post-patch:
(cd ${WRKSRC}/doc && ${SED} 's|@ROMPATH@|${ROMPATH}|;s|@SPOOLDIR@|${SPOOLDIR}|' \
xmamerc.dist >xmamerc)
do-install:
(cd ${WRKSRC} && ${INSTALL_PROGRAM} xmame.${DISPLAY_METHOD} \
${PREFIX}/bin/xmame)
(cd ${WRKSRC}/doc && ${INSTALL_MAN} xmame.6 \
${PREFIX}/man/man6/xmame.6)
${INSTALL_DATA_DIR} ${ROMPATH}
(cd ${WRKSRC}/doc && ${INSTALL_DATA} xmamerc ${ROMPATH}/xmamerc)
@${ECHO} Remember to set ROMPATH to ${ROMPATH}.
.include "../../mk/bsd.pkg.mk"
# This has to come after bsd.pkg.mk to make sure we have FILESDIR
.if ${MACHINE_ARCH} == "m68k"
MAME_CPU= m68k
.elif ${MACHINE_ARCH} == "alpha"
MAME_CPU= alpha
.elif ${MACHINE_ARCH} == "i386"
MAME_CPU= i386
.else
# Rather than enumerating all CPU types, check machine/endian.h
ENDIAN!= ${SH} ${FILESDIR}/endian.sh
.if ${ENDIAN} == "LITTLE_ENDIAN"
MAME_CPU= risc_lsb
.else
MAME_CPU= risc
.endif
.endif