Skip to contentSkip to conversation

package/tvheadend: bump version

PATCH New Bernd Kuhls 2 participants 6 messages Apr 8, 2017 – Apr 9, 2017

lore
Share & tools
lore
#0 lore raw

PATCH 1/3 package/tvheadend: bump version

---
 package/tvheadend/tvheadend.hash | 3 ++-
 package/tvheadend/tvheadend.mk   | 2 +-
 2 files changed, 3 insertions(+), 2 deletions(-)
package/tvheadend/tvheadend.hash +2 -1
index afd651003..fe99e4553 100644
@@ -1,2 +1,3 @@
 # Locally computed
-sha256 e58f5b2fded91fa085961402db26b54d5338c70e5bebdb0f34d55beb4d5551b4  tvheadend-b142383a7cf51180e00ebb1c13205c14d24338dc.tar.gz
+sha256 94efc13b6c80c204dc4e3cf2ac79632f3c2cafe9cad4ee8948a71be6e4569a16  tvheadend-5cbaac172b4997fbf89667d79ac6e03b46460060.tar.gz
+
package/tvheadend/tvheadend.mk +1 -1
index b82ebc914..c2981ff22 100644
@@ -4,7 +4,7 @@
 #
 ################################################################################
 
-TVHEADEND_VERSION = b142383a7cf51180e00ebb1c13205c14d24338dc
+TVHEADEND_VERSION = 5cbaac172b4997fbf89667d79ac6e03b46460060
 TVHEADEND_SITE = $(call github,tvheadend,tvheadend,$(TVHEADEND_VERSION))
 TVHEADEND_LICENSE = GPL-3.0+
 TVHEADEND_LICENSE_FILES = LICENSE.md
Signature · 1 line
2.11.0
#1 lore raw

PATCH 2/3 package/pngquant: new package

The host package will be needed by tvheadend.

---
 DEVELOPERS                     |  1 +
 package/Config.in              |  1 +
 package/pngquant/Config.in     |  9 +++++++
 package/pngquant/pngquant.hash |  4 ++++
 package/pngquant/pngquant.mk   | 53 ++++++++++++++++++++++++++++++++++++++++++
 5 files changed, 68 insertions(+)
 create mode 100644 package/pngquant/Config.in
 create mode 100644 package/pngquant/pngquant.hash
 create mode 100644 package/pngquant/pngquant.mk
DEVELOPERS +1 -0
index c00417ce6..8067c316a 100644
@@ -251,6 +251,7 @@ F:	package/perl-timedate/
 F:	package/perl-uri/
 F:	package/perl-www-robotrules/
 F:	package/pixman/
+F:	package/pngquant/
 F:	package/pound/
 F:	package/pure-ftpd/
 F:	package/python-couchdb/
package/Config.in +1 -0
index 7641fc9de..35305d798 100644
@@ -246,6 +246,7 @@ comment "Graphic applications"
 	source "package/kmscube/Config.in"
 	source "package/libva-utils/Config.in"
 	source "package/mesa3d-demos/Config.in"
+	source "package/pngquant/Config.in"
 	source "package/qt5cinex/Config.in"
 	source "package/rrdtool/Config.in"
 	source "package/tesseract-ocr/Config.in"
package/pngquant/Config.in new file +9 -0
new file mode 100644
index 000000000..c63f0f9d0
@@ -0,0 +1,9 @@
+config BR2_PACKAGE_PNGQUANT
+	bool "pngquant"
+	select BR2_PACKAGE_LIBPNG
+	select BR2_PACKAGE_ZLIB
+	help
+	  Lossy PNG compressor ? pngquant command and libimagequant
+	  library
+
+	  https://pngquant.org
package/pngquant/pngquant.hash new file +4 -0
new file mode 100644
index 000000000..c9f449eb4
@@ -0,0 +1,4 @@
+# From https://pngquant.org/releases.html
+sha1 08ed436e21429d4983bee0fe069681c458f95209  pngquant-2.9.1-src.tar.gz
+# Locally computed
+sha256 ac2138207ef40acd4e5fdae18798139a9d75dae4f1d0837aea918a2a8c433481  pngquant-2.9.1-src.tar.gz
package/pngquant/pngquant.mk new file +53 -0

53 lines not on this page · raw message

Signature · 1 line
2.11.0
#2 lore raw

PATCH 2/3 package/pngquant: new package

Hello,

package/pngquant/pngquant.mk line 22

