mirror of
https://github.com/motioneye-project/motioneyeos.git
synced 2025-08-02 07:57:43 +00:00
tiff: fix prefer-static build by using default install
Replace hand-coded .so install with default install, plus tiff bins fixup to remove unwanted tools. Signed-off-by: Danomi Manchego <danomimanchego123@gmail.com> Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
This commit is contained in:
parent
339df19f7a
commit
66a2dcc058
@ -15,12 +15,34 @@ TIFF_CONF_OPT = \
|
|||||||
|
|
||||||
TIFF_DEPENDENCIES = host-pkgconf
|
TIFF_DEPENDENCIES = host-pkgconf
|
||||||
|
|
||||||
TIFF_TOOLS_LIST =
|
TIFF_TOOLS_TO_DELETE = \
|
||||||
ifeq ($(BR2_PACKAGE_TIFF_TIFF2PDF),y)
|
bmp2tiff \
|
||||||
TIFF_TOOLS_LIST += tiff2pdf
|
fax2ps \
|
||||||
|
fax2tiff \
|
||||||
|
gif2tiff \
|
||||||
|
pal2rgb \
|
||||||
|
ppm2tiff \
|
||||||
|
ras2tiff \
|
||||||
|
raw2tiff \
|
||||||
|
rgb2ycbcr \
|
||||||
|
thumbnail \
|
||||||
|
tiff2bw \
|
||||||
|
tiff2ps \
|
||||||
|
tiff2rgba \
|
||||||
|
tiffcmp \
|
||||||
|
tiffcrop \
|
||||||
|
tiffdither \
|
||||||
|
tiffdump \
|
||||||
|
tiffinfo \
|
||||||
|
tiffmedian \
|
||||||
|
tiffset \
|
||||||
|
tiffsplit \
|
||||||
|
|
||||||
|
ifeq ($(BR2_PACKAGE_TIFF_TIFF2PDF),)
|
||||||
|
TIFF_TOOLS_TO_DELETE += tiff2pdf
|
||||||
endif
|
endif
|
||||||
ifeq ($(BR2_PACKAGE_TIFF_TIFFCP),y)
|
ifeq ($(BR2_PACKAGE_TIFF_TIFFCP),)
|
||||||
TIFF_TOOLS_LIST += tiffcp
|
TIFF_TOOLS_TO_DELETE += tiffcp
|
||||||
endif
|
endif
|
||||||
|
|
||||||
ifneq ($(BR2_PACKAGE_TIFF_CCITT),y)
|
ifneq ($(BR2_PACKAGE_TIFF_CCITT),y)
|
||||||
@ -75,12 +97,10 @@ ifneq ($(BR2_PACKAGE_TIFF_JBIG),y)
|
|||||||
TIFF_CONF_OPT += --disable-jbig
|
TIFF_CONF_OPT += --disable-jbig
|
||||||
endif
|
endif
|
||||||
|
|
||||||
define TIFF_INSTALL_TARGET_CMDS
|
define TIFF_REMOVE_TOOLS_FIXUP
|
||||||
-cp -a $(@D)/libtiff/.libs/libtiff.so* $(TARGET_DIR)/usr/lib/
|
rm -f $(addprefix $(TARGET_DIR)/usr/bin/,$(TIFF_TOOLS_TO_DELETE))
|
||||||
for i in $(TIFF_TOOLS_LIST); \
|
|
||||||
do \
|
|
||||||
$(INSTALL) -m 755 -D $(@D)/tools/$$i $(TARGET_DIR)/usr/bin/$$i; \
|
|
||||||
done
|
|
||||||
endef
|
endef
|
||||||
|
|
||||||
|
TIFF_POST_INSTALL_TARGET_HOOKS += TIFF_REMOVE_TOOLS_FIXUP
|
||||||
|
|
||||||
$(eval $(autotools-package))
|
$(eval $(autotools-package))
|
||||||
|
Loading…
x
Reference in New Issue
Block a user