[packages] ucl:
[packages.git] / libs / ucl / Makefile
1
2 # Copyright (C) 2006-2010 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:=ucl
11 PKG_VERSION:=1.03
12 PKG_RELEASE:=2
13
14 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
15 PKG_SOURCE_URL:=http://www.oberhumer.com/opensource/ucl/download/
16 PKG_MD5SUM:=852bd691d8abc75b52053465846fba34
17
18 PKG_FIXUP:=libtool
19 PKG_REMOVE_FILES:=aclocal.m4 acconfig/ltmain.sh
20
21 PKG_INSTALL:=1
22
23 include $(INCLUDE_DIR)/package.mk
24
25 define Package/libucl
26   SECTION:=libs
27   CATEGORY:=Libraries
28   TITLE:=Portable lossless data compression library
29   URL:=http://www.oberhumer.com/opensource/ucl/
30 endef
31
32 define Package/libucl/description
33 UCL is a portable lossless data compression library written in ANSI C. UCL
34 implements a number of compression algorithms that achieve an excellent
35 compression ratio while allowing *very* fast decompression. Decompression
36 requires no additional memory.
37 endef
38
39 CONFIGURE_ARGS += \
40         --enable-static \
41         --enable-shared \
42         --disable-asm
43
44 define Build/InstallDev
45         $(INSTALL_DIR) $(1)/usr/include/ucl
46         $(CP) $(PKG_INSTALL_DIR)/usr/include/ucl/ucl{,conf}.h $(1)/usr/include/ucl/
47
48         $(INSTALL_DIR) $(1)/usr/lib
49         $(CP) $(PKG_INSTALL_DIR)/usr/lib/libucl.{a,so*} $(1)/usr/lib/
50 endef
51
52 define Package/libucl/install
53         $(INSTALL_DIR) $(1)/usr/lib
54         $(CP) $(PKG_INSTALL_DIR)/usr/lib/libucl.so.* $(1)/usr/lib/
55 endef
56
57 $(eval $(call BuildPackage,libucl))
58