aboutsummaryrefslogtreecommitdiff
path: root/emulators/mame/Makefile
diff options
context:
space:
mode:
authorSteve Wills <swills@FreeBSD.org>2018-03-28 15:18:54 +0000
committerSteve Wills <swills@FreeBSD.org>2018-03-28 15:18:54 +0000
commit998e20f344a1b21c8fc0f95a2e4016da7032c61a (patch)
treebbc4219f031ef49aa6beefab0238aa6fc1451ea8 /emulators/mame/Makefile
parent005fc9862b6fdcde4c05364d341afa667ab28c39 (diff)
downloadports-998e20f344a1b21c8fc0f95a2e4016da7032c61a.tar.gz
ports-998e20f344a1b21c8fc0f95a2e4016da7032c61a.zip
Notes
Diffstat (limited to 'emulators/mame/Makefile')
-rw-r--r--emulators/mame/Makefile43
1 files changed, 26 insertions, 17 deletions
diff --git a/emulators/mame/Makefile b/emulators/mame/Makefile
index 17403702cb4d..24ed1ddbc017 100644
--- a/emulators/mame/Makefile
+++ b/emulators/mame/Makefile
@@ -1,42 +1,50 @@
# Created by: alepulver
# $FreeBSD$
-PORTNAME?= mame
-PORTVERSION= 0.166
-PORTREVISION?= 5
+PORTNAME= mame
+PORTVERSION= 0.195
CATEGORIES= emulators
MAINTAINER= ports@FreeBSD.org
-COMMENT?= Multi Arcade Machine Emulator
+COMMENT= Multi Arcade Machine Emulator
+
+LICENSE= GPLv2
+
+ONLY_FOR_ARCHS= amd64 i386
+ONLY_FOR_ARCHS_REASON= not yet ported to any arch other than x86
LIB_DEPENDS= libFLAC.so:audio/flac \
libexpat.so:textproc/expat2 \
libfontconfig.so:x11-fonts/fontconfig
RUN_DEPENDS= liberation-fonts-ttf>=0:x11-fonts/liberation-fonts-ttf
-ONLY_FOR_ARCHS= i386 amd64
-ONLY_FOR_ARCHS_REASON= not yet ported to any arch other than x86
-
USE_GITHUB= yes
GH_ACCOUNT= mamedev
GH_PROJECT= mame # explicit (master port)
GH_TAGNAME= mame${PORTVERSION:S/.//}
+OPTIONS_DEFINE= DEBUG DOCS EXAMPLES
+
+.include <bsd.port.options.mk>
+
+.if ${OSVERSION} < 1100055
+USE_GCC= 6
+.endif
+
USES= compiler:c11 gmake jpeg pkgconfig python:2.7,build shebangfix
SHEBANG_FILES= src/devices/cpu/m6502/m6502make.py \
src/devices/cpu/m6809/m6809make.py \
src/devices/cpu/mcs96/mcs96make.py \
- src/devices/cpu/tms57002/tmsmake.py \
- src/build/*.py
+ src/devices/cpu/tms57002/tmsmake.py
USE_XORG= x11 xext xi xinerama xrender
USE_GL= gl
USE_SDL= sdl2 ttf2
-USE_QT4= gui moc_build qmake_build
+USE_QT5= buildtools gui qmake_build widgets
MTARGET?= mame
MSUBTARGET?= mame
CFLAGS+= -I${LOCALBASE}/include
MAKE_ENV= NOWERROR=1 USE_NETWORK=1 \
- LD="${CXX}" PYTHON="${PYTHON_CMD}" SDL_LIBVER="sdl2" \
+ LD="${CXX}" PYTHON="${PYTHON_CMD}" \
OPT_FLAGS="${CXXFLAGS}" GCC_LDFLAGS="${LDFLAGS}" \
TARGET="${MTARGET}" SUBTARGET="${MSUBTARGET}" FULLNAME="mame" SDL_NETWORK="pcap"
MAKE_ARGS= TARGETOS=freebsd VERBOSE=1 TOOLS=1
@@ -48,7 +56,6 @@ PORTEXAMPLES= ${MSUBTARGET}.ini
SUB_FILES= pkg-message target.ini
SUB_LIST= MTARGET=${MTARGET} MSUBTARGET=${MSUBTARGET}
-OPTIONS_DEFINE= DEBUG DOCS EXAMPLES
DEBUG_MAKE_ENV= DEBUG=1
.include <bsd.port.options.mk>
@@ -62,17 +69,21 @@ EMULATOR= ${MSUBTARGET}
PLIST_SUB= EMULATOR=${EMULATOR}
post-patch:
+ @${RM} ${WRKSRC}/3rdparty/bx/include/compat/freebsd/dirent.h
+ @${RM} ${WRKSRC}/3rdparty/bx/include/compat/freebsd/signal.h
+ @${MV} ${GENIE}/build/gmake.freebsd ${GENIE}/build/gmake.bsd
@${REINPLACE_CMD} -e \
's|^\(CC \)|#\1| ; \
s|^\(CXX \)|#\1| ; \
+ s|^\(CXX:\)|#\1| ; \
s|^\(LD \)|#\1| ; \
s|^\(PYTHON \)|#\1| ; \
s| .(ARCH)|| ; \
s|FreeBSD|${OPSYS}|g' \
${WRKSRC}/makefile \
+ ${WRKSRC}/src/devices/cpu/m68000/makefile \
${GENIE}/build/gmake.bsd/genie.make
@${REINPLACE_CMD} -e 's|gcc|cc|; s|g++|c++|' \
- ${GENIE}/src/actions/codelite/codelite_project.lua \
${GENIE}/src/tools/gcc.lua \
${GENIE}/src/tools/snc.lua \
${GENIE}/tests/test_gmake_cpp.lua
@@ -81,7 +92,7 @@ post-patch:
${GENIE}/src/host/scripts.c
# we can't fix two types of python shebangs, so do these manually
@${REINPLACE_CMD} -i "" -e "s|/usr/bin/env python|${PYTHON_CMD}|" \
- ${WRKSRC}/src/build/png*.py
+ ${WRKSRC}/scripts/build/png*.py
@${REINPLACE_CMD} -e 's|"python"|"${PYTHON_CMD}"|' \
${WRKSRC}/scripts/genie.lua
@${GREP} -rl '"png.h"' ${WRKSRC}/src | ${XARGS} ${REINPLACE_CMD} \
@@ -97,7 +108,7 @@ do-install:
.if ${MSUBTARGET:Mmame}
(cd ${WRKSRC} && \
${INSTALL_PROGRAM} chdman jedutil ldresample ldverify \
- romcmp testkeys unidasm \
+ romcmp unidasm \
${STAGEDIR}${PREFIX}/libexec/mame)
.endif
.if ${MSUBTARGET:Mmess}
@@ -107,8 +118,6 @@ do-install:
.endif
(cd ${WRKSRC} && ${COPYTREE_SHARE} artwork ${STAGEDIR}${DATADIR})
(cd ${WRKSRC} && ${COPYTREE_SHARE} hash ${STAGEDIR}${DATADIR})
- (cd ${WRKSRC}/src/osd/sdl && \
- ${COPYTREE_SHARE} keymaps ${STAGEDIR}${DATADIR})
(cd ${WRKSRC} && ${COPYTREE_SHARE} docs ${STAGEDIR}${DOCSDIR})
${INSTALL_DATA} ${WRKDIR}/target.ini \
${STAGEDIR}${EXAMPLESDIR}/${MSUBTARGET}.ini