svn commit: r340290 - in head/emulators/cpmemu: . files
Martin Wilke
miwi at FreeBSD.org
Sun Jan 19 13:45:40 UTC 2014
Author: miwi
Date: Sun Jan 19 13:45:39 2014
New Revision: 340290
URL: http://svnweb.freebsd.org/changeset/ports/340290
QAT: https://qat.redports.org/buildarchive/r340290/
Log:
- Fix build with clang
PR: 185322
Submitted by: ports fury
Modified:
head/emulators/cpmemu/Makefile (contents, props changed)
head/emulators/cpmemu/files/patch-ab (contents, props changed)
Modified: head/emulators/cpmemu/Makefile
==============================================================================
--- head/emulators/cpmemu/Makefile Sun Jan 19 13:44:36 2014 (r340289)
+++ head/emulators/cpmemu/Makefile Sun Jan 19 13:45:39 2014 (r340290)
@@ -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>
Modified: head/emulators/cpmemu/files/patch-ab
==============================================================================
--- head/emulators/cpmemu/files/patch-ab Sun Jan 19 13:44:36 2014 (r340289)
+++ head/emulators/cpmemu/files/patch-ab Sun Jan 19 13:45:39 2014 (r340290)
@@ -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)
More information about the svn-ports-head
mailing list