Changes since 0.78.1 includes: - Everything from MAME 0.79 (http://x.mame.net/changes-mame.html) and MESS 0.79 (http://x.mame.net/changes-mess.html). - Updated the ALSA DSP module to use the ALSA 1.0 API. (Shyouzou Sugitani) - Paths now allow a literal "$" if it's preceded by "\". (Andre Majorel) - Fixed a segfault that occurred when "-debug" was used with a rotated game. - The debugger window should no longer be blank for 32bpp games. - Fixed a bug in fix-comments.c that was causing it to mangle src/drivers/vendetta.c. - When XINPUT is defined in the makefile but no XInput devices are configured, the mouse is treated as a trackball. (Gerd Sussner) - The Xv YUV code should now work on big-endian platforms. (Maciej J. Woloszyk) - The trigger for the ACT LABS TV light gun now works; reloading now requires only one offscreen shot instead of two. (Joe)
110 lines
2.9 KiB
Makefile
110 lines
2.9 KiB
Makefile
# $NetBSD: Makefile,v 1.106 2004/02/21 00:08:00 kristerw Exp $
|
|
#
|
|
|
|
DISTNAME= xmame-0.79.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 machines
|
|
|
|
RESTRICTED= "selling is not allowed"
|
|
NO_SRC_ON_CDROM= ${RESTRICTED}
|
|
NO_BIN_ON_CDROM= ${RESTRICTED}
|
|
|
|
USE_BUILDLINK2= YES
|
|
USE_PKGINSTALL= YES
|
|
USE_X11= YES
|
|
USE_GNU_TOOLS+= make
|
|
MAKEFILE= makefile.unix
|
|
TARGET= ${PKGBASE}
|
|
UNLIMIT_RESOURCES= datasize
|
|
|
|
.include "../../mk/bsd.prefs.mk"
|
|
|
|
ROMPATH= ${PREFIX}/share/${TARGET}
|
|
SPOOLDIR= /var/games/${TARGET}
|
|
|
|
MAKE_FLAGS+= TARGET="${TARGET:S/x//}"
|
|
MAKE_FLAGS+= LIBS="${LDFLAGS} ${LIBS}"
|
|
MAKE_FLAGS+= CFLAGS="${CFLAGS}"
|
|
MAKE_FLAGS+= X11INC= X11LIB=
|
|
MAKE_FLAGS+= SOUND_ESOUND=1
|
|
|
|
MAME_DISP_METHOD?= x11
|
|
|
|
# Determine which CPU-specific code to use.
|
|
.for MARCH in alpha m68k i386 ia64
|
|
MAME_CPU.${MARCH}?= ${MARCH}
|
|
.endfor
|
|
.if !defined(MAME_CPU.${MACHINE_ARCH})
|
|
. include "../../mk/endian.mk"
|
|
_MAME_CPU.big-endian= risc
|
|
_MAME_CPU.little-endian= risc_lsb
|
|
_MAME_CPU.unknown-endian= risc # assume unknown == big
|
|
MAME_CPU.${MACHINE_ARCH}?= ${_MAME_CPU.${MACHINE_ENDIAN}-endian}
|
|
.endif
|
|
|
|
# Determine which operating system defaults to use.
|
|
MAME_ARCH.NetBSD?= netbsd
|
|
MAME_ARCH.Linux?= linux
|
|
MAME_ARCH.SunOS?= solaris
|
|
.if !defined(MAME_ARCH.${OPSYS})
|
|
MAME_ARCH.${OPSYS}?= generic
|
|
.endif
|
|
|
|
MAKE_FLAGS+= DISPLAY_METHOD="${MAME_DISP_METHOD}"
|
|
MAKE_FLAGS+= MY_CPU="${MAME_CPU.${MACHINE_ARCH}}"
|
|
MAKE_FLAGS+= ARCH="${MAME_ARCH.${OPSYS}}"
|
|
|
|
.if exists(${X11BASE}/include/X11/extensions/xf86dga.h)
|
|
MAKE_FLAGS+= X11_DGA=1
|
|
.endif
|
|
.if exists(${X11BASE}/include/X11/extensions/Xv.h)
|
|
MAKE_FLAGS+= X11_XV=1
|
|
.endif
|
|
|
|
# If supported, add appropriate definitions to build joystick drivers.
|
|
.if exists(/usr/include/machine/joystick.h) || \
|
|
exists(/usr/include/linux/joystick.h)
|
|
MAKE_FLAGS+= JOY_I386=1
|
|
.endif
|
|
.if ${OPSYS} == "NetBSD"
|
|
. if exists(/usr/lib/libusb.a) || exists(/usr/lib/libusbhid.a)
|
|
MAKE_FLAGS+= JOY_USB=1
|
|
. endif
|
|
.endif
|
|
|
|
.include "../../mk/compiler.mk"
|
|
.if !empty(CC_VERSION:Mgcc-2*)
|
|
# Prevent memory explosion for gcc 2.95 and older.
|
|
MAKE_FLAGS+= LOW_MEM=1
|
|
.endif
|
|
|
|
OWN_DIRS= ${SPOOLDIR}
|
|
|
|
post-configure:
|
|
cd ${WRKSRC}/doc; \
|
|
${SED} -e "s|@ROMPATH@|${ROMPATH}|g" \
|
|
-e "s|@SPOOLDIR@|${SPOOLDIR}|g" \
|
|
${TARGET}rc.dist > ${TARGET}rc
|
|
.if !empty(MAKE_FLAGS:M*USB*)
|
|
${LN} -fs /usr/include/usb.h ${BUILDLINK_DIR}/include
|
|
for FILE in /usr/lib/libusb*; do \
|
|
${LN} -fs $$FILE ${BUILDLINK_DIR}/lib; \
|
|
done
|
|
.endif
|
|
|
|
do-install:
|
|
${INSTALL_PROGRAM} ${WRKSRC}/${TARGET}.${MAME_DISP_METHOD} \
|
|
${PREFIX}/bin/${TARGET}
|
|
${INSTALL_MAN} ${WRKSRC}/doc/${TARGET}.6 \
|
|
${PREFIX}/man/man6/${TARGET}.6
|
|
${INSTALL_DATA_DIR} ${ROMPATH}
|
|
${INSTALL_DATA} ${WRKSRC}/doc/${TARGET}rc ${ROMPATH}/${TARGET}rc
|
|
|
|
.include "../../audio/esound/buildlink2.mk"
|
|
|
|
.include "../../mk/bsd.pkg.mk"
|