summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDavid Seifert <soap@gentoo.org>2017-03-08 22:35:40 +0100
committerDavid Seifert <soap@gentoo.org>2017-03-08 23:16:45 +0100
commit8fbc78adda521381c3f87d7da4c9d4dc7a674647 (patch)
treef1337f93a89d2b6f627f2445dacdff49319fbdd6 /sci-biology/pilercr/files
parentsci-biology/piler: Modernise to EAPI 6 (diff)
downloadgentoo-8fbc78adda521381c3f87d7da4c9d4dc7a674647.tar.gz
gentoo-8fbc78adda521381c3f87d7da4c9d4dc7a674647.tar.bz2
gentoo-8fbc78adda521381c3f87d7da4c9d4dc7a674647.zip
sci-biology/pilercr: Modernise to EAPI 6
Package-Manager: Portage-2.3.4, Repoman-2.3.2 Closes: https://github.com/gentoo/gentoo/pull/4165
Diffstat (limited to 'sci-biology/pilercr/files')
-rw-r--r--sci-biology/pilercr/files/pilercr-1.0-fix-build-system.patch34
1 files changed, 34 insertions, 0 deletions
diff --git a/sci-biology/pilercr/files/pilercr-1.0-fix-build-system.patch b/sci-biology/pilercr/files/pilercr-1.0-fix-build-system.patch
new file mode 100644
index 00000000000..3754f80a934
--- /dev/null
+++ b/sci-biology/pilercr/files/pilercr-1.0-fix-build-system.patch
@@ -0,0 +1,34 @@
+Make build system honour user variables
+
+--- a/Makefile
++++ b/Makefile
+@@ -1,7 +1,4 @@
+-CFLAGS = -O3 -funroll-loops -Winline -DNDEBUG=1
+-#CFLAGS = -O3 -funroll-loops -Winline
+-LDLIBS = -lm -static
+-# LDLIBS = -lm
++LDLIBS = -lm
+
+ OBJ = .o
+ EXE =
+@@ -9,17 +6,13 @@
+ RM = rm -f
+ CP = cp
+
+-GPP = g++
+-LD = $(GPP) $(CFLAGS)
+-CPP = $(GPP) -c $(CFLAGS)
+-
+ all: pilercr
+
+ CPPSRC = $(sort $(wildcard *.cpp))
+ CPPOBJ = $(subst .cpp,.o,$(CPPSRC))
+
+-$(CPPOBJ): %.o: %.cpp
+- $(CPP) $< -o $@
++%.o: %.cpp
++ $(CXX) $(CXXFLAGS) -DNDEBUG $(CPPFLAGS) -c $< -o $@
+
+ pilercr: $(CPPOBJ)
+- $(LD) -o pilercr $(CPPOBJ) $(LDLIBS)
++ $(CXX) $(LDFLAGS) $(CXXFLAGS) -o pilercr $(CPPOBJ) $(LDLIBS)