diff --git a/utils/unrar/Makefile b/utils/unrar/Makefile index 00e59ae868..2deb6d3b8a 100644 --- a/utils/unrar/Makefile +++ b/utils/unrar/Makefile @@ -6,12 +6,13 @@ include $(TOPDIR)/rules.mk PKG_NAME:=unrar -PKG_VERSION:=6.2.12 +PKG_VERSION:=7.0.7 PKG_RELEASE:=1 PKG_SOURCE:=unrarsrc-$(PKG_VERSION).tar.gz PKG_SOURCE_URL:=https://www.rarlab.com/rar -PKG_HASH:=a008b5f949bca9bb4ffa1bebbfc8b3c14b89df10a10354809b845232d5f582e5 +PKG_HASH:=da95829c7e66fe461c06eb4bea8145e58d88d76909432d0875cd1ff86669f728 + PKG_BUILD_DIR:=$(BUILD_DIR)/$(PKG_NAME)-$(PKG_VERSION)-$(BUILD_VARIANT)/unrar PKG_MAINTAINER:=Álvaro Fernández Rojas , \ diff --git a/utils/unrar/patches/100-makefile_fixes.patch b/utils/unrar/patches/100-makefile_fixes.patch index acd633759d..610379c8d7 100644 --- a/utils/unrar/patches/100-makefile_fixes.patch +++ b/utils/unrar/patches/100-makefile_fixes.patch @@ -5,10 +5,10 @@ # Linux using GCC -CXX=c++ --CXXFLAGS=-O2 -Wno-logical-op-parentheses -Wno-switch -Wno-dangling-else +-CXXFLAGS=-march=native -O2 -std=c++11 -Wno-logical-op-parentheses -Wno-switch -Wno-dangling-else -LIBFLAGS=-fPIC +CXX?=c++ -+CXXFLAGS?=-O2 -Wno-logical-op-parentheses -Wno-switch -Wno-dangling-else ++CXXFLAGS?=-march=native -O2 -std=c++11 -Wno-logical-op-parentheses -Wno-switch -Wno-dangling-else +LIBFLAGS?=-fPIC DEFINES=-D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -DRAR_SMP -STRIP=strip @@ -20,9 +20,9 @@ +LDFLAGS?=-lpthread +DESTDIR?=/usr - # Linux using LCC - #CXX=lcc -@@ -170,7 +170,7 @@ uninstall-unrar: + ########################## + +@@ -69,7 +69,7 @@ uninstall-unrar: rm -f $(DESTDIR)/bin/unrar install-lib: