<pre style='margin:0'>
Ken (kencu) pushed a commit to branch master
in repository macports-ports.
</pre>
<p><a href="https://github.com/macports/macports-ports/commit/35aedeca4a671483992eff6f8888be6a4d496655">https://github.com/macports/macports-ports/commit/35aedeca4a671483992eff6f8888be6a4d496655</a></p>
<pre style="white-space: pre; background: #F8F8F8"><span style='display:block; white-space:pre;color:#808000;'>commit 35aedeca4a671483992eff6f8888be6a4d496655
</span>Author: Thomas Bernard <miniupnp@free.fr>
AuthorDate: Mon May 14 23:16:23 2018 +0200
<span style='display:block; white-space:pre;color:#404040;'> grafx2: correctly build using ${configure.cc}
</span><span style='display:block; white-space:pre;color:#404040;'>
</span><span style='display:block; white-space:pre;color:#404040;'> patch the Makefile so it doesn't always set CC=gcc any more
</span><span style='display:block; white-space:pre;color:#404040;'> and pass CC=${configure.cc} as build argument
</span>---
graphics/grafx2/Portfile | 5 ++
graphics/grafx2/files/grafx2_cc.patch | 123 ++++++++++++++++++++++++++++++++++
2 files changed, 128 insertions(+)
<span style='display:block; white-space:pre;color:#808080;'>diff --git a/graphics/grafx2/Portfile b/graphics/grafx2/Portfile
</span><span style='display:block; white-space:pre;color:#808080;'>index a71ee7e..62df152 100644
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>--- a/graphics/grafx2/Portfile
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>+++ b/graphics/grafx2/Portfile
</span><span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -43,11 +43,16 @@ depends_lib port:libsdl \
</span>
use_configure no
<span style='display:block; white-space:pre;background:#e0ffe0;'>+patch.pre_args -p1
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+patchfiles-append grafx2_cc.patch
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span> pre-build {
file mkdir ${worksrcpath}/3rdparty/archives
copy ${distpath}/recoil-4.2.0.tar.gz ${worksrcpath}/3rdparty/archives
}
<span style='display:block; white-space:pre;background:#e0ffe0;'>+build.args-append CC=${configure.cc} CXX=${configure.cxx} CPP=${configure.cpp}
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span> destroot {
xinstall -d ${destroot}${applications_dir}
copy ${worksrcpath}/src/GrafX2.app ${destroot}${applications_dir}
<span style='display:block; white-space:pre;color:#808080;'>diff --git a/graphics/grafx2/files/grafx2_cc.patch b/graphics/grafx2/files/grafx2_cc.patch
</span>new file mode 100644
<span style='display:block; white-space:pre;color:#808080;'>index 0000000..0fb3d7f
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>--- /dev/null
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>+++ b/graphics/grafx2/files/grafx2_cc.patch
</span><span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -0,0 +1,123 @@
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+commit a016e21abcff0d554789b4f11587bad05465b051
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+Author: Thomas BERNARD <miniupnp@free.fr>
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+Date: Mon May 14 22:47:36 2018 +0200
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ Default to CC=gcc but allow to define other values
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ so it is possible to
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ > CC=clang make (environment)
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ or
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ > make CC=gcc-5 (command-line)
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+diff --git a/src/Makefile b/src/Makefile
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+index 022200f..afdd108 100644
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+--- a/src/Makefile
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++++ b/src/Makefile
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+@@ -64,6 +64,11 @@ TAR = tar
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ # Note : --transform option was added in GNU tar version 1.15.91
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ TARTRANSFORM = --strip=1 --transform 's,^,grafx2/,g'
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++# default to gcc compiler
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++ifeq (default,$(origin CC))
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++ CC = gcc
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++endif
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ # There is no uname under windows, but we can guess we are there with the COMSPEC env.var
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ # Windows specific
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ ifdef COMSPEC
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+@@ -75,7 +80,6 @@ ifdef COMSPEC
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ COPT = -W -Wall -Wdeclaration-after-statement -O$(OPTIM) -g -ggdb `sdl-config --cflags` $(TTFCOPT) $(JOYCOPT) $(LUACOPT)
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ LOPT = `sdl-config --libs` -lSDL_image $(TTFLOPT) -lpng -lz $(LUALOPT)
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ LUALOPT = -llua
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+- CC = gcc
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ OBJDIR = ../obj/win32
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ # Resources (icon)
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ WINDRES = windres.exe
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+@@ -98,7 +102,6 @@ else
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ BIN = ../bin/grafx2
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ COPT = -Wall -gstabs $(shell sdl-config --cflags) $(TTFCOPT)
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ LOPT = $(shell sdl-config --libs) -lSDL_image -lpng -ljpeg -lz $(TTFLOPT) -lft2
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+- CC = gcc
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ OBJDIR = ../obj/amiga
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ ZIP = lha
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ ZIPOPT = a
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+@@ -198,7 +201,6 @@ endif
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ COPT += -DENABLE_FILENAMES_ICONV
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ LOPT += -liconv
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ # Use gcc for compiling. Use ncc to build a callgraph and analyze the code.
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+- CC = gcc
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ #CC = nccgen -ncgcc -ncld -ncfabs
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ OBJDIR = ../obj/macosx
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ PLATFORMOBJ = SDLMain.o
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+@@ -215,7 +217,6 @@ endif
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ BIN = ../bin/grafx2
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ COPT = -Wall -g $(shell sdl-config --cflags) $(TTFCOPT)
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ LOPT = -lSDL_image $(shell sdl-config --libs) -lpng -ljpeg -lz $(TTFLOPT) -lfreetype2shared
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+- CC = gcc
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ OBJDIR = ../obj/aros
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ STRIP = strip --strip-unneeded --remove-section .comment
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ ZIP = lha
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+@@ -231,7 +232,6 @@ endif
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ BIN = ../bin/grafx2
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ COPT = -Wall -gstabs $(shell sdl-config --cflags) $(TTFCOPT)
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ LOPT = -lSDL_image $(shell sdl-config --libs) -lpng -ljpeg -lz $(TTFLOPT)
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+- CC = gcc
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ OBJDIR = ../obj/morphos
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ ZIP = lha
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ ZIPOPT = a
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+@@ -247,7 +247,6 @@ endif
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ BIN = ../bin/grafx2
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ COPT = -W -Wall -g $(shell sdl-config --cflags) $(TTFCOPT) -I/boot/home/config/include
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ LOPT = $(shell sdl-config --libs) -lSDL_image -lpng -ljpeg -lz $(TTFLOPT)
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+- CC = gcc
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ OBJDIR = ../obj/beos
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ ZIP = zip
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+@@ -271,7 +270,6 @@ endif
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ COPT = -W -Wall -g $(shell sdl-config --cflags) $(TTFCOPT) -I/boot/common/include $(LUACOPT)
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ COPT += -DENABLE_FILENAMES_ICONV
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ LOPT = $(shell sdl-config --libs) -lSDL_image -lpng -ljpeg -lz $(TTFLOPT) -lfreetype -lbe $(LUALOPT) -liconv
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+- CC = gcc
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ #Append the gcc kind to the objdir (gcc2 or gcc4) to avoid conflicts when switching from one to other.
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ OBJKIND = $(shell gcc -dumpversion)
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ OBJDIR = ../obj/haiku/$(OBJKIND)
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+@@ -287,7 +285,6 @@ endif
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ BIN = ../bin/grafx2
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ COPT = -W -Wall -Wdeclaration-after-statement -g $(shell sdl-config --cflags) $(TTFCOPT)
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ LOPT = $(shell sdl-config --libs) -lSDL_image -lpng -ljpeg -lz $(TTFLOPT)
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+- CC = gcc
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ OBJDIR = ../obj/skyos
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ ZIP = zip
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+@@ -306,7 +303,6 @@ endif
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ OBJDIR = ../obj/unix
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ FCLOPT = -lfontconfig
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ COPT += -DUSE_FC
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+- CC = gcc
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ else
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ ifeq ($(PLATFORM),FreeMiNT) #10
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ #Atari FreeMiNT/TOS specific
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+@@ -316,7 +312,6 @@ endif
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ CP = cp
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ ZIP = zip
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ PLATFORMFILES = ../share/grafx2/gfx2.png
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+- CC = gcc
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ BIN = ../bin/grafx2.ttp
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ LUALOPT = -llua
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ OBJDIR = ../obj/m68k-atari-mint
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+@@ -341,7 +336,6 @@ endif
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ BIN = ../bin/grafx2
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ COPT = -W -Wall -Wdeclaration-after-statement -std=c99 -g `sdl-config --cflags` -I/resources/indexes/include/SDL $(TTFCOPT) $(LUACOPT) $(JOYCOPT) -O$(OPTIM)
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ LOPT = `sdl-config --libs` -lSDL_image $(TTFLOPT) -lpng -lz $(LUALOPT) -lm
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+- CC = gcc
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ OBJDIR = ../obj/syllable
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ FCLOPT =
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ else
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+@@ -460,7 +454,6 @@ endif
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ LOPT = $(shell sdl-config --libs) -lSDL_image $(TTFLOPT)
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ LOPT += $(shell pkg-config --libs libpng)
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ LOPT += $(LUALOPT) -lm
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+- CC = gcc
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ OBJDIR = ../obj/unix
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ FCLOPT = -lfontconfig
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ COPT += -DUSE_FC
</span></pre><pre style='margin:0'>
</pre>