[vlc-devel] [PATCH 1/2] contrib: add uchardet
sojulibra at gmail.com
sojulibra at gmail.com
Fri Oct 23 12:46:55 CEST 2020
From: Souju TANAKA <sojulibra at gmail.com>
---
contrib/src/uchardet/SHA512SUMS | 1 +
contrib/src/uchardet/rules.mak | 22 ++++++++++++++++++++++
2 files changed, 23 insertions(+)
create mode 100644 contrib/src/uchardet/SHA512SUMS
create mode 100644 contrib/src/uchardet/rules.mak
diff --git a/contrib/src/uchardet/SHA512SUMS b/contrib/src/uchardet/SHA512SUMS
new file mode 100644
index 0000000000..69d8044401
--- /dev/null
+++ b/contrib/src/uchardet/SHA512SUMS
@@ -0,0 +1 @@
+ddb7b63dd09c1d9acbe620d86217e583d9aa5340780ab4010ec9faa4fd331498859d5efa7829bf8847da89325accf8f7304b51d410210178fc1ffa6658064a6f uchardet-0.0.7.tar.xz
diff --git a/contrib/src/uchardet/rules.mak b/contrib/src/uchardet/rules.mak
new file mode 100644
index 0000000000..934f6a9fe3
--- /dev/null
+++ b/contrib/src/uchardet/rules.mak
@@ -0,0 +1,22 @@
+# uchardet
+UCHARDET_VERSION := 0.0.7
+UCHARDET_URL := https://www.freedesktop.org/software/uchardet/releases/uchardet-$(UCHARDET_VERSION).tar.xz
+
+PKGS += uchardet
+ifeq ($(call need_pkg,"uchardet"),)
+PKGS_FOUND += uchardet
+endif
+
+$(TARBALLS)/uchardet-$(UCHARDET_VERSION).tar.xz:
+ $(call download_pkg,$(UCHARDET_URL),uchardet)
+
+.sum-uchardet: uchardet-$(UCHARDET_VERSION).tar.xz
+
+uchardet: uchardet-$(UCHARDET_VERSION).tar.xz .sum-uchardet
+ $(UNPACK)
+ $(MOVE)
+
+.uchardet: uchardet
+ cd $< && $(HOSTVARS_PIC) $(CMAKE) .
+ cd $< && $(MAKE) install
+ touch $@
--
2.25.1
More information about the vlc-devel
mailing list