summaryrefslogtreecommitdiff
path: root/emulators
diff options
context:
space:
mode:
authordholland <dholland@pkgsrc.org>2017-09-09 22:40:58 +0000
committerdholland <dholland@pkgsrc.org>2017-09-09 22:40:58 +0000
commit474d479d6845dbe369451b90cef3ce11abafe9de (patch)
tree5f58f7fd01cb39c17434b868b33176eabd915304 /emulators
parent6b3e33ca474c7e16c70f1d527a533c5a75965e60 (diff)
downloadpkgsrc-474d479d6845dbe369451b90cef3ce11abafe9de.tar.gz
Add missing makefile rules for building with clang on NetBSD and FreeBSD.
Diffstat (limited to 'emulators')
-rw-r--r--emulators/mame/distinfo4
-rw-r--r--emulators/mame/patches/patch-makefile55
2 files changed, 54 insertions, 5 deletions
diff --git a/emulators/mame/distinfo b/emulators/mame/distinfo
index 8f8b874074b..c61b7871b1f 100644
--- a/emulators/mame/distinfo
+++ b/emulators/mame/distinfo
@@ -1,4 +1,4 @@
-$NetBSD: distinfo,v 1.64 2017/04/19 21:10:11 wiz Exp $
+$NetBSD: distinfo,v 1.65 2017/09/09 22:40:58 dholland Exp $
SHA1 (mame-0.184.tar.gz) = bdda96458baff451511fbecb204b863af52b34da
RMD160 (mame-0.184.tar.gz) = 3cca0ab3d7869da50c76730d1b07945e941739a7
@@ -6,5 +6,5 @@ SHA512 (mame-0.184.tar.gz) = a638ec2bf70cc8140c911f1f621a55335c9c9e80ae0ee49c65c
Size (mame-0.184.tar.gz) = 121328139 bytes
SHA1 (patch-3rdparty_asio_include_asio_detail_config.hpp) = 9b0d6139e853d8efb9d51270bbfa5382feac42a7
SHA1 (patch-3rdparty_bgfx_examples_common_font_font__manager.cpp) = e39b2dff553505531adb5f0a31b0a22306b8e2e4
-SHA1 (patch-makefile) = c56dac362b89025d83078dbd1e3ae0a09df46a00
+SHA1 (patch-makefile) = c1766b434ea5d5e57179d9d9616eaa66af77206e
SHA1 (patch-scripts_genie.lua) = 91940dbcf30e0abd25167a79b53deb43a18daf86
diff --git a/emulators/mame/patches/patch-makefile b/emulators/mame/patches/patch-makefile
index 5ce00e79bd9..de6a60dba94 100644
--- a/emulators/mame/patches/patch-makefile
+++ b/emulators/mame/patches/patch-makefile
@@ -1,10 +1,11 @@
-$NetBSD: patch-makefile,v 1.19 2017/01/04 23:05:12 wiz Exp $
+$NetBSD: patch-makefile,v 1.20 2017/09/09 22:40:58 dholland Exp $
Treat all BSDs the same.
+Add missing rules for building with clang on FreeBSD and NetBSD.
---- makefile.orig 2016-10-25 23:47:23.000000000 +0000
+--- makefile.orig 2017-03-29 03:12:20.000000000 +0000
+++ makefile
-@@ -177,19 +177,19 @@ GENIEOS := solaris
+@@ -180,19 +180,19 @@ GENIEOS := solaris
endif
ifeq ($(firstword $(filter FreeBSD,$(UNAME))),FreeBSD)
OS := freebsd
@@ -28,3 +29,51 @@ Treat all BSDs the same.
endif
ifeq ($(firstword $(filter Darwin,$(UNAME))),Darwin)
OS := macosx
+@@ -1357,6 +1357,23 @@ freebsd_x86: generate $(PROJECTDIR)/$(MA
+ $(SILENT) $(MAKE) -C $(PROJECTDIR)/$(MAKETYPE)-freebsd config=$(CONFIG)32
+
+ #-------------------------------------------------
++# gmake-freebsd-clang
++#-------------------------------------------------
++
++$(PROJECTDIR)/$(MAKETYPE)-freebsd-clang/Makefile: makefile $(SCRIPTS) $(GENIE)
++ $(SILENT) $(GENIE) $(PARAMS) $(TARGET_PARAMS) --gcc=freebsd-clang --gcc_version=$(CLANG_VERSION) $(MAKETYPE)
++
++.PHONY: freebsd_x64_clang
++freebsd_x64_clang: generate $(PROJECTDIR)/$(MAKETYPE)-freebsd-clang/Makefile
++ $(SILENT) $(MAKE) -C $(PROJECTDIR)/$(MAKETYPE)-freebsd-clang config=$(CONFIG)64 precompile
++ $(SILENT) $(MAKE) -C $(PROJECTDIR)/$(MAKETYPE)-freebsd-clang config=$(CONFIG)64
++
++.PHONY: freebsd_x86_clang
++freebsd_x86_clang: generate $(PROJECTDIR)/$(MAKETYPE)-freebsd-clang/Makefile
++ $(SILENT) $(MAKE) -C $(PROJECTDIR)/$(MAKETYPE)-freebsd-clang config=$(CONFIG)32 precompile
++ $(SILENT) $(MAKE) -C $(PROJECTDIR)/$(MAKETYPE)-freebsd-clang config=$(CONFIG)32
++
++#-------------------------------------------------
+ # gmake-netbsd
+ #-------------------------------------------------
+
+@@ -1377,6 +1394,23 @@ netbsd_x86: generate $(PROJECTDIR)/$(MAK
+ $(SILENT) $(MAKE) -C $(PROJECTDIR)/$(MAKETYPE)-netbsd config=$(CONFIG)32
+
+ #-------------------------------------------------
++# gmake-netbsd-clang
++#-------------------------------------------------
++
++$(PROJECTDIR)/$(MAKETYPE)-netbsd-clang/Makefile: makefile $(SCRIPTS) $(GENIE)
++ $(SILENT) $(GENIE) $(PARAMS) $(TARGET_PARAMS) --gcc=netbsd-clang --gcc_version=$(CLANG_VERSION) $(MAKETYPE)
++
++.PHONY: netbsd_x64_clang
++netbsd_x64_clang: generate $(PROJECTDIR)/$(MAKETYPE)-netbsd-clang/Makefile
++ $(SILENT) $(MAKE) -C $(PROJECTDIR)/$(MAKETYPE)-netbsd-clang config=$(CONFIG)64 precompile
++ $(SILENT) $(MAKE) -C $(PROJECTDIR)/$(MAKETYPE)-netbsd-clang config=$(CONFIG)64
++
++.PHONY: netbsd_x86_clang
++netbsd_x86_clang: generate $(PROJECTDIR)/$(MAKETYPE)-netbsd-clang/Makefile
++ $(SILENT) $(MAKE) -C $(PROJECTDIR)/$(MAKETYPE)-netbsd-clang config=$(CONFIG)32 precompile
++ $(SILENT) $(MAKE) -C $(PROJECTDIR)/$(MAKETYPE)-netbsd-clang config=$(CONFIG)32
++
++#-------------------------------------------------
+ # gmake-openbsd
+ #-------------------------------------------------
+