1998-02-10 04:05:05 +01:00
|
|
|
# New ports collection makefile for: xmame
|
1999-09-04 22:22:36 +02:00
|
|
|
# Date created: 4 Sep 1999
|
1999-08-31 08:53:31 +02:00
|
|
|
# Whom: Donald Burr <dburr@FreeBSD.org>
|
1998-02-10 04:05:05 +01:00
|
|
|
#
|
1999-08-25 07:57:29 +02:00
|
|
|
# $FreeBSD$
|
1998-02-10 04:05:05 +01:00
|
|
|
#
|
|
|
|
|
2001-03-27 12:38:45 +02:00
|
|
|
PORTNAME?= xmame
|
2005-12-03 22:06:42 +01:00
|
|
|
PORTVERSION?= 0.102
|
1998-02-10 04:05:05 +01:00
|
|
|
CATEGORIES= emulators
|
2002-11-15 19:05:41 +01:00
|
|
|
MASTER_SITES= http://x.mame.net/download/:xmame \
|
2005-12-07 10:38:04 +01:00
|
|
|
http://www.energyhq.es.eu.org/files/:xmame \
|
2005-12-06 18:50:32 +01:00
|
|
|
http://www.pkix.net/mirror/x.mame.net/:xmame \
|
2005-05-22 17:26:20 +02:00
|
|
|
http://www.arcade-history.com/download/:history \
|
2005-11-15 00:50:22 +01:00
|
|
|
http://www.energyhq.es.eu.org/files/:history \
|
2005-05-22 17:26:20 +02:00
|
|
|
http://www.mameworld.net/highscore/:highscore \
|
|
|
|
http://cheat.retrogames.com/:cheat
|
2003-02-23 23:59:45 +01:00
|
|
|
DISTNAME= xmame-${XMAMEVERSION:S/.r/-rc/}
|
2002-11-15 19:05:41 +01:00
|
|
|
DISTFILES= ${DISTNAME}${EXTRACT_SUFX}:xmame
|
2001-03-27 12:38:45 +02:00
|
|
|
DIST_SUBDIR= xmame
|
1998-02-10 04:05:05 +01:00
|
|
|
|
2005-12-03 22:06:42 +01:00
|
|
|
MAINTAINER?= mmendez@energyhq.be
|
2003-02-21 13:06:51 +01:00
|
|
|
COMMENT?= UNIX/X11 port of the Multi Arcade Machine Emulator (MAME)
|
1998-02-10 04:05:05 +01:00
|
|
|
|
2005-03-07 14:28:21 +01:00
|
|
|
LIB_DEPENDS= expat.5:${PORTSDIR}/textproc/expat2
|
|
|
|
|
2005-11-04 01:30:51 +01:00
|
|
|
#BROKEN= Unfetchable
|
2005-10-28 08:38:35 +02:00
|
|
|
|
2001-11-22 13:42:16 +01:00
|
|
|
USE_BZIP2= yes
|
2003-11-15 21:20:56 +01:00
|
|
|
USE_PERL5= yes
|
2000-08-20 05:15:37 +02:00
|
|
|
USE_GMAKE= yes
|
2005-03-07 14:28:21 +01:00
|
|
|
MAKE_ARGS+= ARCH=freebsd
|
2003-04-10 11:22:33 +02:00
|
|
|
USE_REINPLACE= yes
|
2005-01-12 08:18:27 +01:00
|
|
|
WANT_SDL= yes
|
|
|
|
WANT_GNOME= yes
|
|
|
|
|
2005-02-12 18:40:31 +01:00
|
|
|
# Broken on ia-64
|
|
|
|
NOT_FOR_ARCHS= ia64
|
|
|
|
|
2005-09-27 20:43:50 +02:00
|
|
|
# Are we building MAME or MESS? (also set by slave ports)
|
2005-01-12 08:18:27 +01:00
|
|
|
MAMEMESS?= mame
|
1998-02-10 04:05:05 +01:00
|
|
|
|
2001-03-27 12:38:45 +02:00
|
|
|
MAN6= x${MAMEMESS}.6
|
1998-02-10 04:05:05 +01:00
|
|
|
|
2005-01-12 08:18:27 +01:00
|
|
|
OPTIONS= SDL "Use the SDL driver" on \
|
|
|
|
OPENGL "Use the OpenGL driver" off \
|
|
|
|
X11 "Use the X11 driver" off \
|
|
|
|
SVGALIB "Use the Svgalib driver" off \
|
|
|
|
ASM68K "Enable the speedier but buggy 68k emulator" off \
|
|
|
|
OPTIMIZATION "Enable maximum C compiler optimization" off \
|
|
|
|
ESOUND "Enable esound support" off \
|
|
|
|
DATFILES "Installs additional information files" on \
|
|
|
|
NETWORK "Include support for network play (**BROKEN**)" off
|
2001-11-22 13:42:16 +01:00
|
|
|
|
2005-01-12 08:18:27 +01:00
|
|
|
XMAMEVERSION?= ${PORTVERSION}
|
2001-03-27 12:38:45 +02:00
|
|
|
|
2005-09-27 20:43:50 +02:00
|
|
|
DATADIR= ${PREFIX}/share/x${MAMEMESS}
|
|
|
|
DOCSDIR= ${PREFIX}/share/doc/x${MAMEMESS}
|
2001-03-27 12:38:45 +02:00
|
|
|
PLIST_SUB+= MAMEMESS="x${MAMEMESS}" SPOOLGAMES="${SPOOLGAMES}"
|
|
|
|
.if ${MAMEMESS} == "mame"
|
2005-09-27 20:43:50 +02:00
|
|
|
PLIST_SUB+= MAMEONLY="" MESSONLY="@comment "
|
2001-03-27 12:38:45 +02:00
|
|
|
.else
|
|
|
|
.if ${MAMEMESS} == "mess"
|
2005-09-27 20:43:50 +02:00
|
|
|
PLIST_SUB+= MAMEONLY="@comment " MESSONLY=""
|
2001-03-27 12:38:45 +02:00
|
|
|
.else
|
2005-09-27 20:43:50 +02:00
|
|
|
.error MAMEMESS must be set to one of "mame" or "mess".
|
2001-03-27 12:38:45 +02:00
|
|
|
.endif
|
|
|
|
.endif
|
|
|
|
|
|
|
|
# Where do we want game spool data?
|
|
|
|
SPOOLGAMES?= /var/games
|
|
|
|
|
|
|
|
# Docs list
|
|
|
|
GENERALDOCS= changes.unix \
|
2002-11-15 19:05:41 +01:00
|
|
|
dga2.txt \
|
2003-02-23 23:59:45 +01:00
|
|
|
img/xmame.jpg \
|
2001-01-21 03:40:41 +01:00
|
|
|
liesmich.unix \
|
|
|
|
multiplayer-readme.txt \
|
|
|
|
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 \
|
2002-11-15 19:05:41 +01:00
|
|
|
xmame-doc.lyx \
|
|
|
|
xmame-doc.txt \
|
2002-01-05 11:11:48 +01:00
|
|
|
xmame-gdoc-1.html \
|
|
|
|
xmame-gdoc-2.html \
|
|
|
|
xmame-gdoc-3.html \
|
|
|
|
xmame-gdoc-4.html \
|
|
|
|
xmame-gdoc-5.html \
|
|
|
|
xmame-gdoc-6.html \
|
|
|
|
xmame-gdoc-7.html \
|
2002-11-15 19:05:41 +01:00
|
|
|
xmame-gdoc-8.html \
|
2002-01-05 11:11:48 +01:00
|
|
|
xmame-gdoc.html \
|
2002-11-15 19:05:41 +01:00
|
|
|
xmame.css
|
2003-10-14 14:16:59 +02:00
|
|
|
XMAMEDOCS=
|
2004-02-01 02:13:46 +01:00
|
|
|
XMESSDOCS= mess/credits.htm \
|
2003-12-20 00:25:11 +01:00
|
|
|
mess/faq.htm \
|
|
|
|
mess/imgtool.txt \
|
|
|
|
mess/messnew.txt \
|
|
|
|
mess/messroms.txt \
|
|
|
|
mess/sysinfo.dat \
|
2004-02-01 02:13:46 +01:00
|
|
|
|
2001-04-14 14:16:58 +02:00
|
|
|
GLDOCS= changes.opengl
|
2001-03-27 12:38:45 +02:00
|
|
|
.if ${MAMEMESS} == "mame"
|
|
|
|
ALLDOCS= ${GENERALDOCS} ${XMAMEDOCS}
|
|
|
|
.else
|
|
|
|
ALLDOCS= ${GENERALDOCS} ${XMESSDOCS}
|
|
|
|
.endif
|
|
|
|
|
2002-03-23 12:03:36 +01:00
|
|
|
#
|
2003-02-23 23:59:45 +01:00
|
|
|
# Various options are processed here.
|
2002-03-23 12:03:36 +01:00
|
|
|
#
|
2005-01-12 08:18:27 +01:00
|
|
|
.include <bsd.port.pre.mk>
|
2002-03-23 12:03:36 +01:00
|
|
|
|
2005-11-04 01:30:51 +01:00
|
|
|
#.if ${OSVERSION} < 500000
|
|
|
|
#BROKEN= "Doesn't build on FreeBSD < 5.x"
|
|
|
|
#.elif (${OSVERSION} < 600000 && ${MAMEMESS} == "mess")
|
|
|
|
#BROKEN= "Doesn't build on FreeBSD < 6.x"
|
|
|
|
#.endif
|
2005-09-27 20:43:50 +02:00
|
|
|
|
2002-03-23 12:03:36 +01:00
|
|
|
# Option WITH_DATFILES
|
2001-03-27 12:38:45 +02:00
|
|
|
.if ${MAMEMESS} == "mame"
|
2002-03-23 12:03:36 +01:00
|
|
|
|
2005-01-12 08:18:27 +01:00
|
|
|
.if defined(WITH_DATFILES)
|
2001-03-27 12:38:45 +02:00
|
|
|
PLIST_SUB+= DATFILES=""
|
2000-08-20 05:15:37 +02:00
|
|
|
|
2003-05-04 21:06:49 +02:00
|
|
|
EXTRACT_DEPENDS= unzip:${PORTSDIR}/archivers/unzip
|
2001-03-27 12:38:45 +02:00
|
|
|
|
2005-09-27 20:43:50 +02:00
|
|
|
HIVER= 0100
|
2005-12-03 22:06:42 +01:00
|
|
|
HISTVER= 1_05c
|
2001-03-27 12:38:45 +02:00
|
|
|
|
2005-06-26 04:43:39 +02:00
|
|
|
DISTFILES+= uhsdat${HIVER}.zip:highscore \
|
2005-11-04 01:30:51 +01:00
|
|
|
history${HISTVER}.zip:history \
|
2005-05-22 17:26:20 +02:00
|
|
|
cheat.zip:cheat
|
2001-03-27 12:38:45 +02:00
|
|
|
EXTRACT_ONLY= ${DISTNAME}${EXTRACT_SUFX}
|
|
|
|
|
|
|
|
post-extract:
|
|
|
|
cd ${WRKDIR} && \
|
2005-06-26 04:43:39 +02:00
|
|
|
${UNZIP_CMD} -q ${DISTDIR}/${DIST_SUBDIR}/uhsdat${HIVER}.zip \
|
2002-11-15 19:05:41 +01:00
|
|
|
hiscore.dat
|
2001-03-27 12:38:45 +02:00
|
|
|
cd ${WRKDIR} && \
|
2005-11-04 01:30:51 +01:00
|
|
|
${UNZIP_CMD} -q ${DISTDIR}/${DIST_SUBDIR}/history${HISTVER}.zip \
|
2004-10-12 00:37:23 +02:00
|
|
|
history.dat
|
2001-03-27 12:38:45 +02:00
|
|
|
cd ${WRKDIR} && \
|
2004-10-12 00:37:23 +02:00
|
|
|
${UNZIP_CMD} -q ${DISTDIR}/${DIST_SUBDIR}/cheat.zip cheat.dat
|
2001-03-27 12:38:45 +02:00
|
|
|
.else
|
|
|
|
PLIST_SUB+= DATFILES="@comment "
|
|
|
|
.endif
|
2005-05-22 17:26:20 +02:00
|
|
|
.else # xmess
|
|
|
|
PLIST_SUB+= DATFILES="@comment "
|
2001-03-27 12:38:45 +02:00
|
|
|
.endif
|
2002-03-23 12:03:36 +01:00
|
|
|
|
2005-01-12 08:18:27 +01:00
|
|
|
.if defined(WITH_ASM68K)
|
2001-03-27 12:38:45 +02:00
|
|
|
ASM_COMMENT=
|
|
|
|
.else
|
2003-10-14 14:16:59 +02:00
|
|
|
ASM_COMMENT=\#
|
2001-03-27 12:38:45 +02:00
|
|
|
.endif
|
|
|
|
|
2002-03-23 12:03:36 +01:00
|
|
|
# Option WITH_OPTIMIZATION
|
|
|
|
.if defined(WITH_OPTIMIZATION)
|
2001-04-06 09:15:16 +02:00
|
|
|
CFLAGS+= -O3 -Wall -Wno-unused -funroll-loops \
|
2001-03-27 12:38:45 +02:00
|
|
|
-fstrength-reduce -fomit-frame-pointer -ffast-math \
|
2003-10-28 18:16:27 +01:00
|
|
|
-falign-functions=4 -falign-jumps=4 -falign-loops=4
|
2001-08-03 15:21:21 +02:00
|
|
|
.endif
|
2001-03-27 12:38:45 +02:00
|
|
|
|
2004-01-12 13:14:49 +01:00
|
|
|
SDLSOUNDCOMMENT= \#
|
2003-02-23 23:59:45 +01:00
|
|
|
|
2002-03-23 12:03:36 +01:00
|
|
|
# Option DISPLAY_TARGET
|
2005-01-16 12:19:33 +01:00
|
|
|
.if defined(WITH_SDL) || !defined(WITHOUT_SDL)
|
2005-01-12 08:18:27 +01:00
|
|
|
USE_SDL= sdl
|
|
|
|
DISPLAY_TARGET= sdl
|
|
|
|
DISPLAY_METHOD= SDL
|
|
|
|
SDLSOUNDCOMMENT=
|
2002-03-23 12:03:36 +01:00
|
|
|
.endif
|
|
|
|
|
2005-01-12 08:18:27 +01:00
|
|
|
.if defined(WITH_OPENGL)
|
|
|
|
USE_XLIB= yes
|
|
|
|
DISPLAY_TARGET= opengl
|
2004-11-24 18:45:31 +01:00
|
|
|
CFLAGS+= ${PTHREAD_CFLAGS} -I${X11BASE}/include
|
2004-01-12 13:14:49 +01:00
|
|
|
USE_GL= yes
|
2004-11-24 18:45:31 +01:00
|
|
|
DISPLAY_METHOD= x11
|
2001-04-03 07:57:04 +02:00
|
|
|
PLIST_SUB+= OPENGL=""
|
2001-04-14 14:16:58 +02:00
|
|
|
ALL_DOCS+= ${GLDOCS}
|
2001-04-03 07:57:04 +02:00
|
|
|
.else
|
|
|
|
PLIST_SUB+= OPENGL="@comment "
|
|
|
|
.endif
|
2002-03-23 12:03:36 +01:00
|
|
|
|
2005-01-12 08:18:27 +01:00
|
|
|
.if defined(WITH_SVGALIB)
|
|
|
|
DISPLAY_TARGET= svgalib
|
|
|
|
LIB_DEPENDS+= vga.1:${PORTSDIR}/graphics/svgalib
|
2002-03-23 12:03:36 +01:00
|
|
|
USE_XPM= yes
|
2005-01-12 08:18:27 +01:00
|
|
|
DISPLAY_METHOD= svgalib
|
2001-11-22 13:42:16 +01:00
|
|
|
.endif
|
2001-03-27 12:38:45 +02:00
|
|
|
|
2005-01-12 08:18:27 +01:00
|
|
|
.if defined(WITH_X11)
|
|
|
|
DISPLAY_METHOD= x11
|
|
|
|
USE_XLIB= yes
|
2001-04-24 00:12:19 +02:00
|
|
|
.endif
|
|
|
|
|
2005-01-12 08:18:27 +01:00
|
|
|
# Option WITH_ESOUND
|
|
|
|
.if defined(WITH_ESOUND)
|
2001-09-01 21:18:06 +02:00
|
|
|
ESOUNDCOMMENT=
|
2002-08-30 15:41:06 +02:00
|
|
|
USE_GNOME= esound
|
2001-09-01 21:18:06 +02:00
|
|
|
.else
|
2003-10-14 14:16:59 +02:00
|
|
|
ESOUNDCOMMENT=\#
|
2001-09-01 21:18:06 +02:00
|
|
|
.endif
|
|
|
|
|
2004-10-12 00:37:23 +02:00
|
|
|
# XXX Network support is *broken* in 0.85+, leave commented out for now
|
2002-03-23 12:03:36 +01:00
|
|
|
# Option WITH_NETWORK
|
2005-01-12 08:18:27 +01:00
|
|
|
.if defined(WITH_NETWORK)
|
2004-11-06 03:41:44 +01:00
|
|
|
BROKEN= "Networking support is currently broken"
|
2002-01-10 04:40:43 +01:00
|
|
|
NETWORK=
|
|
|
|
.else
|
2003-10-14 14:16:59 +02:00
|
|
|
NETWORK=\#
|
2002-01-10 04:40:43 +01:00
|
|
|
.endif
|
|
|
|
|
2001-03-27 12:38:45 +02:00
|
|
|
# The large number of sed regexes here is intended to make this port a whole
|
2000-08-20 05:15:37 +02:00
|
|
|
# lot easier to maintain - please don't convert them into a patch.
|
2001-03-27 12:38:45 +02:00
|
|
|
do-configure:
|
2003-04-10 11:22:33 +02:00
|
|
|
${REINPLACE_CMD} -e "s@= gcc@?= ${CC}@g" \
|
2003-02-23 23:59:45 +01:00
|
|
|
-e "s@^TARGET.*@TARGET = ${MAMEMESS}@g" \
|
2004-05-02 09:27:08 +02:00
|
|
|
-e "s@# XMAME_NET@${NETWORK}XMAME_NET@g" \
|
2003-11-05 23:12:37 +01:00
|
|
|
-e "s@# X86_ASM_68000 =@${ASM_COMMENT}X86_ASM_68000 =@g" \
|
2003-02-23 23:59:45 +01:00
|
|
|
-e "s@^CFLAGS.*@CFLAGS ?= ${CFLAGS}@g" \
|
|
|
|
-e "s@^INSTALL_GROUP.*@INSTALL_GROUP = wheel@g" \
|
2002-10-31 23:54:17 +01:00
|
|
|
-e "s@# LIBS.*@LIBS = -L${LOCALBASE}/lib@g" \
|
2005-01-12 08:18:27 +01:00
|
|
|
-e "s@# INCLUDES.*@INCLUDES = -I${LOCALBASE}/include@g" \
|
2003-02-23 23:59:45 +01:00
|
|
|
-e "s@^PREFIX.*@PREFIX = ${PREFIX}@g" \
|
|
|
|
-e "s@/share/man@/man@g" \
|
|
|
|
-e "s@^MY_CPU.*@MY_CPU = ${ARCH}@g" \
|
|
|
|
-e "s@^ARCH.*@ARCH = freebsd@g" \
|
2002-10-31 23:54:17 +01:00
|
|
|
-e "s@# JOY_USB@JOY_USB@g" \
|
2003-02-23 23:59:45 +01:00
|
|
|
-e "s@# SOUND_ESOUND@${ESOUNDCOMMENT}SOUND_ESOUND@g" \
|
|
|
|
-e "s@# SOUND_SDL@${SDLSOUNDCOMMENT}SOUND_SDL@g" \
|
|
|
|
-e "s@^DISPLAY_METHOD.*@DISPLAY_METHOD = ${DISPLAY_METHOD}@g" \
|
|
|
|
-e "s@# X11_DGA@X11_DGA@g" \
|
|
|
|
-e "s@/usr/X11R6@${X11BASE}@g" \
|
|
|
|
-e "s@^SDL_CONFIG.*@SDL_CONFIG = ${SDL_CONFIG}@g" \
|
2003-10-25 03:10:30 +02:00
|
|
|
-e "s@^GLLIBS += .*@GLLIBS += ${PTHREAD_LIBS}@g" \
|
2003-04-10 11:22:33 +02:00
|
|
|
${WRKSRC}/makefile.unix
|
2005-01-16 12:19:33 +01:00
|
|
|
.if defined(WITH_SDL) || !defined(WITHOUT_SDL)
|
2004-10-12 00:37:23 +02:00
|
|
|
${REINPLACE_CMD} -e "s@# JOY_SDL = 1@JOY_SDL = 1@g" ${WRKSRC}/makefile.unix
|
|
|
|
.endif
|
2001-03-27 12:38:45 +02:00
|
|
|
|
2005-01-12 08:18:27 +01:00
|
|
|
.if defined(WITH_OPENGL)
|
2004-11-24 18:45:31 +01:00
|
|
|
${REINPLACE_CMD} -e "s@# X11_OPENGL = 1@X11_OPENGL = 1@g" ${WRKSRC}/makefile.unix
|
|
|
|
.endif
|
|
|
|
|
2004-02-01 02:13:46 +01:00
|
|
|
# png.h conflicts with libpng.
|
2004-10-12 00:37:23 +02:00
|
|
|
.for f in mess/artworkx.c mess/artworkx.h src/artwork.c \
|
2004-02-01 02:13:46 +01:00
|
|
|
src/common.c src/png.c src/unix/video-drivers/glexport.c
|
|
|
|
|
2004-10-12 00:37:23 +02:00
|
|
|
${REINPLACE_CMD} -e "s@\"png.h\"@\"mame_png.h\"@g" ${WRKSRC}/${f}
|
2004-02-01 02:13:46 +01:00
|
|
|
|
|
|
|
.endfor
|
|
|
|
${LN} -s ${WRKSRC}/src/png.h ${WRKSRC}/src/mame_png.h
|
|
|
|
|
2001-03-27 12:38:45 +02:00
|
|
|
post-build:
|
|
|
|
cd ${WRKSRC} && ${SETENV} ${MAKE_ENV} SDL_VIDEODRIVER=aalib \
|
2001-04-14 14:16:58 +02:00
|
|
|
${GMAKE} doc/x${MAMEMESS}.6
|
2001-03-27 12:38:45 +02:00
|
|
|
cd ${WRKSRC} && ${SETENV} ${MAKE_ENV} SDL_VIDEODRIVER=aalib \
|
2001-04-14 14:16:58 +02:00
|
|
|
${GMAKE} doc/x${MAMEMESS}rc.dist
|
2001-03-27 12:38:45 +02:00
|
|
|
@${CP} ${WRKSRC}/doc/x${MAMEMESS}rc.dist \
|
|
|
|
${WRKSRC}/doc/x${MAMEMESS}rc.dist.sed
|
|
|
|
${SED} -e "s@^spooldir.*\$$@spooldir ${SPOOLGAMES}/x${MAMEMESS}@" \
|
2005-09-27 20:43:50 +02:00
|
|
|
-e "s@^rompath.*\$$@rompath ${DATADIR}/roms@" \
|
2001-03-27 12:38:45 +02:00
|
|
|
${WRKSRC}/doc/x${MAMEMESS}rc.dist.sed > ${WRKSRC}/doc/x${MAMEMESS}rc.dist
|
2000-08-20 05:15:37 +02:00
|
|
|
|
|
|
|
post-install:
|
2004-10-12 00:37:23 +02:00
|
|
|
.if ${MAMEMESS} == "mame"
|
|
|
|
${INSTALL_PROGRAM} ${WRKSRC}/xml2info ${PREFIX}/bin
|
2005-01-28 17:41:38 +01:00
|
|
|
${INSTALL_PROGRAM} ${WRKSRC}/romcmp ${PREFIX}/bin
|
|
|
|
${INSTALL_PROGRAM} ${WRKSRC}/chdman ${PREFIX}/bin
|
2004-10-12 00:37:23 +02:00
|
|
|
.endif
|
2005-04-05 20:39:46 +02:00
|
|
|
|
|
|
|
.if ${MAMEMESS} == "mess"
|
|
|
|
${INSTALL_PROGRAM} ${WRKSRC}/imgtool ${PREFIX}/bin
|
|
|
|
${INSTALL_PROGRAM} ${WRKSRC}/dat2html ${PREFIX}/bin
|
|
|
|
.endif
|
|
|
|
|
2001-03-27 12:38:45 +02:00
|
|
|
${MV} ${PREFIX}/bin/x${MAMEMESS}.${DISPLAY_METHOD} \
|
|
|
|
${PREFIX}/bin/x${MAMEMESS}
|
|
|
|
${CHOWN} root:games ${PREFIX}/bin/x${MAMEMESS}
|
|
|
|
${CHMOD} u-s,g+s ${PREFIX}/bin/x${MAMEMESS}
|
2005-09-27 20:43:50 +02:00
|
|
|
${MKDIR} ${DATADIR}/roms
|
2001-03-27 12:38:45 +02:00
|
|
|
${MKDIR} ${SPOOLGAMES}/x${MAMEMESS}
|
|
|
|
${CHOWN} -R root:games ${SPOOLGAMES}/x${MAMEMESS}
|
|
|
|
${CHMOD} 775 ${SPOOLGAMES}/x${MAMEMESS}
|
|
|
|
${INSTALL_DATA} ${WRKSRC}/doc/x${MAMEMESS}rc.dist \
|
|
|
|
${PREFIX}/etc/x${MAMEMESS}rc.sample
|
|
|
|
${LN} -sf ${PREFIX}/etc/x${MAMEMESS}rc \
|
2005-09-27 20:43:50 +02:00
|
|
|
${DATADIR}/x${MAMEMESS}rc
|
2000-08-20 05:15:37 +02:00
|
|
|
.if !defined(NOPORTDOCS)
|
2005-09-27 20:43:50 +02:00
|
|
|
${MKDIR} ${DOCSDIR}/img
|
2004-10-12 00:37:23 +02:00
|
|
|
.for f in ${ALLDOCS}
|
2005-09-27 20:43:50 +02:00
|
|
|
${INSTALL_DATA} ${WRKSRC}/doc/${f} ${DOCSDIR}
|
2000-08-20 05:15:37 +02:00
|
|
|
.endfor
|
2001-04-14 14:16:58 +02:00
|
|
|
.endif
|
2001-09-01 21:18:06 +02:00
|
|
|
.if ${MAMEMESS} == "mess"
|
2003-12-20 00:25:11 +01:00
|
|
|
${INSTALL_DATA} ${WRKSRC}/doc/mess/sysinfo.dat \
|
2005-09-27 20:43:50 +02:00
|
|
|
${DATADIR}/history.dat
|
2000-08-20 05:15:37 +02:00
|
|
|
.endif
|
2005-05-04 16:13:03 +02:00
|
|
|
.if ${MAMEMESS} == "mame" && defined(WITH_DATFILES)
|
2005-09-27 20:43:50 +02:00
|
|
|
${INSTALL_DATA} ${WRKDIR}/hiscore.dat ${DATADIR}
|
|
|
|
${INSTALL_DATA} ${WRKDIR}/history.dat ${DATADIR}
|
|
|
|
${INSTALL_DATA} ${WRKDIR}/cheat.dat ${DATADIR}
|
2001-03-27 12:38:45 +02:00
|
|
|
.endif
|
2005-01-12 08:18:27 +01:00
|
|
|
.if defined(WITH_OPENGL)
|
2004-11-24 18:45:31 +01:00
|
|
|
@${ECHO_MSG}
|
|
|
|
@${ECHO_MSG} "**************************************************************"
|
|
|
|
@${ECHO_MSG} "* HEADSUP: The OpenGL code is now built on top of the X11"
|
2005-08-31 16:00:39 +02:00
|
|
|
@${ECHO_MSG} "* drivers. You can enable OpenGL rendering with the -vidmod 2"
|
2004-11-24 18:45:31 +01:00
|
|
|
@${ECHO_MSG} "* option."
|
|
|
|
@${ECHO_MSG} "**************************************************************"
|
|
|
|
@${ECHO_MSG}
|
|
|
|
.endif
|
2001-03-27 12:38:45 +02:00
|
|
|
|
2004-02-26 10:31:44 +01:00
|
|
|
.include <bsd.port.post.mk>
|