mirror of
https://github.com/motioneye-project/motioneyeos.git
synced 2025-07-29 22:26:31 +00:00
package/tvheadend: reduce target binary size by using pngquant
Support was added by this commit:
8bf3932539
Signed-off-by: Bernd Kuhls <bernd.kuhls@t-online.de>
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
This commit is contained in:
parent
f070403948
commit
efd6d5fd24
@ -11,6 +11,7 @@ TVHEADEND_LICENSE_FILES = LICENSE.md
|
|||||||
TVHEADEND_DEPENDENCIES = \
|
TVHEADEND_DEPENDENCIES = \
|
||||||
host-gettext \
|
host-gettext \
|
||||||
host-pkgconf \
|
host-pkgconf \
|
||||||
|
host-pngquant \
|
||||||
$(if $(BR2_PACKAGE_PYTHON3),host-python3,host-python) \
|
$(if $(BR2_PACKAGE_PYTHON3),host-python3,host-python) \
|
||||||
openssl
|
openssl
|
||||||
|
|
||||||
@ -81,12 +82,19 @@ define TVHEADEND_CONFIGURE_CMDS
|
|||||||
--python="$(HOST_DIR)/usr/bin/python" \
|
--python="$(HOST_DIR)/usr/bin/python" \
|
||||||
--enable-dvbscan \
|
--enable-dvbscan \
|
||||||
--enable-bundle \
|
--enable-bundle \
|
||||||
|
--enable-pngquant \
|
||||||
--disable-ffmpeg_static \
|
--disable-ffmpeg_static \
|
||||||
--disable-hdhomerun_static \
|
--disable-hdhomerun_static \
|
||||||
$(TVHEADEND_CONF_OPTS) \
|
$(TVHEADEND_CONF_OPTS) \
|
||||||
)
|
)
|
||||||
endef
|
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
|
define TVHEADEND_BUILD_CMDS
|
||||||
$(TARGET_MAKE_ENV) $(MAKE) -C $(@D)
|
$(TARGET_MAKE_ENV) $(MAKE) -C $(@D)
|
||||||
endef
|
endef
|
||||||
|
Loading…
x
Reference in New Issue
Block a user