Date:2012-10-12 07:39:18 (11 years 5 months ago)
Author:kyak
Commit:cb4f985e4feaaa7ab7776e12547996963c5cc68c
Message:libzip: now in upstream openwrt

Files: libzip/Makefile (1 diff)

Change Details

libzip/Makefile
1#
2# This is free software, licensed under the GNU General Public License v2.
3# See /LICENSE for more information.
4#
5
6include $(TOPDIR)/rules.mk
7
8PKG_NAME:=libzip
9PKG_VERSION:=0.10.1
10PKG_RELEASE:=1
11
12PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.bz2
13PKG_SOURCE_URL:=http://www.nih.at/libzip/
14PKG_INSTALL:=1
15
16include $(INCLUDE_DIR)/package.mk
17
18#TARGET_LDFLAGS+= \
19# -Wl,-rpath-link=$(STAGING_DIR)/usr/lib
20
21#CONFIGURE_ARGS +=
22
23#CONFIGURE_CMD = ./autogen.sh
24
25define Package/libzip
26  SECTION:=libs
27  CATEGORY:=Libraries
28  TITLE:=Libzip
29  URL:=http://www.nih.at/libzip/
30  DEPENDS:=
31endef
32
33define Package/libzip/description
34libzip is a C library for reading, creating, and modifying zip archives.
35Files can be added from data buffers, files, or compressed data copied
36directly from other zip archives.
37endef
38
39define Build/Configure
40    $(call Build/Configure/Default)
41endef
42
43define Build/InstallDev
44    $(INSTALL_DIR) $(1)/usr/include $(1)/usr/lib
45
46    $(CP) $(PKG_INSTALL_DIR)/usr/include/* \
47        $(PKG_INSTALL_DIR)/usr/lib/libzip/include/* \
48        $(1)/usr/include/
49
50    $(CP) $(PKG_INSTALL_DIR)/usr/lib/*.{a,la,so*} \
51        $(1)/usr/lib/
52endef
53
54define Package/libzip/install
55    $(INSTALL_DIR) $(1)/usr/bin/
56    $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/* $(1)/usr/bin/
57
58    $(INSTALL_DIR) $(1)/usr/lib
59    $(CP) $(PKG_INSTALL_DIR)/usr/lib/*.so* $(1)/usr/lib/
60endef
61
62$(eval $(call BuildPackage,libzip))

Archive Download the corresponding diff file



interactive