Root/jbig2dec/Makefile

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
8include $(TOPDIR)/rules.mk
9
10PKG_NAME:=jbig2dec
11PKG_VERSION:=0.11
12PKG_RELEASE:=1
13
14PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
15PKG_SOURCE_URL:=http://ghostscript.com/~giles/jbig2/jbig2dec/
16PKG_MD5SUM:=1f61e144852c86563fee6e5ddced63f1
17
18include $(INCLUDE_DIR)/package.mk
19
20PKG_INSTALL=1
21
22define 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  DEPENDS:=+zlib +libpng
28endef
29
30define Package/jbig2dec/description
31  jbig2dec is a decoder implementation of the JBIG2 image compression format.
32endef
33
34define Build/Configure
35    $(call Build/Configure/Default, \
36        --enable-shared \
37        --enable-static \
38    )
39endef
40
41define Build/InstallDev
42    $(INSTALL_DIR) $(1)/usr/include
43    $(INSTALL_DATA) \
44        $(PKG_INSTALL_DIR)/usr/include/jbig2.h \
45        $(1)/usr/include/
46
47    $(INSTALL_DIR) $(1)/usr/lib
48    $(CP) \
49        $(PKG_INSTALL_DIR)/usr/lib/libjbig2dec.{la,a,so*} \
50        $(1)/usr/lib/
51endef
52
53define Package/jbig2dec/install
54    $(INSTALL_DIR) $(1)/usr/lib
55    $(CP) \
56        $(PKG_INSTALL_DIR)/usr/lib/libjbig2dec.so.* \
57        $(1)/usr/lib/
58endef
59
60$(eval $(call BuildPackage,jbig2dec))
61

Archive Download this file



interactive