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/
27endef
28
29define Package/jbig2dec/description
30  jbig2dec is a decoder implementation of the JBIG2 image compression format.
31endef
32
33define Build/Configure
34    $(call Build/Configure/Default, \
35        --enable-shared \
36        --enable-static \
37    )
38endef
39
40define 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/
50endef
51
52define Package/jbig2dec/install
53    $(INSTALL_DIR) $(1)/usr/lib
54    $(CP) \
55        $(PKG_INSTALL_DIR)/usr/lib/libjbig2dec.so.* \
56        $(1)/usr/lib/
57endef
58
59$(eval $(call BuildPackage,jbig2dec))
60

Archive Download this file



interactive