clean up tiff makefile and fix avr32 compile
[openwrt/svn-archive/archive.git] / libs / tiff / Makefile
1 #
2 # Copyright (C) 2006 OpenWrt.org
3 #
4 # This is free software, licensed under the GNU General Public License v2.
5 # See /LICENSE for more information.
6 #
7 # blogic@openwrt.org
8
9 include $(TOPDIR)/rules.mk
10
11 PKG_NAME:=tiff
12 PKG_VERSION:=3.8.2
13 PKG_RELEASE:=1
14
15 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
16 PKG_SOURCE_URL:= http://libtiff.maptools.org/dl/
17 PKG_FIXUP := libtool
18
19 include $(INCLUDE_DIR)/package.mk
20
21 define Package/libtiff
22 SECTION:=libs
23 CATEGORY:=Libraries
24 TITLE:=TIFF libraries
25 DEPENDS:=+zlib +libjpeg
26 endef
27
28 CONFIGURE_ARGS += --without-x
29 MAKE_FLAGS += all install DESTDIR=$(PKG_INSTALL_DIR)
30
31 define Build/InstallDev
32 $(INSTALL_DIR) $(1)/usr/{lib,include}
33 $(CP) $(PKG_INSTALL_DIR)/usr/lib/lib* $(1)/usr/lib
34 $(CP) $(PKG_INSTALL_DIR)/usr/include/* $(1)/usr/include/
35 endef
36
37 define Package/tiff/Install
38 $(INSTALL_DIR) $(1)/usr/lib
39 $(CP) $(PKG_INSTALL_DIR)/usr/lib/lib*so* $(1)/usr/lib/
40 endef
41
42 $(eval $(call BuildPackage,libtiff))