tiff: add licensing information
[feed/packages.git] / libs / tiff / Makefile
1 #
2 # Copyright (C) 2006-2014 OpenWrt.org
3 #
4 # This is free software, licensed under the GNU General Public License v2.
5 # See /LICENSE for more information.
6 #
7
8 include $(TOPDIR)/rules.mk
9
10 PKG_NAME:=tiff
11 PKG_VERSION:=4.0.3
12 PKG_RELEASE:=3
13
14 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
15 PKG_SOURCE_URL:=http://download.osgeo.org/libtiff
16 PKG_MD5SUM:=051c1068e6a0627f461948c365290410
17
18 PKG_FIXUP:=autoreconf
19 PKG_REMOVE_FILES:=autogen.sh aclocal.m4
20
21 PKG_LICENSE:=BSD
22 PKG_LICENSE_FILES:=COPYRIGHT
23
24 PKG_INSTALL:=1
25
26 PKG_CONFIG_DEPENDS:=CONFIG_PACKAGE_libtiffxx
27
28 include $(INCLUDE_DIR)/uclibc++.mk
29 include $(INCLUDE_DIR)/package.mk
30
31 define Package/tiff/Default
32 TITLE:=TIFF
33 URL:=http://www.remotesensing.org/libtiff/
34 MAINTAINER:=Jiri Slachta <slachta@cesnet.cz>
35 endef
36
37 define Package/libtiff
38 $(call Package/tiff/Default)
39 SECTION:=libs
40 CATEGORY:=Libraries
41 TITLE+= library
42 DEPENDS:=+zlib +libjpeg
43 endef
44
45 define Package/libtiffxx
46 $(call Package/tiff/Default)
47 SECTION:=libs
48 CATEGORY:=Libraries
49 TITLE+= library(c++ bindings)
50 DEPENDS:=+libtiff $(CXX_DEPENDS)
51 endef
52
53 define Package/tiff-utils
54 $(call Package/tiff/Default)
55 SECTION:=utils
56 CATEGORY:=Utilities
57 TITLE+= utilities
58 DEPENDS:=+libtiff
59 endef
60
61 TARGET_CFLAGS += $(FPIC)
62
63 define Build/Configure
64 $(call Build/Configure/Default, \
65 $(if $(CONFIG_PACKAGE_libtiffxx), \
66 --enable-cxx, \
67 --disable-cxx \
68 ) \
69 --disable-lzma \
70 --enable-ccitt \
71 --enable-packbits \
72 --enable-lzw \
73 --enable-thunder \
74 --enable-next \
75 --enable-logluv \
76 --enable-mdi \
77 --enable-zlib \
78 --enable-jpeg \
79 --disable-old-jpeg \
80 --disable-jbig \
81 --without-x \
82 )
83 endef
84
85 define Build/InstallDev
86 $(INSTALL_DIR) $(1)/usr/{lib,include}
87 $(CP) $(PKG_INSTALL_DIR)/usr/lib/lib* $(1)/usr/lib/
88 $(CP) $(PKG_INSTALL_DIR)/usr/include/* $(1)/usr/include/
89 endef
90
91 define Package/libtiff/install
92 $(INSTALL_DIR) $(1)/usr/lib
93 $(CP) $(PKG_INSTALL_DIR)/usr/lib/libtiff.so.* $(1)/usr/lib/
94 endef
95
96 define Package/libtiffxx/install
97 $(INSTALL_DIR) $(1)/usr/lib
98 $(CP) $(PKG_INSTALL_DIR)/usr/lib/libtiffxx.so.* $(1)/usr/lib/
99 endef
100
101 define Package/tiff-utils/install
102 $(INSTALL_DIR) $(1)/usr/bin
103 $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/* $(1)/usr/bin/
104 endef
105
106 $(eval $(call BuildPackage,libtiff))
107 $(eval $(call BuildPackage,libtiffxx))
108 $(eval $(call BuildPackage,tiff-utils))