Root/openjpeg/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:=openjpeg
11PKG_VERSION:=1.3
12PKG_RELEASE:=1
13
14PKG_SOURCE:=$(PKG_NAME)_v1_3.tar.gz
15PKG_SOURCE_URL:=http://openjpeg.googlecode.com/files/
16PKG_MD5SUM:=f9a3ccfa91ac34b589e9bf7577ce8ff9
17
18include $(INCLUDE_DIR)/package.mk
19
20PKG_INSTALL=1
21PKG_UNPACK:=gzip -dc $(DL_DIR)/$(PKG_SOURCE) | $(TAR) -C $(PKG_BUILD_DIR) --strip-components=1 -xf -
22
23define Package/openjpeg
24  SECTION:=libs
25  CATEGORY:=Libraries
26  TITLE:=open-source JPEG 2000 codec written in C language.
27  URL:=http://www.openjpeg.org
28endef
29
30define Package/openjpeg/description
31  The OpenJPEG library is an open-source JPEG 2000 codec written in C language.
32endef
33
34define Build/InstallDev
35    $(INSTALL_DIR) $(1)/usr/include
36    $(INSTALL_DATA) \
37        $(PKG_INSTALL_DIR)/usr/include/openjpeg.h \
38        $(1)/usr/include/
39
40    $(INSTALL_DIR) $(1)/usr/lib
41    $(CP) \
42        $(PKG_INSTALL_DIR)/usr/lib/libopenjpeg.{a,so*} \
43        $(1)/usr/lib/
44endef
45
46define Package/openjpeg/install
47    $(INSTALL_DIR) $(1)/usr/lib
48    $(CP) \
49        $(PKG_INSTALL_DIR)/usr/lib/libopenjpeg.so.* \
50        $(1)/usr/lib/
51endef
52
53$(eval $(call BuildPackage,openjpeg))
54

Archive Download this file



interactive