source: packages/libs/ucl/Makefile @ 19768

Last change on this file since 19768 was 19768, checked in by thepeople, 7 years ago

these patches add upx and libucl packages.

From http://upx.sourceforge.net/

UPX is a free, portable, extendable, high-performance executable packer
for several different executable formats. It achieves an excellent
compression ratio and offers very fast decompression. Your executables
suffer no memory overhead or other drawbacks for most of the formats
supported, because of in-place decompression.

-Raphael

File size: 1.4 KB
Line 
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
8include $(TOPDIR)/rules.mk
9
10PKG_NAME:=ucl
11PKG_VERSION:=1.03
12PKG_RELEASE:=1
13
14PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
15PKG_SOURCE_URL:=http://www.oberhumer.com/opensource/ucl/download/
16PKG_MD5SUM:=852bd691d8abc75b52053465846fba34
17
18PKG_FIXUP:=libtool
19PKG_INSTALL:=1
20
21include $(INCLUDE_DIR)/package.mk
22
23define Package/libucl
24  SECTION:=libs
25  CATEGORY:=Libraries
26  DEPENDS:=
27  TITLE:=The Ultimate Packer for eXecutables
28  URL:=http://upx.sourceforge.net/
29endef
30
31define Package/libucl/description
32UCL is a portable lossless data compression library written in ANSI C. UCL
33implements a number of compression algorithms that achieve an excellent
34compression ratio while allowing *very* fast decompression. Decompression
35requires no additional memory.
36endef
37
38CONFIGURE_ARGS += \
39        --enable-static \
40        --enable-shared \
41        --disable-asm
42
43define Build/InstallDev
44        $(INSTALL_DIR) $(1)/usr/include/ucl
45        $(CP) $(PKG_INSTALL_DIR)/usr/include/ucl/ucl{,conf}.h $(1)/usr/include/ucl/
46
47        $(INSTALL_DIR) $(1)/usr/lib
48        $(CP) $(PKG_INSTALL_DIR)/usr/lib/libucl.{a,so*} $(1)/usr/lib/
49endef
50
51define Package/libucl/install
52        $(INSTALL_DIR) $(1)/usr/lib
53        $(CP) $(PKG_INSTALL_DIR)/usr/lib/libucl.so* $(1)/usr/lib/
54endef
55
56$(eval $(call BuildPackage,libucl))
57
Note: See TracBrowser for help on using the repository browser.