aboutsummaryrefslogtreecommitdiffstats
path: root/main/unrar/makefile.patch
diff options
context:
space:
mode:
authorSören Tempel <soeren+git@soeren-tempel.net>2016-02-10 11:13:47 +0100
committerSören Tempel <soeren+git@soeren-tempel.net>2016-02-10 11:27:03 +0100
commit300b30ecd312a69d5617c50a4399fbd0c80e6973 (patch)
treed6e98e19a370033cb5037ba567fae31256572075 /main/unrar/makefile.patch
parentd97f040cb7356cc38f9581ebbdf460060d88999e (diff)
downloadaports-300b30ecd312a69d5617c50a4399fbd0c80e6973.tar.bz2
aports-300b30ecd312a69d5617c50a4399fbd0c80e6973.tar.xz
main/unrar: upgrade to 5.3.11
Also patch the makefile to make it respect our CXXFLAGS and LDFLAGS environment variables.
Diffstat (limited to 'main/unrar/makefile.patch')
-rw-r--r--main/unrar/makefile.patch26
1 files changed, 26 insertions, 0 deletions
diff --git a/main/unrar/makefile.patch b/main/unrar/makefile.patch
new file mode 100644
index 0000000000..37505f4e98
--- /dev/null
+++ b/main/unrar/makefile.patch
@@ -0,0 +1,26 @@
+diff -upr unrar.orig/makefile unrar/makefile
+--- unrar.orig/makefile 2016-02-10 11:07:37.891117505 +0100
++++ unrar/makefile 2016-02-10 11:08:35.014309799 +0100
+@@ -3,11 +3,11 @@
+
+ # Linux using GCC
+ CXX=g++
+-CXXFLAGS=-O2
++CXXFLAGS?=-O2
+ LIBFLAGS=-fPIC
+ DEFINES=-D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -DRAR_SMP
+ STRIP=strip
+-LDFLAGS=-pthread
++LDFLAGS+=-pthread
+ DESTDIR=/usr
+
+ # Linux using LCC
+@@ -118,7 +118,7 @@ uninstall: uninstall-unrar
+ clean:
+ @rm -f *.o *.bak *~
+
+-unrar: clean $(OBJECTS) $(UNRAR_OBJ)
++unrar: $(OBJECTS) $(UNRAR_OBJ)
+ @rm -f unrar
+ $(LINK) -o unrar $(LDFLAGS) $(OBJECTS) $(UNRAR_OBJ) $(LIBS)
+ $(STRIP) unrar