OpenWrt packages
Sign in or create your account | Project List | Help
OpenWrt packages Git Source Tree
Root/
| 1 | # |
| 2 | # Copyright (C) 2005-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 | |
| 8 | include $(TOPDIR)/rules.mk |
| 9 | |
| 10 | PKG_NAME:=jbig2dec |
| 11 | PKG_VERSION:=0.11 |
| 12 | PKG_RELEASE:=1 |
| 13 | |
| 14 | PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz |
| 15 | PKG_SOURCE_URL:=http://ghostscript.com/~giles/jbig2/jbig2dec/ |
| 16 | PKG_MD5SUM:=1f61e144852c86563fee6e5ddced63f1 |
| 17 | |
| 18 | include $(INCLUDE_DIR)/package.mk |
| 19 | |
| 20 | PKG_INSTALL=1 |
| 21 | |
| 22 | define Package/jbig2dec |
| 23 | SECTION:=libs |
| 24 | CATEGORY:=Libraries |
| 25 | TITLE:=decoder implementation of the JBIG2 image compression format |
| 26 | URL:=http://jbig2dec.sourceforge.net/ |
| 27 | endef |
| 28 | |
| 29 | define Package/jbig2dec/description |
| 30 | jbig2dec is a decoder implementation of the JBIG2 image compression format. |
| 31 | endef |
| 32 | |
| 33 | define Build/Configure |
| 34 | $(call Build/Configure/Default, \ |
| 35 | --enable-shared \ |
| 36 | --enable-static \ |
| 37 | ) |
| 38 | endef |
| 39 | |
| 40 | define Build/InstallDev |
| 41 | $(INSTALL_DIR) $(1)/usr/include |
| 42 | $(INSTALL_DATA) \ |
| 43 | $(PKG_INSTALL_DIR)/usr/include/jbig2.h \ |
| 44 | $(1)/usr/include/ |
| 45 | |
| 46 | $(INSTALL_DIR) $(1)/usr/lib |
| 47 | $(CP) \ |
| 48 | $(PKG_INSTALL_DIR)/usr/lib/libjbig2dec.{la,a,so*} \ |
| 49 | $(1)/usr/lib/ |
| 50 | endef |
| 51 | |
| 52 | define Package/jbig2dec/install |
| 53 | $(INSTALL_DIR) $(1)/usr/lib |
| 54 | $(CP) \ |
| 55 | $(PKG_INSTALL_DIR)/usr/lib/libjbig2dec.so.* \ |
| 56 | $(1)/usr/lib/ |
| 57 | endef |
| 58 | |
| 59 | $(eval $(call BuildPackage,jbig2dec)) |
| 60 |
