source: packages/libs/tiff/Makefile @ 16855

Last change on this file since 16855 was 16855, checked in by nico, 7 years ago

[packages] tiff: add a tiff-utils subpackage

File size: 1.4 KB
Line 
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
9include $(TOPDIR)/rules.mk
10
11PKG_NAME:=tiff
12PKG_VERSION:=3.8.2
13PKG_RELEASE:=2
14
15PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
16PKG_SOURCE_URL:=http://libtiff.maptools.org/dl/
17PKG_MD5SUM:=fbb6f446ea4ed18955e2714934e5b698
18PKG_FIXUP:=libtool
19
20include $(INCLUDE_DIR)/package.mk
21
22PKG_INSTALL=1
23
24define Package/tiff/Default
25  TITLE:=TIFF
26  URL:=http://www.remotesensing.org/libtiff/
27endef
28
29define Package/libtiff
30$(call Package/tiff/Default)
31  SECTION:=libs
32  CATEGORY:=Libraries
33  TITLE+= libraries
34  DEPENDS:=+zlib +libjpeg
35endef
36
37define Package/tiff-utils
38$(call Package/tiff/Default)
39  SECTION:=utils
40  CATEGORY:=Utilities
41  TITLE+= utilities
42  DEPENDS:=+libtiff
43endef
44
45TARGET_CFLAGS += $(FPIC)
46
47CONFIGURE_ARGS += --without-x
48
49define 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/
53endef
54
55define Package/libtiff/install
56        $(INSTALL_DIR) $(1)/usr/lib
57        $(CP) $(PKG_INSTALL_DIR)/usr/lib/lib*.so.* $(1)/usr/lib/
58endef
59
60define Package/tiff-utils/install
61        $(INSTALL_DIR) $(1)/usr/bin
62        $(CP) $(PKG_INSTALL_DIR)/usr/bin/* $(1)/usr/bin/
63endef
64
65$(eval $(call BuildPackage,libtiff))
66$(eval $(call BuildPackage,tiff-utils))
Note: See TracBrowser for help on using the repository browser.