Skip to contentSkip to conversation

unrar: new package

PATCH New Gustavo Zacarias 2 participants 2 messages Jan 6, 2016 – Feb 2, 2016

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 unrar: new package

---
 package/Config.in        |  1 +
 package/unrar/Config.in  | 13 +++++++++++++
 package/unrar/unrar.hash |  2 ++
 package/unrar/unrar.mk   | 22 ++++++++++++++++++++++
 4 files changed, 38 insertions(+)
 create mode 100644 package/unrar/Config.in
 create mode 100644 package/unrar/unrar.hash
 create mode 100644 package/unrar/unrar.mk
package/Config.in +1 -0
index 5f331d7..dba9ef3 100644
@@ -56,6 +56,7 @@ endif
 	source "package/lz4/Config.in"
 	source "package/lzip/Config.in"
 	source "package/lzop/Config.in"
+	source "package/unrar/Config.in"
 if BR2_PACKAGE_BUSYBOX_SHOW_OTHERS
 	source "package/unzip/Config.in"
 endif
package/unrar/Config.in new file +13 -0
new file mode 100644
index 0000000..29696c3
@@ -0,0 +1,13 @@
+config BR2_PACKAGE_UNRAR
+	bool "unrar"
+	depends on BR2_INSTALL_LIBSTDCPP
+	depends on BR2_TOOLCHAIN_HAS_THREADS
+	depends on BR2_USE_WCHAR
+	help
+	  RAR file uncompressor.
+
+	  http://www.rarlab.com/rar_add.htm
+
+comment "unrar needs a toolchain w/ C++, wchar, threads"
+	depends on !BR2_USE_WCHAR || !BR2_INSTALL_LIBSTDCPP \
+		|| !BR2_TOOLCHAIN_HAS_THREADS
package/unrar/unrar.hash new file +2 -0
new file mode 100644
index 0000000..4490d70
@@ -0,0 +1,2 @@
+# Locally computed:
+sha256	ff593728aed0ac865908b8ea52cff449a4c298f095db2f3d27438ffbc3e35d5b	unrarsrc-5.3.9.tar.gz
package/unrar/unrar.mk new file +22 -0
new file mode 100644
index 0000000..d0112e9
@@ -0,0 +1,22 @@
+################################################################################
+#
+# unrar
+#
+################################################################################
+
+UNRAR_VERSION = 5.3.9
+UNRAR_SOURCE = unrarsrc-$(UNRAR_VERSION).tar.gz
+UNRAR_SITE = http://www.rarlab.com/rar
+UNRAR_LICENSE = unrar
+UNRAR_LICENSE_FILES = license.txt
+
+define UNRAR_BUILD_CMDS
+	$(MAKE) CXX="$(TARGET_CXX)" STRIP="/bin/true" \
+		CXXFLAGS="$(TARGET_CXXFLAGS) -pthread" -C $(@D)
+endef
+
+define UNRAR_INSTALL_TARGET_CMDS
+	$(MAKE) -C $(@D) DESTDIR=$(TARGET_DIR)/usr install
+endef
+
+$(eval $(generic-package))
Signature · 1 line
2.4.10
#1 lore raw

PATCH 1/1 unrar: new package

Quoted 63 lines
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line

"Gustavo" == Gustavo Zacarias <[email protected]> writes:

---
 package/Config.in        |  1 +
 package/unrar/Config.in  | 13 +++++++++++++
 package/unrar/unrar.hash |  2 ++
 package/unrar/unrar.mk   | 22 ++++++++++++++++++++++
 4 files changed, 38 insertions(+)
 create mode 100644 package/unrar/Config.in
 create mode 100644 package/unrar/unrar.hash
 create mode 100644 package/unrar/unrar.mk
package/Config.in +1 -0
index 5f331d7..dba9ef3 100644
@@ -56,6 +56,7 @@ endif
 	source "package/lz4/Config.in"
 	source "package/lzip/Config.in"
 	source "package/lzop/Config.in"
+	source "package/unrar/Config.in"
 if BR2_PACKAGE_BUSYBOX_SHOW_OTHERS
 	source "package/unzip/Config.in"
 endif
package/unrar/Config.in new file +13 -0
new file mode 100644
index 0000000..29696c3
@@ -0,0 +1,13 @@
+config BR2_PACKAGE_UNRAR
+	bool "unrar"
+	depends on BR2_INSTALL_LIBSTDCPP
+	depends on BR2_TOOLCHAIN_HAS_THREADS
+	depends on BR2_USE_WCHAR
+	help
+	  RAR file uncompressor.
+
+	  http://www.rarlab.com/rar_add.htm
+
+comment "unrar needs a toolchain w/ C++, wchar, threads"
+	depends on !BR2_USE_WCHAR || !BR2_INSTALL_LIBSTDCPP \
+		|| !BR2_TOOLCHAIN_HAS_THREADS
package/unrar/unrar.hash new file +2 -0
new file mode 100644
index 0000000..4490d70
@@ -0,0 +1,2 @@
+# Locally computed:
+sha256	ff593728aed0ac865908b8ea52cff449a4c298f095db2f3d27438ffbc3e35d5b	unrarsrc-5.3.9.tar.gz
package/unrar/unrar.mk new file +5 -0
new file mode 100644
index 0000000..d0112e9
@@ -0,0 +1,22 @@
+################################################################################
+#
+# unrar
+#
+################################################################################

package/unrar/unrar.mk line 15

Quoted 10 lines
package/unrar/unrar.mk new file +10 -0
+
+UNRAR_VERSION = 5.3.9
+UNRAR_SOURCE = unrarsrc-$(UNRAR_VERSION).tar.gz
+UNRAR_SITE = http://www.rarlab.com/rar
+UNRAR_LICENSE = unrar
+UNRAR_LICENSE_FILES = license.txt
+
+define UNRAR_BUILD_CMDS
+	$(MAKE) CXX="$(TARGET_CXX)" STRIP="/bin/true" \
+		CXXFLAGS="$(TARGET_CXXFLAGS) -pthread" -C $(@D)

The makefile also uses LDFLAGS but you didn't pass TARGET_LDFLAGS.

Committed with that fixed, thanks.

Signature · 1 line
Bye, Peter Korsgaard