Quoted 4 lines · Bernd Kuhls
package/pngquant/pngquant.mk new file +4 -0
+define HOST_PNGQUANT_CONFIGURE_CMDS
+	(cd $(@D) && \
+		$(HOST_CONFIGURE_OPTS) \
+		./configure --prefix=/usr \

--prefix=/usr is not correct for host packages, it should be --prefix=$(HOST_DIR)/usr.

package/pngquant/pngquant.mk line 45

Quoted 2 lines
package/pngquant/pngquant.mk new file +2 -0
+define HOST_PNGQUANT_INSTALL_CMDS
+	$(HOST_MAKE_ENV) $(MAKE) PREFIX="$(HOST_DIR)/usr" -C $(@D) install

Then passing PREFIX= here becomes useless.

package/pngquant/pngquant.mk line 49

Quoted 2 lines
package/pngquant/pngquant.mk new file +2 -0
+define PNGQUANT_INSTALL_TARGET_CMDS
+	$(TARGET_MAKE_ENV) $(MAKE) PREFIX="$(TARGET_DIR)/usr" -C $(@D) install

And here passing DESTDIR=$(TARGET_DIR) makes more sense, since --prefix=/usr is passed at configuration time.

I've fixed this, and grouped together the host configure/build/install commands, and then applied.

Thanks!

Thomas

Signature · 3 lines
Thomas Petazzoni, CTO, Free Electrons
Embedded Linux and Kernel engineering
http://free-electrons.com
#3 lore raw

PATCH 3/3 package/tvheadend: reduce target binary size by using pngquant

In reply to Bernd Kuhls

Support was added by this commit:
https://github.com/tvheadend/tvheadend/commit/8bf3932539ceadb3bfc1c9453f11175f15aefad2

---
 package/tvheadend/tvheadend.mk | 8 ++++++++
 1 file changed, 8 insertions(+)
package/tvheadend/tvheadend.mk +8 -0
index c2981ff22..0336019bc 100644
@@ -11,6 +11,7 @@ TVHEADEND_LICENSE_FILES = LICENSE.md
 TVHEADEND_DEPENDENCIES = \
 	host-gettext \
 	host-pkgconf \
+	host-pngquant \
 	$(if $(BR2_PACKAGE_PYTHON3),host-python3,host-python) \
 	openssl
 
@@ -81,12 +82,19 @@ define TVHEADEND_CONFIGURE_CMDS
 			--python="$(HOST_DIR)/usr/bin/python"	\
 			--enable-dvbscan			\
 			--enable-bundle				\
+			--enable-pngquant			\
 			--disable-ffmpeg_static			\
 			--disable-hdhomerun_static		\
 			$(TVHEADEND_CONF_OPTS)			\
 	)
 endef
 
+define TVHEADEND_FIX_PNGQUANT_PATH
+	$(SED) "s%^pngquant_bin =.*%pngquant_bin = '$(HOST_DIR)/usr/bin/pngquant'%" \
+		$(@D)/support/mkbundle
+endef
+TVHEADEND_POST_CONFIGURE_HOOKS += TVHEADEND_FIX_PNGQUANT_PATH
+
 define TVHEADEND_BUILD_CMDS
 	$(TARGET_MAKE_ENV) $(MAKE) -C $(@D)
 endef
Signature · 1 line
2.11.0
#4 lore raw

PATCH 3/3 package/tvheadend: reduce target binary size by using pngquant

Hello,

Quoted 7 lines · Bernd Kuhls

Support was added by this commit:
https://github.com/tvheadend/tvheadend/commit/8bf3932539ceadb3bfc1c9453f11175f15aefad2

---
 package/tvheadend/tvheadend.mk | 8 ++++++++
 1 file changed, 8 insertions(+)

Applied to master, thanks.

Thomas

Signature · 3 lines
Thomas Petazzoni, CTO, Free Electrons
Embedded Linux, Kernel and Android engineering
http://free-electrons.com
#5 lore raw

PATCH 1/3 package/tvheadend: bump version

In reply to Bernd Kuhls

Hello,

Quoted 11 lines · Bernd Kuhls
---
 package/tvheadend/tvheadend.hash | 3 ++-
 package/tvheadend/tvheadend.mk   | 2 +-
 2 files changed, 3 insertions(+), 2 deletions(-)
package/tvheadend/tvheadend.hash +0 -0
index afd651003..fe99e4553 100644

package/tvheadend/tvheadend.hash line 3

Quoted 4 lines
package/tvheadend/tvheadend.hash +2 -1
@@ -1,2 +1,3 @@
 # Locally computed
-sha256 e58f5b2fded91fa085961402db26b54d5338c70e5bebdb0f34d55beb4d5551b4  tvheadend-b142383a7cf51180e00ebb1c13205c14d24338dc.tar.gz
+sha256 94efc13b6c80c204dc4e3cf2ac79632f3c2cafe9cad4ee8948a71be6e4569a16  tvheadend-5cbaac172b4997fbf89667d79ac6e03b46460060.tar.gz
+

This empty new line at the end of the file was not needed, so I've removed it and applied. Thanks!

Thomas

Signature · 3 lines
Thomas Petazzoni, CTO, Free Electrons
Embedded Linux and Kernel engineering
http://free-electrons.com