[1/1] package/jbig2dec: new package.
diff mbox series

Message ID 20190913112413.31969-1-raphael.melotte@essensium.com
State New
Headers show
Series
  • [1/1] package/jbig2dec: new package.
Related show

Commit Message

Raphaël Mélotte Sept. 13, 2019, 11:24 a.m. UTC
From: Raphaël Mélotte <raphael.melotte@essensium.com>

jbig2dec is a decoder implementation of the JBIG2 image compression format.

Signed-off-by: Raphaël Mélotte <raphael.melotte@essensium.com>
---
 DEVELOPERS                     |  3 +++
 package/Config.in              |  1 +
 package/jbig2dec/Config.in     |  7 +++++++
 package/jbig2dec/jbig2dec.hash |  7 +++++++
 package/jbig2dec/jbig2dec.mk   | 13 +++++++++++++
 5 files changed, 31 insertions(+)
 create mode 100644 package/jbig2dec/Config.in
 create mode 100644 package/jbig2dec/jbig2dec.hash
 create mode 100644 package/jbig2dec/jbig2dec.mk

Comments

Thomas Huth Sept. 13, 2019, 12:04 p.m. UTC | #1
Am Fri, 13 Sep 2019 13:24:13 +0200
schrieb raphael.melotte@essensium.com:

> From: Raphaël Mélotte <raphael.melotte@essensium.com>
> 
> jbig2dec is a decoder implementation of the JBIG2 image compression
> format.
> 
> Signed-off-by: Raphaël Mélotte <raphael.melotte@essensium.com>
> ---
>  DEVELOPERS                     |  3 +++
>  package/Config.in              |  1 +
>  package/jbig2dec/Config.in     |  7 +++++++
>  package/jbig2dec/jbig2dec.hash |  7 +++++++
>  package/jbig2dec/jbig2dec.mk   | 13 +++++++++++++
>  5 files changed, 31 insertions(+)
>  create mode 100644 package/jbig2dec/Config.in
>  create mode 100644 package/jbig2dec/jbig2dec.hash
>  create mode 100644 package/jbig2dec/jbig2dec.mk
> 
> diff --git a/DEVELOPERS b/DEVELOPERS
> index 7604cfe2b7..5f1e37a063 100644
> --- a/DEVELOPERS
> +++ b/DEVELOPERS
> @@ -1928,6 +1928,9 @@ F:	package/ustream-ssl/
>  N:	Refik Tuzakli <tuzakli.refik@gmail.com>
>  F:	package/paho-mqtt-cpp/
>  
> +N:	Raphaël Mélotte <raphael.melotte@essensium.com>
> +F:	package/jbig2dec/
> +
>  N:	Rémi Rérolle <remi.rerolle@gmail.com>
>  F:	package/libfreeimage/
>  
> diff --git a/package/Config.in b/package/Config.in
> index 7d915ea4d7..b2f315ae69 100644
> --- a/package/Config.in
> +++ b/package/Config.in
> @@ -1306,6 +1306,7 @@ menu "Graphics"
>  	source "package/intel-mediasdk/Config.in"
>  	source "package/irrlicht/Config.in"
>  	source "package/jasper/Config.in"
> +	source "package/jbig2dec/Config.in"
>  	source "package/jpeg/Config.in"
>  	source "package/kmsxx/Config.in"
>  	source "package/lcms2/Config.in"
> diff --git a/package/jbig2dec/Config.in b/package/jbig2dec/Config.in
> new file mode 100644
> index 0000000000..d1440dca3d
> --- /dev/null
> +++ b/package/jbig2dec/Config.in
> @@ -0,0 +1,7 @@
> +config BR2_PACKAGE_JBIG2DEC
> +	bool "jbig2dec"
> +	help
> +	  jbig2dec is a decoder implementation of the JBIG2
> +	  image compression format.
> +
> +	  https://jbig2dec.com/
> diff --git a/package/jbig2dec/jbig2dec.hash
> b/package/jbig2dec/jbig2dec.hash new file mode 100644
> index 0000000000..eb2b674443
> --- /dev/null
> +++ b/package/jbig2dec/jbig2dec.hash
> @@ -0,0 +1,7 @@
> +#
> https://github.com/ArtifexSoftware/ghostpdl-downloads/releases/download/gs927/MD5SUMS
> +# and SHA512SUMS are missing the hashes for this file. +# Locally
> computed: +sha256
> a4f6bf15d217e7816aa61b92971597c801e81f0a63f9fe1daee60fb88e0f0602
> jbig2dec-0.16.tar.gz + +# Hash for license files:
> +sha256
> 1bf5258afe453934484fd0cea97508b72301633a6a78b0ae8a9ee44ac78f26d9
> LICENSE diff --git a/package/jbig2dec/jbig2dec.mk
> b/package/jbig2dec/jbig2dec.mk new file mode 100644 index
> 0000000000..5ac5b87a72 --- /dev/null
> +++ b/package/jbig2dec/jbig2dec.mk
> @@ -0,0 +1,13 @@
> +################################################################################
> +#
> +# jbig2dec
> +#
> +################################################################################
> +
> +JBIG2DEC_VERSION = 0.16
> +JBIG2DEC_SITE =
> https://github.com/ArtifexSoftware/ghostpdl-downloads/releases/download/gs927

