Date: Sun, 19 Jan 2014 13:45:39 +0000 (UTC) From: Martin Wilke <miwi@FreeBSD.org> To: ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org Subject: svn commit: r340290 - in head/emulators/cpmemu: . files Message-ID: <201401191345.s0JDjdEa027651@svn.freebsd.org>
next in thread | raw e-mail | index | archive | help
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)
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201401191345.s0JDjdEa027651>