1998-02-10 03:05:05 +00:00
|
|
|
# New ports collection makefile for: xmame
|
1999-09-04 20:22:36 +00:00
|
|
|
# Date created: 4 Sep 1999
|
1999-08-31 06:53:31 +00:00
|
|
|
# Whom: Donald Burr <dburr@FreeBSD.org>
|
1998-02-10 03:05:05 +00:00
|
|
|
#
|
1999-08-25 05:57:29 +00:00
|
|
|
# $FreeBSD$
|
1998-02-10 03:05:05 +00:00
|
|
|
#
|
|
|
|
|
2000-04-12 04:56:17 +00:00
|
|
|
PORTNAME= xmame
|
2001-02-18 22:23:26 +00:00
|
|
|
PORTVERSION= 0.37b11.2
|
1998-02-10 03:05:05 +00:00
|
|
|
CATEGORIES= emulators
|
2000-08-20 03:15:37 +00:00
|
|
|
MASTER_SITES= http://x.mame.net/download/ \
|
1999-09-04 20:22:36 +00:00
|
|
|
ftp://ftp.kaupp.cx/pub/xmame/ \
|
2000-08-20 03:15:37 +00:00
|
|
|
http://www.ozemail.com.au/~knebauer/xmame/files/
|
1998-02-10 03:05:05 +00:00
|
|
|
|
2001-01-16 17:33:20 +00:00
|
|
|
MAINTAINER= c9710216@studentmail.newcastle.edu.au
|
1998-02-10 03:05:05 +00:00
|
|
|
|
2001-01-21 02:40:41 +00:00
|
|
|
USE_BZIP2= yes
|
2000-08-20 03:15:37 +00:00
|
|
|
USE_XPM= yes
|
|
|
|
USE_X_PREFIX= yes
|
|
|
|
USE_GMAKE= yes
|
1998-02-10 03:05:05 +00:00
|
|
|
MAKEFILE= makefile.unix
|
|
|
|
|
|
|
|
MAN6= xmame.6
|
|
|
|
|
2001-01-21 02:40:41 +00:00
|
|
|
XMAMEDOCS= changes.mame \
|
|
|
|
changes.unix \
|
|
|
|
credits.txt \
|
2001-02-03 19:59:55 +00:00
|
|
|
gamelist.mame \
|
2001-01-21 02:40:41 +00:00
|
|
|
liesmich.unix \
|
|
|
|
multiplayer-readme.txt \
|
|
|
|
readme.mame \
|
|
|
|
xmame-doc-1.html \
|
|
|
|
xmame-doc-2.html \
|
|
|
|
xmame-doc-3.html \
|
|
|
|
xmame-doc-4.html \
|
|
|
|
xmame-doc-5.html \
|
|
|
|
xmame-doc-6.html \
|
|
|
|
xmame-doc-7.html \
|
|
|
|
xmame-doc.html \
|
|
|
|
xmame-doc.lyx \
|
|
|
|
xmame-doc.ps \
|
|
|
|
xmame-doc.sgml \
|
|
|
|
xmame-doc.txt
|
2000-08-20 03:15:37 +00:00
|
|
|
|
|
|
|
# the large number of sed regexes here is intended to make this port a whole
|
|
|
|
# lot easier to maintain - please don't convert them into a patch.
|
|
|
|
post-patch:
|
|
|
|
${PERL} -pi -e "s@%%PREFIX%%@${PREFIX}@g" ${WRKSRC}/doc/xmamerc.dist
|
|
|
|
@${CP} ${WRKSRC}/makefile.unix ${WRKSRC}/makefile.unix.sed
|
2000-12-11 02:16:02 +00:00
|
|
|
${SED} -e "s@= gcc@?= ${CC}@g" -e "s@= -O -Wall@?= ${CFLAGS}@g" \
|
2000-08-20 03:15:37 +00:00
|
|
|
-e "s@= cp@?= ${INSTALL} ${COPY}@g" -e "s@/usr/games@${PREFIX}/bin@g" \
|
|
|
|
-e "s@/usr/local/man/man6@${PREFIX}/man/man6@g" \
|
|
|
|
-e "s@/usr/games/lib/\$\(NAME\)@${PREFIX}/share/\$\(NAME\)@g" \
|
|
|
|
-e "s@/usr/X11R6@${X11BASE}@g" -e "s@ARCH = linux@ARCH = freebsd@g" \
|
|
|
|
${WRKSRC}/makefile.unix.sed > ${WRKSRC}/makefile.unix
|
|
|
|
|
|
|
|
post-install:
|
|
|
|
${MV} ${PREFIX}/bin/xmame.x11 ${PREFIX}/bin/xmame
|
|
|
|
${MKDIR} ${PREFIX}/share/xmame ${PREFIX}/share/xmame/hi ${PREFIX}/share/xmame/roms
|
|
|
|
${CHMOD} 777 ${PREFIX}/share/xmame/hi
|
|
|
|
${INSTALL_DATA} ${WRKSRC}/doc/xmamerc.dist ${PREFIX}/share/xmame/xmamerc
|
|
|
|
.if !defined(NOPORTDOCS)
|
|
|
|
${MKDIR} ${PREFIX}/share/doc/xmame
|
|
|
|
.for file in ${XMAMEDOCS}
|
|
|
|
${INSTALL_DATA} ${WRKSRC}/doc/${file} ${PREFIX}/share/doc/xmame
|
|
|
|
.endfor
|
|
|
|
.endif
|
|
|
|
|
1998-02-10 03:05:05 +00:00
|
|
|
.include <bsd.port.mk>
|