From: laird at uclibc.org <laird@uclibc.org>
To: buildroot@busybox.net
Subject: [Buildroot] svn commit: trunk/buildroot/package/tiff
Date: Tue, 11 Nov 2008 03:43:28 -0800 (PST) [thread overview]
Message-ID: <20081111114328.277F03C960@busybox.net> (raw)
Author: laird
Date: 2008-11-11 03:43:27 -0800 (Tue, 11 Nov 2008)
New Revision: 23999
Log:
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>
Modified:
trunk/buildroot/package/tiff/tiff.mk
Changeset:
Modified: trunk/buildroot/package/tiff/tiff.mk
===================================================================
--- trunk/buildroot/package/tiff/tiff.mk 2008-11-11 11:33:45 UTC (rev 23998)
+++ trunk/buildroot/package/tiff/tiff.mk 2008-11-11 11:43:27 UTC (rev 23999)
@@ -4,85 +4,23 @@
#
#############################################################
TIFF_VERSION:=3.8.2
-TIFF_SOURCE:=tiff_$(TIFF_VERSION).orig.tar.gz
-TIFF_SOURCE2:=tiff-$(TIFF_VERSION).tar.gz
-TIFF_SITE:=$(BR2_DEBIAN_MIRROR)/debian/pool/main/t/tiff/
-TIFF_DIR:=$(BUILD_DIR)/tiff-$(TIFF_VERSION)
-TIFF_CAT:=$(ZCAT)
+TIFF_SITE:=ftp://ftp.remotesensing.org/pub/libtiff
+TIFF_SOURCE:=tiff-$(TIFF_VERSION).tar.gz
+TIFF_LIBTOOL_PATCH = NO
+TIFF_INSTALL_STAGING = YES
+TIFF_INSTALL_TARGET = NO
+TIFF_CONF_OPT = \
+ --enable-shared \
+ --enable-static \
+ --disable-cxx \
+ --without-x \
-$(DL_DIR)/$(TIFF_SOURCE):
- $(WGET) -P $(DL_DIR) $(TIFF_SITE)/$(TIFF_SOURCE)
+TIFF_DEPENDENCIES = uclibc pkgconfig zlib jpeg
-tiff-source: $(DL_DIR)/$(TIFF_SOURCE)
+$(eval $(call AUTOTARGETS,package,tiff))
-$(TIFF_DIR)/.unpacked: $(DL_DIR)/$(TIFF_SOURCE)
- $(TIFF_CAT) $(DL_DIR)/$(TIFF_SOURCE) | tar -C $(BUILD_DIR) $(TAR_OPTIONS) -
- $(TIFF_CAT) $(TIFF_DIR)/$(TIFF_SOURCE2) | tar -C $(BUILD_DIR) $(TAR_OPTIONS) -
- toolchain/patch-kernel.sh $(TIFF_DIR) package/tiff/ tiff\*.patch
- $(CONFIG_UPDATE) $(TIFF_DIR)
- $(CONFIG_UPDATE) $(TIFF_DIR)/config
- touch $(TIFF_DIR)/.unpacked
+$(TIFF_HOOK_POST_BUILD):
+ -cp -a $(TIFF_DIR)/libtiff/.libs/libtiff.so* $(TARGET_DIR)/usr/lib/
+ $(STRIPCMD) $(STRIP_STRIP_UNNEEDED) $(TARGET_DIR)/usr/lib/libtiff.so
+ touch $@
-$(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
next reply other threads:[~2008-11-11 11:43 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-11-11 11:43 laird at uclibc.org [this message]
2008-11-11 12:31 ` [Buildroot] svn commit: trunk/buildroot/package/tiff Thomas Petazzoni
-- strict thread matches above, loose matches on Subject: below --
2008-12-08 4:41 hamish at uclibc.org
2008-07-17 13:19 jacmet at uclibc.org
2008-07-17 13:19 jacmet at uclibc.org
2008-03-06 18:27 ninevoltz at uclibc.org
2007-08-10 18:53 andersen at uclibc.org
2007-08-05 12:21 aldot at uclibc.org
2007-07-23 10:03 ulf at uclibc.org
2007-07-26 7:01 ` Hans-Christian Egtvedt
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20081111114328.277F03C960@busybox.net \
--to=laird@uclibc.org \
--cc=buildroot@busybox.net \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.