lede-packages-rs

git clone git://archive.git.mtrnord.blog/MTRNord/lede-packages-rs.git
Log | Files | Refs | README | LICENSE

Makefile (2345B)


      1 #
      2 # Copyright (C) 2006-2016 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.6
     12 PKG_RELEASE:=2
     13 
     14 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
     15 PKG_SOURCE_URL:=http://download.osgeo.org/libtiff
     16 PKG_MD5SUM:=d1d2e940dea0b5ad435f21f03d96dd72
     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 <jiri@slachta.eu>
     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   SUBMENU:=Image Manipulation
     58   TITLE+= utilities
     59   DEPENDS:=+libtiff
     60 endef
     61 
     62 TARGET_CFLAGS += $(FPIC)
     63 
     64 define Build/Configure
     65 	$(call Build/Configure/Default, \
     66 		$(if $(CONFIG_PACKAGE_libtiffxx), \
     67 			--enable-cxx, \
     68 			--disable-cxx \
     69 		) \
     70 		--disable-lzma \
     71 		--enable-ccitt \
     72 		--enable-packbits \
     73 		--enable-lzw \
     74 		--enable-thunder \
     75 		--enable-next \
     76 		--enable-logluv \
     77 		--enable-mdi \
     78 		--enable-zlib \
     79 		--enable-jpeg \
     80 		--disable-old-jpeg \
     81 		--disable-jbig \
     82 		--without-x \
     83 	)
     84 endef
     85 
     86 define Build/InstallDev
     87 	$(INSTALL_DIR) $(1)/usr/{lib,include}
     88 	$(CP) $(PKG_INSTALL_DIR)/usr/lib/lib* $(1)/usr/lib/
     89 	$(CP) $(PKG_INSTALL_DIR)/usr/include/* $(1)/usr/include/
     90 endef
     91 
     92 define Package/libtiff/install
     93 	$(INSTALL_DIR) $(1)/usr/lib
     94 	$(CP) $(PKG_INSTALL_DIR)/usr/lib/libtiff.so.* $(1)/usr/lib/
     95 endef
     96 
     97 define Package/libtiffxx/install
     98 	$(INSTALL_DIR) $(1)/usr/lib
     99 	$(CP) $(PKG_INSTALL_DIR)/usr/lib/libtiffxx.so.* $(1)/usr/lib/
    100 endef
    101 
    102 define Package/tiff-utils/install
    103 	$(INSTALL_DIR) $(1)/usr/bin
    104 	$(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/* $(1)/usr/bin/
    105 endef
    106 
    107 $(eval $(call BuildPackage,libtiff))
    108 $(eval $(call BuildPackage,libtiffxx))
    109 $(eval $(call BuildPackage,tiff-utils))