mirror of
https://github.com/motioneye-project/motioneyeos.git
synced 2025-08-01 15:37:44 +00:00
package/tiff/tiff.mk: Change to Autotools.in format
Bounce tiff into Autotools.in format. Did not use install to target as this puts loads of executables into TARGET. So just copied tiff.so instead. Signed-off-by: Daniel Laird <daniel.j.laird@nxp.com>
This commit is contained in:
parent
931445daf5
commit
9844a8ea2c
@ -4,85 +4,23 @@
|
|||||||
#
|
#
|
||||||
#############################################################
|
#############################################################
|
||||||
TIFF_VERSION:=3.8.2
|
TIFF_VERSION:=3.8.2
|
||||||
TIFF_SOURCE:=tiff_$(TIFF_VERSION).orig.tar.gz
|
TIFF_SITE:=ftp://ftp.remotesensing.org/pub/libtiff
|
||||||
TIFF_SOURCE2:=tiff-$(TIFF_VERSION).tar.gz
|
TIFF_SOURCE:=tiff-$(TIFF_VERSION).tar.gz
|
||||||
TIFF_SITE:=$(BR2_DEBIAN_MIRROR)/debian/pool/main/t/tiff/
|
TIFF_LIBTOOL_PATCH = NO
|
||||||
TIFF_DIR:=$(BUILD_DIR)/tiff-$(TIFF_VERSION)
|
TIFF_INSTALL_STAGING = YES
|
||||||
TIFF_CAT:=$(ZCAT)
|
TIFF_INSTALL_TARGET = NO
|
||||||
|
TIFF_CONF_OPT = \
|
||||||
|
--enable-shared \
|
||||||
|
--enable-static \
|
||||||
|
--disable-cxx \
|
||||||
|
--without-x \
|
||||||
|
|
||||||
$(DL_DIR)/$(TIFF_SOURCE):
|
TIFF_DEPENDENCIES = uclibc pkgconfig zlib jpeg
|
||||||
$(WGET) -P $(DL_DIR) $(TIFF_SITE)/$(TIFF_SOURCE)
|
|
||||||
|
|
||||||
tiff-source: $(DL_DIR)/$(TIFF_SOURCE)
|
$(eval $(call AUTOTARGETS,package,tiff))
|
||||||
|
|
||||||
$(TIFF_DIR)/.unpacked: $(DL_DIR)/$(TIFF_SOURCE)
|
$(TIFF_HOOK_POST_BUILD):
|
||||||
$(TIFF_CAT) $(DL_DIR)/$(TIFF_SOURCE) | tar -C $(BUILD_DIR) $(TAR_OPTIONS) -
|
-cp -a $(TIFF_DIR)/libtiff/.libs/libtiff.so* $(TARGET_DIR)/usr/lib/
|
||||||
$(TIFF_CAT) $(TIFF_DIR)/$(TIFF_SOURCE2) | tar -C $(BUILD_DIR) $(TAR_OPTIONS) -
|
$(STRIPCMD) $(STRIP_STRIP_UNNEEDED) $(TARGET_DIR)/usr/lib/libtiff.so
|
||||||
toolchain/patch-kernel.sh $(TIFF_DIR) package/tiff/ tiff\*.patch
|
touch $@
|
||||||
$(CONFIG_UPDATE) $(TIFF_DIR)
|
|
||||||
$(CONFIG_UPDATE) $(TIFF_DIR)/config
|
|
||||||
touch $(TIFF_DIR)/.unpacked
|
|
||||||
|
|
||||||
$(TIFF_DIR)/.configured: $(TIFF_DIR)/.unpacked \
|
|
||||||
$(STAGING_DIR)/usr/lib/libjpeg.a $(STAGING_DIR)/usr/lib/libz.so
|
|
||||||
(cd $(TIFF_DIR); rm -rf config.cache; \
|
|
||||||
$(TARGET_CONFIGURE_OPTS) \
|
|
||||||
$(TARGET_CONFIGURE_ARGS) \
|
|
||||||
./configure \
|
|
||||||
--target=$(GNU_TARGET_NAME) \
|
|
||||||
--host=$(GNU_TARGET_NAME) \
|
|
||||||
--build=$(GNU_HOST_NAME) \
|
|
||||||
--prefix=/usr \
|
|
||||||
--exec-prefix=/usr \
|
|
||||||
--bindir=/usr/bin \
|
|
||||||
--sbindir=/usr/sbin \
|
|
||||||
--libdir=/usr/lib \
|
|
||||||
--libexecdir=/usr/lib \
|
|
||||||
--sysconfdir=/etc \
|
|
||||||
--datadir=/usr/share \
|
|
||||||
--localstatedir=/var \
|
|
||||||
--includedir=/usr/include \
|
|
||||||
--mandir=/usr/man \
|
|
||||||
--infodir=/usr/info \
|
|
||||||
--enable-shared \
|
|
||||||
--enable-static \
|
|
||||||
--disable-cxx \
|
|
||||||
--without-x \
|
|
||||||
--with-jpeg-include-dir=$(STAGING_DIR)/usr/include \
|
|
||||||
--with-jpeg-lib-dir=$(STAGING_DIR)/lib \
|
|
||||||
--with-zlib-include-dir=$(STAGING_DIR)/usr/include \
|
|
||||||
--with-zlib-lib-dir=$(STAGING_DIR)/lib \
|
|
||||||
)
|
|
||||||
touch $(TIFF_DIR)/.configured
|
|
||||||
|
|
||||||
$(TIFF_DIR)/libtiff/.libs/libtiff.a: $(TIFF_DIR)/.configured
|
|
||||||
$(MAKE) -C $(TIFF_DIR)
|
|
||||||
touch -c $@
|
|
||||||
|
|
||||||
$(STAGING_DIR)/usr/lib/libtiff.so: $(TIFF_DIR)/libtiff/.libs/libtiff.a
|
|
||||||
$(MAKE) DESTDIR=$(STAGING_DIR) -C $(TIFF_DIR) install
|
|
||||||
$(SED) "s,^libdir=.*,libdir=\'$(STAGING_DIR)/usr/lib\',g" $(STAGING_DIR)/usr/lib/libtiff.la
|
|
||||||
touch -c $@
|
|
||||||
|
|
||||||
$(TARGET_DIR)/usr/lib/libtiff.so: $(STAGING_DIR)/usr/lib/libtiff.so
|
|
||||||
cp -dpf $(STAGING_DIR)/usr/lib/libtiff.so* $(TARGET_DIR)/usr/lib/
|
|
||||||
-$(STRIPCMD) $(STRIP_STRIP_UNNEEDED) $@
|
|
||||||
|
|
||||||
tiff: uclibc $(TARGET_DIR)/usr/lib/libtiff.so
|
|
||||||
|
|
||||||
tiff-clean:
|
|
||||||
-rm -f $(TARGET_DIR)/usr/lib/libtiff.so*
|
|
||||||
-$(MAKE) -C $(TIFF_DIR) DESTDIR=$(STAGING_DIR) uninstall
|
|
||||||
-$(MAKE) -C $(TIFF_DIR) clean
|
|
||||||
|
|
||||||
tiff-dirclean:
|
|
||||||
rm -rf $(TIFF_DIR)
|
|
||||||
|
|
||||||
#############################################################
|
|
||||||
#
|
|
||||||
# Toplevel Makefile options
|
|
||||||
#
|
|
||||||
#############################################################
|
|
||||||
ifeq ($(strip $(BR2_PACKAGE_TIFF)),y)
|
|
||||||
TARGETS+=tiff
|
|
||||||
endif
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user