2007-01-11 08:27:37 +01:00
|
|
|
#############################################################
|
|
|
|
#
|
|
|
|
# tiff
|
|
|
|
#
|
|
|
|
#############################################################
|
2007-07-11 16:06:06 +02:00
|
|
|
TIFF_VERSION:=3.8.2
|
2007-08-05 14:21:11 +02:00
|
|
|
TIFF_SOURCE:=tiff_$(TIFF_VERSION).orig.tar.gz
|
2007-08-10 20:53:34 +02:00
|
|
|
TIFF_SOURCE2:=tiff-$(TIFF_VERSION).tar.gz
|
2007-12-27 13:00:12 +01:00
|
|
|
TIFF_SITE:=$(BR2_DEBIAN_MIRROR)/debian/pool/main/t/tiff/
|
2007-07-11 16:06:06 +02:00
|
|
|
TIFF_DIR:=$(BUILD_DIR)/tiff-$(TIFF_VERSION)
|
2007-01-11 08:27:37 +01:00
|
|
|
TIFF_CAT:=$(ZCAT)
|
|
|
|
|
|
|
|
$(DL_DIR)/$(TIFF_SOURCE):
|
|
|
|
$(WGET) -P $(DL_DIR) $(TIFF_SITE)/$(TIFF_SOURCE)
|
|
|
|
|
|
|
|
tiff-source: $(DL_DIR)/$(TIFF_SOURCE)
|
|
|
|
|
|
|
|
$(TIFF_DIR)/.unpacked: $(DL_DIR)/$(TIFF_SOURCE)
|
|
|
|
$(TIFF_CAT) $(DL_DIR)/$(TIFF_SOURCE) | tar -C $(BUILD_DIR) $(TAR_OPTIONS) -
|
2007-08-10 20:53:34 +02:00
|
|
|
$(TIFF_CAT) $(TIFF_DIR)/$(TIFF_SOURCE2) | tar -C $(BUILD_DIR) $(TAR_OPTIONS) -
|
2007-01-11 08:27:37 +01:00
|
|
|
toolchain/patch-kernel.sh $(TIFF_DIR) package/tiff/ tiff\*.patch
|
|
|
|
$(CONFIG_UPDATE) $(TIFF_DIR)
|
2007-07-23 12:03:14 +02:00
|
|
|
$(CONFIG_UPDATE) $(TIFF_DIR)/config
|
2007-01-11 08:27:37 +01:00
|
|
|
touch $(TIFF_DIR)/.unpacked
|
|
|
|
|
2008-07-17 15:19:42 +02:00
|
|
|
$(TIFF_DIR)/.configured: $(TIFF_DIR)/.unpacked \
|
|
|
|
$(STAGING_DIR)/usr/lib/libjpeg.a $(STAGING_DIR)/usr/lib/libz.so
|
2007-01-11 08:27:37 +01:00
|
|
|
(cd $(TIFF_DIR); rm -rf config.cache; \
|
|
|
|
$(TARGET_CONFIGURE_OPTS) \
|
2007-06-27 14:01:27 +02:00
|
|
|
$(TARGET_CONFIGURE_ARGS) \
|
2007-01-11 08:27:37 +01:00
|
|
|
./configure \
|
|
|
|
--target=$(GNU_TARGET_NAME) \
|
|
|
|
--host=$(GNU_TARGET_NAME) \
|
|
|
|
--build=$(GNU_HOST_NAME) \
|
2007-01-14 04:52:21 +01:00
|
|
|
--prefix=/usr \
|
|
|
|
--exec-prefix=/usr \
|
|
|
|
--bindir=/usr/bin \
|
|
|
|
--sbindir=/usr/sbin \
|
2008-03-06 19:27:19 +01:00
|
|
|
--libdir=/usr/lib \
|
2007-01-14 04:52:21 +01:00
|
|
|
--libexecdir=/usr/lib \
|
|
|
|
--sysconfdir=/etc \
|
|
|
|
--datadir=/usr/share \
|
|
|
|
--localstatedir=/var \
|
2007-08-12 00:26:56 +02:00
|
|
|
--includedir=/usr/include \
|
2007-01-14 04:52:21 +01:00
|
|
|
--mandir=/usr/man \
|
|
|
|
--infodir=/usr/info \
|
2007-01-11 08:27:37 +01:00
|
|
|
--enable-shared \
|
|
|
|
--enable-static \
|
|
|
|
--disable-cxx \
|
|
|
|
--without-x \
|
2007-08-12 00:26:56 +02:00
|
|
|
--with-jpeg-include-dir=$(STAGING_DIR)/usr/include \
|
2007-01-11 08:27:37 +01:00
|
|
|
--with-jpeg-lib-dir=$(STAGING_DIR)/lib \
|
2007-08-12 00:26:56 +02:00
|
|
|
--with-zlib-include-dir=$(STAGING_DIR)/usr/include \
|
2007-01-11 08:27:37 +01:00
|
|
|
--with-zlib-lib-dir=$(STAGING_DIR)/lib \
|
2007-08-21 21:20:18 +02:00
|
|
|
)
|
2007-01-11 08:27:37 +01:00
|
|
|
touch $(TIFF_DIR)/.configured
|
|
|
|
|
|
|
|
$(TIFF_DIR)/libtiff/.libs/libtiff.a: $(TIFF_DIR)/.configured
|
|
|
|
$(MAKE) -C $(TIFF_DIR)
|
2008-07-17 15:19:33 +02:00
|
|
|
touch -c $@
|
2007-01-11 08:27:37 +01:00
|
|
|
|
2008-07-17 15:19:33 +02:00
|
|
|
$(STAGING_DIR)/usr/lib/libtiff.so: $(TIFF_DIR)/libtiff/.libs/libtiff.a
|
2007-01-14 04:52:21 +01:00
|
|
|
$(MAKE) DESTDIR=$(STAGING_DIR) -C $(TIFF_DIR) install
|
2008-03-06 19:27:19 +01:00
|
|
|
$(SED) "s,^libdir=.*,libdir=\'$(STAGING_DIR)/usr/lib\',g" $(STAGING_DIR)/usr/lib/libtiff.la
|
2008-07-17 15:19:33 +02:00
|
|
|
touch -c $@
|
2007-01-11 08:27:37 +01:00
|
|
|
|
2008-07-17 15:19:33 +02:00
|
|
|
$(TARGET_DIR)/usr/lib/libtiff.so: $(STAGING_DIR)/usr/lib/libtiff.so
|
2008-03-06 19:27:19 +01:00
|
|
|
cp -dpf $(STAGING_DIR)/usr/lib/libtiff.so* $(TARGET_DIR)/usr/lib/
|
2008-07-17 15:19:33 +02:00
|
|
|
-$(STRIPCMD) $(STRIP_STRIP_UNNEEDED) $@
|
2007-01-11 08:27:37 +01:00
|
|
|
|
2008-07-17 15:19:42 +02:00
|
|
|
tiff: uclibc $(TARGET_DIR)/usr/lib/libtiff.so
|
2007-01-11 08:27:37 +01:00
|
|
|
|
|
|
|
tiff-clean:
|
2008-07-17 15:19:33 +02:00
|
|
|
-rm -f $(TARGET_DIR)/usr/lib/libtiff.so*
|
|
|
|
-$(MAKE) -C $(TIFF_DIR) DESTDIR=$(STAGING_DIR) uninstall
|
2007-01-11 08:27:37 +01:00
|
|
|
-$(MAKE) -C $(TIFF_DIR) clean
|
|
|
|
|
|
|
|
tiff-dirclean:
|
|
|
|
rm -rf $(TIFF_DIR)
|
|
|
|
|
|
|
|
#############################################################
|
|
|
|
#
|
|
|
|
# Toplevel Makefile options
|
|
|
|
#
|
|
|
|
#############################################################
|
|
|
|
ifeq ($(strip $(BR2_PACKAGE_TIFF)),y)
|
|
|
|
TARGETS+=tiff
|
|
|
|
endif
|