[packages] Various Makefile cleanups.
[openwrt/svn-archive/archive.git] / libs / tiff / Makefile
1 #
2 # Copyright (C) 2006-2008 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_MD5SUM:=fbb6f446ea4ed18955e2714934e5b698
18 PKG_FIXUP:=libtool
19
20 include $(INCLUDE_DIR)/package.mk
21
22 PKG_INSTALL=1
23
24 define Package/libtiff
25 SECTION:=libs
26 CATEGORY:=Libraries
27 TITLE:=TIFF libraries
28 DEPENDS:=+zlib +libjpeg
29 URL:=http://www.remotesensing.org/libtiff/
30 endef
31
32 TARGET_CFLAGS += $(FPIC)
33
34 CONFIGURE_ARGS += --without-x
35
36 define Build/InstallDev
37 $(INSTALL_DIR) $(1)/usr/{lib,include}
38 $(CP) $(PKG_INSTALL_DIR)/usr/lib/lib* $(1)/usr/lib
39 $(CP) $(PKG_INSTALL_DIR)/usr/include/* $(1)/usr/include/
40 endef
41
42 define Package/libtiff/install
43 $(INSTALL_DIR) $(1)/usr/lib
44 $(CP) $(PKG_INSTALL_DIR)/usr/lib/lib*so* $(1)/usr/lib/
45 endef
46
47 $(eval $(call BuildPackage,libtiff))