2013-04-05 22:19:13 -04:00
|
|
|
# $OpenBSD: Makefile,v 1.28 2013/04/06 02:19:13 bcallah Exp $
|
2009-03-17 15:55:09 -04:00
|
|
|
|
|
|
|
# Other archs have not been tested
|
|
|
|
ONLY_FOR_ARCHS = amd64 i386
|
|
|
|
|
|
|
|
MULTI_PACKAGES = -main -tools
|
|
|
|
|
|
|
|
COMMENT-main = emulates a massive variety of arcades machines
|
|
|
|
COMMENT-tools = tools to manipulate MAME/MESS roms and disk images
|
|
|
|
|
2013-01-31 17:27:36 -05:00
|
|
|
V = 0148
|
2011-11-27 07:42:28 -05:00
|
|
|
DISTNAME = mame${V}s
|
2013-04-05 05:10:25 -04:00
|
|
|
PKGNAME-main = sdlmame-${V:S/0/0./}pl2
|
|
|
|
PKGNAME-tools = sdlmame-tools-${V:S/0/0./}pl2
|
2013-04-05 22:19:13 -04:00
|
|
|
REVISION = 0
|
2009-03-17 15:55:09 -04:00
|
|
|
|
|
|
|
CATEGORIES = emulators games
|
|
|
|
|
2011-11-27 07:42:28 -05:00
|
|
|
HOMEPAGE = http://mamedev.org/
|
2009-03-17 15:55:09 -04:00
|
|
|
|
2013-01-31 17:27:36 -05:00
|
|
|
MAINTAINER = Federico G. Schwindt <fgsch@openbsd.org>
|
|
|
|
|
2009-03-17 15:55:09 -04:00
|
|
|
# MAME Distribution License, see http://mamedev.org/license.html
|
2010-04-27 09:00:25 -04:00
|
|
|
# history.dat : Creative Commons Attribution 3.0
|
2009-03-17 15:55:09 -04:00
|
|
|
PERMIT_PACKAGE_CDROM = may not sell
|
|
|
|
PERMIT_PACKAGE_FTP = Yes
|
|
|
|
|
2013-04-05 05:10:25 -04:00
|
|
|
WANTLIB = SDL SDL_ttf X11 Xcomposite Xcursor Xdamage Xext Xfixes \
|
|
|
|
Xi Xinerama Xrandr Xrender atk-1.0 c cairo expat fontconfig \
|
|
|
|
freetype gconf-2 gdk-x11-2.0 gdk_pixbuf-2.0 gio-2.0 \
|
|
|
|
glib-2.0 gobject-2.0 gtk-x11-2.0 m pango-1.0 pangocairo-1.0 \
|
|
|
|
pangoft2-1.0 pthread stdc++ util z
|
2011-11-27 07:42:28 -05:00
|
|
|
|
2013-01-31 17:27:36 -05:00
|
|
|
MASTER_SITES = http://mamedev.org/downloader.php?file=releases/ \
|
|
|
|
http://whiper.com/mame/${V:S/0//}/
|
2011-11-27 07:42:28 -05:00
|
|
|
MASTER_SITES0 = http://mamedev.org/updates/
|
|
|
|
MASTER_SITES1 = http://www.arcade-history.com/dats/
|
2009-03-17 15:55:09 -04:00
|
|
|
|
|
|
|
EXTRACT_SUFX = .zip
|
2011-11-27 07:42:28 -05:00
|
|
|
DIST_SUBDIR = mame
|
2009-03-17 15:55:09 -04:00
|
|
|
|
2011-12-20 01:56:12 -05:00
|
|
|
# PATCHFILES doesn't work for .zip
|
2011-11-27 07:42:28 -05:00
|
|
|
DISTFILES = ${DISTNAME}${EXTRACT_SUFX} \
|
2013-03-10 06:56:50 -04:00
|
|
|
${V}u1_diff.zip:0 \
|
2013-04-05 05:10:25 -04:00
|
|
|
${V}u2_diff.zip:0 \
|
|
|
|
history${V:S/0//}g.zip:1
|
2010-04-27 09:00:25 -04:00
|
|
|
|
2013-01-31 17:27:36 -05:00
|
|
|
MODULES = devel/gettext \
|
|
|
|
lang/python
|
2011-12-20 01:56:12 -05:00
|
|
|
|
|
|
|
RUN_DEPENDS-main = fonts/liberation-fonts
|
2011-11-27 07:42:28 -05:00
|
|
|
LIB_DEPENDS = devel/gconf2 \
|
|
|
|
devel/sdl-ttf \
|
2011-05-14 17:29:03 -04:00
|
|
|
x11/gtk+2
|
2009-03-17 15:55:09 -04:00
|
|
|
|
2009-04-09 18:44:41 -04:00
|
|
|
MAKE_FLAGS = OPT_FLAGS='-DINI_PATH="\"${SYSCONFDIR}/mame;\""'
|
2011-11-27 07:42:28 -05:00
|
|
|
MAKE_ENV = ARCH=$(ARCH) CC=$(CC) CFLAGS="$(CFLAGS)" \
|
2013-04-05 22:19:13 -04:00
|
|
|
TARGETOS=openbsd \
|
|
|
|
NO_USE_QTDEBUG=1 \
|
|
|
|
NOWERROR=1
|
2009-03-17 15:55:09 -04:00
|
|
|
.if ${MACHINE_ARCH} == "amd64"
|
2011-11-27 07:42:28 -05:00
|
|
|
MAKE_ENV += PTR64=1
|
2009-03-17 15:55:09 -04:00
|
|
|
.endif
|
2011-11-27 07:42:28 -05:00
|
|
|
USE_GMAKE = Yes
|
|
|
|
|
2013-01-31 17:27:36 -05:00
|
|
|
CONFIGURE_STYLE = none
|
|
|
|
|
2009-03-17 15:55:09 -04:00
|
|
|
MAKE_FILE = makefile
|
|
|
|
|
2013-03-11 07:02:49 -04:00
|
|
|
NO_TEST = Yes
|
2011-11-27 07:42:28 -05:00
|
|
|
VMEM_WARNING = Yes
|
|
|
|
|
|
|
|
post-extract:
|
|
|
|
@${UNZIP} -oq ${WRKDIR}/mame.zip -d ${WRKSRC}
|
|
|
|
|
|
|
|
pre-patch:
|
2013-04-05 22:19:13 -04:00
|
|
|
.for v in 1 2
|
2013-03-10 06:56:50 -04:00
|
|
|
${PATCH} ${PATCH_DIST_ARGS} < ${WRKDIR}/${V}u${v}.diff
|
|
|
|
.endfor
|
2011-11-27 07:42:28 -05:00
|
|
|
@perl -pi -e 's|\r\n|\n|g' ${WRKDIST}/makefile \
|
2013-01-31 17:27:36 -05:00
|
|
|
${WRKDIST}/src/emu/fileio.h \
|
|
|
|
${WRKDIST}/src/emu/machine/netlist.h \
|
|
|
|
${WRKDIST}/src/osd/sdl/sdl.mak
|
2013-02-06 05:19:52 -05:00
|
|
|
@ln -s ${MODPY_BIN} ${WRKDIR}/bin/python
|
2013-01-31 17:27:36 -05:00
|
|
|
|
|
|
|
pre-build:
|
|
|
|
${SUBST_CMD} ${WRKDIST}/src/osd/sdl/sdl.mak
|
2009-03-17 15:55:09 -04:00
|
|
|
|
|
|
|
do-install:
|
|
|
|
${INSTALL_PROGRAM} ${WRKSRC}/mame ${PREFIX}/bin/sdlmame
|
2011-12-20 01:56:12 -05:00
|
|
|
.for f in chdman jedutil ldresample ldverify romcmp unidasm
|
2011-11-27 07:42:28 -05:00
|
|
|
${INSTALL_PROGRAM} ${WRKSRC}/${f} ${PREFIX}/bin
|
2009-04-09 18:44:41 -04:00
|
|
|
.endfor
|
2011-11-27 07:42:28 -05:00
|
|
|
${INSTALL_DATA_DIR} ${PREFIX}/share/sdlmame/keymaps
|
|
|
|
${INSTALL_DATA} ${WRKSRC}/src/osd/sdl/keymaps/km[-_]??.txt \
|
|
|
|
${PREFIX}/share/sdlmame/keymaps/
|
2009-03-17 15:55:09 -04:00
|
|
|
${INSTALL_DATA_DIR} ${PREFIX}/share/doc/sdlmame
|
2011-11-27 07:42:28 -05:00
|
|
|
.for f in config.txt hlsl.txt license.txt mame.txt newvideo.txt
|
|
|
|
${INSTALL_DATA} ${WRKSRC}/docs/${f} ${PREFIX}/share/doc/sdlmame
|
2009-03-17 15:55:09 -04:00
|
|
|
.endfor
|
2009-04-09 18:44:41 -04:00
|
|
|
${INSTALL_DATA_DIR} ${PREFIX}/share/examples/sdlmame
|
|
|
|
${SUBST_CMD} -c ${FILESDIR}/mame.ini \
|
2011-11-27 07:42:28 -05:00
|
|
|
${PREFIX}/share/examples/sdlmame/mame.ini
|
2009-04-09 18:44:41 -04:00
|
|
|
chown ${SHAREOWN}:${SHAREGRP} \
|
2011-11-27 07:42:28 -05:00
|
|
|
${PREFIX}/share/examples/sdlmame/mame.ini
|
2010-04-27 09:00:25 -04:00
|
|
|
${INSTALL_DATA} ${WRKDIR}/history.dat ${PREFIX}/share/sdlmame
|
2009-03-17 15:55:09 -04:00
|
|
|
|
|
|
|
.include <bsd.port.mk>
|