From 6debf299a19b2609000d410d65b02e49dd146a8f Mon Sep 17 00:00:00 2001 From: adam Date: Sun, 27 Feb 2011 12:26:28 +0000 Subject: Fix building on Mac OS X when using a SDK --- emulators/libspectrum/distinfo | 3 ++- emulators/libspectrum/patches/patch-Makefile.in | 15 +++++++++++++++ 2 files changed, 17 insertions(+), 1 deletion(-) create mode 100644 emulators/libspectrum/patches/patch-Makefile.in (limited to 'emulators') diff --git a/emulators/libspectrum/distinfo b/emulators/libspectrum/distinfo index 1d240fcd6bc..2fd65cb0567 100644 --- a/emulators/libspectrum/distinfo +++ b/emulators/libspectrum/distinfo @@ -1,5 +1,6 @@ -$NetBSD: distinfo,v 1.11 2010/12/20 20:51:36 adam Exp $ +$NetBSD: distinfo,v 1.12 2011/02/27 12:26:28 adam Exp $ SHA1 (libspectrum-1.0.0.tar.gz) = 0d980069e14497e02f219b0ea7130e0e5698bdc1 RMD160 (libspectrum-1.0.0.tar.gz) = 3cfb1cef3f59490bb0f244feacbc237e94bbc0f1 Size (libspectrum-1.0.0.tar.gz) = 462552 bytes +SHA1 (patch-Makefile.in) = c8871a57a82bd65fdd46acac3e8feaa8cd950a35 diff --git a/emulators/libspectrum/patches/patch-Makefile.in b/emulators/libspectrum/patches/patch-Makefile.in new file mode 100644 index 00000000000..38922ed821a --- /dev/null +++ b/emulators/libspectrum/patches/patch-Makefile.in @@ -0,0 +1,15 @@ +$NetBSD: patch-Makefile.in,v 1.1 2011/02/27 12:26:28 adam Exp $ + +Pass CFLAGS when compiling make-perl.c + +--- Makefile.in.orig 2011-02-27 12:21:02.000000000 +0000 ++++ Makefile.in +@@ -966,7 +966,7 @@ uninstall-man: uninstall-man3 + + + make-perl$(EXEEXT): $(srcdir)/make-perl.c config.h +- $(CC_FOR_BUILD) -I. -o $@ $< ++ $(CC_FOR_BUILD) $(CFLAGS) -I. -o $@ $< + + libspectrum.h: libspectrum.h.in generate.pl snap_accessors.txt tape_accessors.txt config.h + @PERL@ -p generate.pl $(srcdir) $(srcdir)/libspectrum.h.in > $@.tmp && mv $@.tmp $@ -- cgit v1.2.3