252eb5b95c3f53af7ef139d7798b78ff2b652d6a
[openwrt/svn-archive/archive.git] / libs / tiff / Makefile
1 #
2 # Copyright (C) 2006-2009 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.9.2
13 PKG_RELEASE:=1
14
15 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
16 PKG_SOURCE_URL:=http://download.osgeo.org/libtiff
17 PKG_MD5SUM:=93e56e421679c591de7552db13384cb8
18 PKG_FIXUP:=libtool
19
20 include $(INCLUDE_DIR)/package.mk
21
22 PKG_INSTALL=1
23
24 define Package/tiff/Default
25 TITLE:=TIFF
26 URL:=http://www.remotesensing.org/libtiff/
27 endef
28
29 define Package/libtiff
30 $(call Package/tiff/Default)
31 SECTION:=libs
32 CATEGORY:=Libraries
33 TITLE+= libraries
34 DEPENDS:=+zlib +libjpeg
35 endef
36
37 define Package/tiff-utils
38 $(call Package/tiff/Default)
39 SECTION:=utils
40 CATEGORY:=Utilities
41 TITLE+= utilities
42 DEPENDS:=+libtiff
43 endef
44
45 TARGET_CFLAGS += $(FPIC)
46
47 CONFIGURE_ARGS += --without-x
48
49 define Build/InstallDev
50 $(INSTALL_DIR) $(1)/usr/{lib,include}
51 $(CP) $(PKG_INSTALL_DIR)/usr/lib/lib* $(1)/usr/lib/
52 $(CP) $(PKG_INSTALL_DIR)/usr/include/* $(1)/usr/include/
53 endef
54
55 define Package/libtiff/install
56 $(INSTALL_DIR) $(1)/usr/lib
57 $(CP) $(PKG_INSTALL_DIR)/usr/lib/lib*.so.* $(1)/usr/lib/
58 endef
59
60 define Package/tiff-utils/install
61 $(INSTALL_DIR) $(1)/usr/bin
62 $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/* $(1)/usr/bin/
63 endef
64
65 $(eval $(call BuildPackage,libtiff))
66 $(eval $(call BuildPackage,tiff-utils))