1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-12-28 05:29:48 +00:00
freebsd-ports/emulators/mame-devel/Makefile
Alejandro Pulver cc57bf725e - Update to version 0.130.
- Remove wrapper scripts.
- Pass maintainership to submitter.

PR:		ports/128557
Submitted by:	Emmanuel Vadot <elbarto@arcadebsd.org>
2009-03-13 03:14:10 +00:00

65 lines
1.4 KiB
Makefile

# New ports collection makefile for: sdlmame
# Date created: 2007-01-10
# Whom: alepulver
#
# $FreeBSD$
#
PORTNAME= sdlmame
PORTVERSION= 0.130
CATEGORIES= emulators
MASTER_SITES= ftp://ftp.arcadebsd.org/pub/FreeBSD/ports/distfiles/
DISTNAME= ${PORTNAME}${PORTVERSION:S/.//}
MAINTAINER= elbarto@ArcadeBSD.org
COMMENT= SDL port of the popular MAME (Multi Arcade Machine Emulator)
USE_ZIP= yes
USE_XORG= xext xrender xinerama xi
USE_GL= gl
USE_GNOME?= gtk20 gconf2
USE_GMAKE= yes
MAKE_ENV= PTHREAD_LIBS="${PTHREAD_LIBS}"
USE_SDL= sdl
MAKEFILE= makefile
ONLY_FOR_ARCH= i386 amd64
SUB_FILES= pkg-message
OPTIONS= DEBUG "Build sdlmame debugger" off
.include <bsd.port.pre.mk>
.if defined(WITH_DEBUG)
EXTRA_PATCHES+= ${FILESDIR}/sdl.mak.patch-debug
.else
USE_GNOME= #
EXTRA_PATCHES+= ${FILESDIR}/sdl.mak.patch
.endif
.if ${ARCH} == "amd64"
MAKE_ENV+= PTR64=1
.endif
post-patch:
@${REINPLACE_CMD} -e "s|ui.bdf|${DATADIR}/ui.bdf|g" ${WRKSRC}/src/emu/ui.c
do-install:
${INSTALL_PROGRAM} ${WRKSRC}/${PORTNAME} ${PREFIX}/bin/
.if !defined(NOPORTDOCS)
${MKDIR} ${DOCSDIR}
${INSTALL_DATA} ${WRKSRC}/*.txt ${DOCSDIR}
${CP} -R ${WRKSRC}/docs ${DOCSDIR}
.endif
${MKDIR} ${DATADIR}
${CP} ${WRKSRC}/ui.bdf ${DATADIR}/
${CP} -R ${WRKSRC}/keymaps ${DATADIR}/
${MKDIR} ${EXAMPLESDIR}
${CP} ${FILESDIR}/mame.ini ${EXAMPLESDIR}
post-install:
@${ECHO_CMD}
@${CAT} ${PKGMESSAGE}
@${ECHO_CMD}
.include <bsd.port.post.mk>