summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDavid Seifert <soap@gentoo.org>2017-12-28 11:58:35 +0100
committerDavid Seifert <soap@gentoo.org>2017-12-28 13:03:01 +0100
commitfd108edb51fc837f527e1f2f725557aaf4fe4813 (patch)
treec26f0c38c13a3218296615c778e86a39ac882587 /app-cdr/gaffitter/files
parentapp-cdr/bin2iso: Port to EAPI 6 (diff)
downloadgentoo-fd108edb51fc837f527e1f2f725557aaf4fe4813.tar.gz
gentoo-fd108edb51fc837f527e1f2f725557aaf4fe4813.tar.bz2
gentoo-fd108edb51fc837f527e1f2f725557aaf4fe4813.zip
app-cdr/gaffitter: Port to EAPI 6
Package-Manager: Portage-2.3.19, Repoman-2.3.6
Diffstat (limited to 'app-cdr/gaffitter/files')
-rw-r--r--app-cdr/gaffitter/files/gaffitter-0.6.0-fix-build-system.patch32
1 files changed, 32 insertions, 0 deletions
diff --git a/app-cdr/gaffitter/files/gaffitter-0.6.0-fix-build-system.patch b/app-cdr/gaffitter/files/gaffitter-0.6.0-fix-build-system.patch
new file mode 100644
index 000000000000..df7d99b9c31e
--- /dev/null
+++ b/app-cdr/gaffitter/files/gaffitter-0.6.0-fix-build-system.patch
@@ -0,0 +1,32 @@
+--- a/src/Makefile
++++ b/src/Makefile
+@@ -6,28 +6,14 @@
+ optimizers/BestFit.cc optimizers/Split.cc \
+ util/CmdLineParser.cc
+
+-INCLUDES = -I/usr/local/include -I.
+-CXX = g++
+-CXXFLAGS = -O3 -Wno-long-long $(INCLUDES)
+-LIBPATH =
+-LIBS =
+-LDFLAGS = $(LIBPATH) $(LIBS)
+-
+ ###########################################################################
+
+ OBJS = $(CPPFILES:.cc=.o)
+
+-.SUFFIXES: .o .cc
+-
+-.cc.o:
+- @echo $<:
+- $(CXX) $(CXXFLAGS) -c $*.cc -o $*.o
+-
+ default: gaffitter
+
+
+-gaffitter: $(OBJS) gaffitter.cc Params.h
+- $(CXX) $(CXXFLAGS) $@.cc $(OBJS) -o $@ $(LDFLAGS)
++gaffitter: $(OBJS) Params.h
+ ###########################################################################
+
+ objs: $(OBJS)