summaryrefslogtreecommitdiffstats
path: root/emulators
diff options
context:
space:
mode:
authorpav <pav@FreeBSD.org>2005-02-15 19:42:31 +0000
committerpav <pav@FreeBSD.org>2005-02-15 19:42:31 +0000
commitc4bf31291db8982499897f8157ac5c51273627bd (patch)
tree5fa1e08eeddb54f8a9fb5a830da63ca9eea67c27 /emulators
parent0457cbf922083c25a31148321660685682938212 (diff)
downloadFreeBSD-ports-c4bf31291db8982499897f8157ac5c51273627bd.zip
FreeBSD-ports-c4bf31291db8982499897f8157ac5c51273627bd.tar.gz
- Fix xmess build on FreeBSD 4:
RELENG_4's ld cannot link code with duplicate symbols. I've decided to not link messtest at all since we don't even install it. PR: ports/77521 Submitted by: Miguel Mendez <flynn@energyhq.es.eu.org> (maintainer)
Diffstat (limited to 'emulators')
-rw-r--r--emulators/xmame/Makefile7
-rw-r--r--emulators/xmame/files/patch-makefile.mes11
-rw-r--r--emulators/xmame/files/patch-src-unix-unix.mak11
3 files changed, 22 insertions, 7 deletions
diff --git a/emulators/xmame/Makefile b/emulators/xmame/Makefile
index 72ffe4a..7dc59d7 100644
--- a/emulators/xmame/Makefile
+++ b/emulators/xmame/Makefile
@@ -253,13 +253,6 @@ do-configure:
.endfor
${LN} -s ${WRKSRC}/src/png.h ${WRKSRC}/src/mame_png.h
-.if ${MAMEMESS} == "mess"
-.if ${OSVERSION} < 500000
- ${REINPLACE_CMD} -e "s@-Wl,--allow-multiple-definition@@" \
- ${WRKSRC}/makefile.mes ${WRKSRC}/src/unix/unix.mak
-.endif
-.endif
-
post-build:
cd ${WRKSRC} && ${SETENV} ${MAKE_ENV} SDL_VIDEODRIVER=aalib \
${GMAKE} doc/x${MAMEMESS}.6
diff --git a/emulators/xmame/files/patch-makefile.mes b/emulators/xmame/files/patch-makefile.mes
new file mode 100644
index 0000000..18d003b
--- /dev/null
+++ b/emulators/xmame/files/patch-makefile.mes
@@ -0,0 +1,11 @@
+--- makefile.mes.orig Mon Feb 14 18:03:35 2005
++++ makefile.mes Mon Feb 14 18:05:09 2005
+@@ -344,7 +344,7 @@
+ $(OBJ)/mess/windows/parallel.o \
+ $(OBJ)/mess/windows/strconv.o
+ @echo Linking $@...
+- $(LD) $(LDFLAGS) $(CONSOLE_PROGRAM) $^ -Wl,--allow-multiple-definition $(ZLIB) $(LIBS) -lwinmm -o $@
++ touch $@
+
+ # secondary libraries
+ $(OBJ)/libexpat.a: $(OBJ)/expat/xmlparse.o $(OBJ)/expat/xmlrole.o $(OBJ)/expat/xmltok.o
diff --git a/emulators/xmame/files/patch-src-unix-unix.mak b/emulators/xmame/files/patch-src-unix-unix.mak
new file mode 100644
index 0000000..3638f4f
--- /dev/null
+++ b/emulators/xmame/files/patch-src-unix-unix.mak
@@ -0,0 +1,11 @@
+--- src/unix/unix.mak.orig Mon Feb 14 18:08:49 2005
++++ src/unix/unix.mak Mon Feb 14 18:09:12 2005
+@@ -599,7 +599,7 @@
+ $(OBJDIR)/sysdep/rc.o \
+ $(OBJDIR)/tststubs.o
+ $(CC_COMMENT) @echo 'Linking $@...'
+- $(CC_COMPILE) $(LD) $(LDFLAGS) $(MY_LIBS) $^ -Wl,--allow-multiple-definition -o $@
++ touch $@
+
+ $(OBJDIR)/tststubs.o: src/unix/tststubs.c
+ $(CC_COMPILE) $(CC) $(MY_CFLAGS) -o $@ -c $<
OpenPOWER on IntegriCloud