Browse Source

Merge pull request #8487 from neheb/patch-1

unrar: Update to 5.7.3
lilik-openwrt-22.03
Rosen Penev 6 years ago
committed by GitHub
parent
commit
af70c939aa
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 21 additions and 13 deletions
  1. +8
    -5
      utils/unrar/Makefile
  2. +13
    -8
      utils/unrar/patches/100-makefile_fixes.patch

+ 8
- 5
utils/unrar/Makefile View File

@ -6,12 +6,12 @@
include $(TOPDIR)/rules.mk include $(TOPDIR)/rules.mk
PKG_NAME:=unrar PKG_NAME:=unrar
PKG_VERSION:=5.6.8
PKG_VERSION:=5.7.3
PKG_RELEASE:=1 PKG_RELEASE:=1
PKG_SOURCE:=unrarsrc-$(PKG_VERSION).tar.gz PKG_SOURCE:=unrarsrc-$(PKG_VERSION).tar.gz
PKG_SOURCE_URL:=https://www.rarlab.com/rar PKG_SOURCE_URL:=https://www.rarlab.com/rar
PKG_HASH:=a4cc0ac14a354827751912d2af4a0a09e2c2129df5766576fa7e151791dd3dff
PKG_HASH:=40e856b78374f258d8a1f5f02c02f828c5392a0118c9300fd169a300b520a444
PKG_MAINTAINER:=Álvaro Fernández Rojas <noltari@gmail.com>, \ PKG_MAINTAINER:=Álvaro Fernández Rojas <noltari@gmail.com>, \
Ted Hess <thess@kitschensync.net> Ted Hess <thess@kitschensync.net>
@ -25,6 +25,12 @@ PKG_INSTALL:=1
include $(INCLUDE_DIR)/uclibc++.mk include $(INCLUDE_DIR)/uclibc++.mk
include $(INCLUDE_DIR)/package.mk include $(INCLUDE_DIR)/package.mk
ifeq ($(CONFIG_USE_UCLIBCXX),y)
TARGET_LDFLAGS +=-nodefaultlibs
endif
TARGET_CXXFLAGS +=-fno-rtti -flto
TARGET_LDFLAGS +=$(FPIC) -Wl,--gc-sections
define Package/unrar/Default define Package/unrar/Default
TITLE:=UnRAR TITLE:=UnRAR
SUBMENU:=Compression SUBMENU:=Compression
@ -58,9 +64,6 @@ define Package/libunrar/description
archives archives
endef endef
MAKE_FLAGS += \
LDFLAGS="$(TARGET_LDFLAGS) -lpthread"
ifeq ($(BUILD_VARIANT),lib) ifeq ($(BUILD_VARIANT),lib)
define Build/Compile define Build/Compile
$(call Build/Compile/Default,lib) $(call Build/Compile/Default,lib)


+ 13
- 8
utils/unrar/patches/100-makefile_fixes.patch View File

@ -1,22 +1,27 @@
--- a/makefile --- a/makefile
+++ b/makefile +++ b/makefile
@@ -2,13 +2,13 @@
@@ -2,14 +2,14 @@
# Makefile for UNIX - unrar # Makefile for UNIX - unrar
# Linux using GCC # Linux using GCC
-CXX=c++ -CXX=c++
-CXXFLAGS=-O2 -Wno-logical-op-parentheses -Wno-switch -Wno-dangling-else -CXXFLAGS=-O2 -Wno-logical-op-parentheses -Wno-switch -Wno-dangling-else
+#CXX=c++
+#CXXFLAGS=-O2 -Wno-logical-op-parentheses -Wno-switch -Wno-dangling-else
LIBFLAGS=-fPIC
-LIBFLAGS=-fPIC
+CXX?=c++
+CXXFLAGS?=-O2 -Wno-logical-op-parentheses -Wno-switch -Wno-dangling-else
+LIBFLAGS?=-fPIC
DEFINES=-D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -DRAR_SMP DEFINES=-D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -DRAR_SMP
STRIP=strip
AR=ar
-STRIP=strip
-AR=ar
-LDFLAGS=-pthread -LDFLAGS=-pthread
+LDFLAGS=-lpthread
DESTDIR=/usr
-DESTDIR=/usr
+STRIP?=strip
+AR?=ar
+LDFLAGS?=-lpthread
+DESTDIR?=/usr
# Linux using LCC # Linux using LCC
#CXX=lcc
@@ -166,7 +166,7 @@ uninstall-unrar: @@ -166,7 +166,7 @@ uninstall-unrar:
rm -f $(DESTDIR)/bin/unrar rm -f $(DESTDIR)/bin/unrar


Loading…
Cancel
Save