aboutsummaryrefslogtreecommitdiffstats
path: root/emulators
diff options
context:
space:
mode:
authormiwi <miwi@FreeBSD.org>2014-01-19 21:45:39 +0800
committermiwi <miwi@FreeBSD.org>2014-01-19 21:45:39 +0800
commit27794c72a37c812ff148ee6ba52b1c9d50fa0be2 (patch)
treeac869eb4110869e67a5cc1d5a748c243f76df3d9 /emulators
parentdf74f99b5d72c6864167b3df9c7448bdd824e053 (diff)
downloadfreebsd-ports-gnome-27794c72a37c812ff148ee6ba52b1c9d50fa0be2.tar.gz
freebsd-ports-gnome-27794c72a37c812ff148ee6ba52b1c9d50fa0be2.tar.zst
freebsd-ports-gnome-27794c72a37c812ff148ee6ba52b1c9d50fa0be2.zip
- Fix build with clang
PR: 185322 Submitted by: ports fury
Diffstat (limited to 'emulators')
-rw-r--r--emulators/cpmemu/Makefile12
-rw-r--r--emulators/cpmemu/files/patch-ab13
2 files changed, 17 insertions, 8 deletions
diff --git a/emulators/cpmemu/Makefile b/emulators/cpmemu/Makefile
index 30546a9b12d2..e8ae89298a9d 100644
--- a/emulators/cpmemu/Makefile
+++ b/emulators/cpmemu/Makefile
@@ -18,5 +18,13 @@ COMMENT= Cpm emulator
ONLY_FOR_ARCHS= i386
-NO_STAGE= yes
-.include <bsd.port.mk>
+USES= compiler
+
+.include <bsd.port.pre.mk>
+
+.if ${COMPILER_TYPE} == "clang"
+USE_BINUTILS= yes
+CPPFLAGS+= -no-integrated-as
+.endif
+
+.include <bsd.port.post.mk>
diff --git a/emulators/cpmemu/files/patch-ab b/emulators/cpmemu/files/patch-ab
index 59c238229f1b..c7efc6fabcd8 100644
--- a/emulators/cpmemu/files/patch-ab
+++ b/emulators/cpmemu/files/patch-ab
@@ -21,14 +21,14 @@
+CC ?= gcc
-CFLAGS = -O2 -pipe -ansi -Wall \
-+CFLAGS += -ansi -Wall \
++CFLAGS += $(CPPFLAGS) -ansi -Wall \
-Wshadow -Wpointer-arith -Wcast-qual -Wcast-align \
-Waggregate-return -Wstrict-prototypes -Wmissing-prototypes \
-Wnested-externs -Wwrite-strings \
-DCPMLIBDIR=\"$(CPMLIBDIR)\"
-LDFLAGS = -s
-+LDFLAGS += -s
++#LDFLAGS = -s
OBJS = single.o z80emu.o em.o io.o bios.o \
commands.o running.o main.o disneu.o disz80.o low.o
@@ -44,9 +44,10 @@
install: all
- install -m 511 cpm $(BINDIR)
-+ ${BSD_INSTALL_PROGRAM} cpm $(BINDIR)/cpmemu
-+ ${BSD_INSTALL_PROGRAM} format $(BINDIR)/cpmformat
- -mkdir $(CPMLIBDIR)
+- -mkdir $(CPMLIBDIR)
- chmod 755 $(CPMLIBDIR)
- install -m 444 z80-binaries/* $(CPMLIBDIR)
-+ ${BSD_INSTALL_DATA} z80-binaries/* $(CPMLIBDIR)
++ ${BSD_INSTALL_PROGRAM} cpm $(DESTDIR)$(BINDIR)/cpmemu
++ ${BSD_INSTALL_PROGRAM} format $(DESTDIR)$(BINDIR)/cpmformat
++ -mkdir $(DESTDIR)$(CPMLIBDIR)
++ ${BSD_INSTALL_DATA} z80-binaries/* $(DESTDIR)$(CPMLIBDIR)