For packages located on github, you better use the github helper
function, see:

 https://buildroot.org/downloads/manual/manual.html#github-download-url

 Thomas
Baruch Siach Sept. 13, 2019, 12:12 p.m. UTC | #2
Hi Thomas,

On Fri, Sep 13 2019, Thomas Huth wrote:
>> +JBIG2DEC_VERSION = 0.16
>> +JBIG2DEC_SITE =
>> https://github.com/ArtifexSoftware/ghostpdl-downloads/releases/download/gs927
>
> For packages located on github, you better use the github helper
> function, see:
>
>  https://buildroot.org/downloads/manual/manual.html#github-download-url

This is true only when upstream does not provide an official
tarball. See the first sentence in the paragraph that this URL refers
to:

  Packages on GitHub often don’t have a download area with release tarballs.

Tarballs are preferred when available.

baruch

--
     http://baruch.siach.name/blog/                  ~. .~   Tk Open Systems
=}------------------------------------------------ooO--U--Ooo------------{=
   - baruch@tkos.co.il - tel: +972.52.368.4656, http://www.tkos.co.il -

Patch
diff mbox series

diff --git a/DEVELOPERS b/DEVELOPERS
index 7604cfe2b7..5f1e37a063 100644
--- a/DEVELOPERS
+++ b/DEVELOPERS
@@ -1928,6 +1928,9 @@  F:	package/ustream-ssl/
 N:	Refik Tuzakli <tuzakli.refik@gmail.com>
 F:	package/paho-mqtt-cpp/
 
+N:	Raphaël Mélotte <raphael.melotte@essensium.com>
+F:	package/jbig2dec/
+
 N:	Rémi Rérolle <remi.rerolle@gmail.com>
 F:	package/libfreeimage/
 
diff --git a/package/Config.in b/package/Config.in
index 7d915ea4d7..b2f315ae69 100644
--- a/package/Config.in
+++ b/package/Config.in
@@ -1306,6 +1306,7 @@  menu "Graphics"
 	source "package/intel-mediasdk/Config.in"
 	source "package/irrlicht/Config.in"
 	source "package/jasper/Config.in"
+	source "package/jbig2dec/Config.in"
 	source "package/jpeg/Config.in"
 	source "package/kmsxx/Config.in"
 	source "package/lcms2/Config.in"
diff --git a/package/jbig2dec/Config.in b/package/jbig2dec/Config.in
new file mode 100644
index 0000000000..d1440dca3d
--- /dev/null
+++ b/package/jbig2dec/Config.in
@@ -0,0 +1,7 @@ 
+config BR2_PACKAGE_JBIG2DEC
+	bool "jbig2dec"
+	help
+	  jbig2dec is a decoder implementation of the JBIG2
+	  image compression format.
+
+	  https://jbig2dec.com/
diff --git a/package/jbig2dec/jbig2dec.hash b/package/jbig2dec/jbig2dec.hash
new file mode 100644
index 0000000000..eb2b674443
--- /dev/null
+++ b/package/jbig2dec/jbig2dec.hash
@@ -0,0 +1,7 @@ 
+# https://github.com/ArtifexSoftware/ghostpdl-downloads/releases/download/gs927/MD5SUMS
+# and SHA512SUMS are missing the hashes for this file.
+# Locally computed:
+sha256 a4f6bf15d217e7816aa61b92971597c801e81f0a63f9fe1daee60fb88e0f0602  jbig2dec-0.16.tar.gz
+
+# Hash for license files:
+sha256 1bf5258afe453934484fd0cea97508b72301633a6a78b0ae8a9ee44ac78f26d9  LICENSE
diff --git a/package/jbig2dec/jbig2dec.mk b/package/jbig2dec/jbig2dec.mk
new file mode 100644
index 0000000000..5ac5b87a72
--- /dev/null
+++ b/package/jbig2dec/jbig2dec.mk
@@ -0,0 +1,13 @@ 
+################################################################################
+#
+# jbig2dec
+#
+################################################################################
+
+JBIG2DEC_VERSION = 0.16
+JBIG2DEC_SITE = https://github.com/ArtifexSoftware/ghostpdl-downloads/releases/download/gs927
+JBIG2DEC_LICENSE = AGPL-3.0+
+JBIG2DEC_LICENSE_FILES = LICENSE
+JBIG2DEC_INSTALL_STAGING = YES
+
+$(eval $(autotools-package))