libzip/Makefile |
1 | | # |
2 | | # This is free software, licensed under the GNU General Public License v2. |
3 | | # See /LICENSE for more information. |
4 | | # |
5 | | |
6 | | include $(TOPDIR)/rules.mk |
7 | | |
8 | | PKG_NAME:=libzip |
9 | | PKG_VERSION:=0.10.1 |
10 | | PKG_RELEASE:=1 |
11 | | |
12 | | PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.bz2 |
13 | | PKG_SOURCE_URL:=http://www.nih.at/libzip/ |
14 | | PKG_INSTALL:=1 |
15 | | |
16 | | include $(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 | | |
25 | | define Package/libzip |
26 | | SECTION:=libs |
27 | | CATEGORY:=Libraries |
28 | | TITLE:=Libzip |
29 | | URL:=http://www.nih.at/libzip/ |
30 | | DEPENDS:= |
31 | | endef |
32 | | |
33 | | define Package/libzip/description |
34 | | libzip is a C library for reading, creating, and modifying zip archives. |
35 | | Files can be added from data buffers, files, or compressed data copied |
36 | | directly from other zip archives. |
37 | | endef |
38 | | |
39 | | define Build/Configure |
40 | | $(call Build/Configure/Default) |
41 | | endef |
42 | | |
43 | | define 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/ |
52 | | endef |
53 | | |
54 | | define 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/ |
60 | | endef |
61 | | |
62 | | $(eval $(call BuildPackage,libzip)) |