summaryrefslogtreecommitdiff
path: root/emulators/xmame/Makefile
blob: db63f92f1ef1dbd2666af15d29270d2505601dfb (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
# $NetBSD: Makefile,v 1.8 1998/06/22 12:29:06 agc Exp $
#

DISTNAME=		xmame-0.30.1_src
PKGNAME=		xmame-0.30.1
CATEGORIES=		emulators games x11
MASTER_SITES=		ftp://drake.dit.upm.es/pub/emulators/mame/
EXTRACT_SUFX=		.tgz

MAINTAINER=		mycroft@NetBSD.ORG

RUN_DEPENDS=		unzip:../../archivers/unzip
DEPENDS+=		xpm-3.4j:../../graphics/xpm

WRKSRC=			${WRKDIR}/xmame-0.30.1
USE_X11=		yes
USE_GMAKE=		yes
MAKE_ENV+=		OPSYS=${OPSYS} ARCH=${ARCH} DESTDIR=${DESTDIR} \
			INSTALL_MAN="${INSTALL_MAN}" \
			INSTALL_PROGRAM="${INSTALL_PROGRAM}"

post-patch:
	${CP} ${WRKSRC}/makefile.unix ${WRKSRC}/Makefile
	${SED} 's|XXX|${PREFIX}/lib/mame|' ${WRKSRC}/doc/xmamerc.dist >${WRKSRC}/doc/xmamerc
	${MV} ${WRKSRC}/src/unix/netbsd_i386.c ${WRKSRC}/src/unix/NetBSD.c

post-install:
	${MKDIR} ${PREFIX}/lib/mame
	${CP} ${WRKSRC}/doc/xmamerc ${PREFIX}/lib/mame/xmamerc
	@${ECHO} Remember to set MAMEDIR to ${PREFIX}/lib/mame.

.include "../../mk/bsd.pkg.mk"