Root/libassuan/Makefile

Source at commit 1b3135c created 7 years 10 months ago.
By Xiangfu Liu, new package: SDL-widgets: a GUI toolkit on top of the SDL libraries
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:=libassuan
11PKG_VERSION:=2.0.2
12PKG_RELEASE:=1
13
14PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.bz2
15PKG_SOURCE_URL:=ftp://ftp.gnupg.org/gcrypt/libassuan/
16PKG_MD5SUM:=3e7d00fd2ee8a0b9c51ac7616ef3f1ec
17PKG_FIXUP:=libtool
18
19include $(INCLUDE_DIR)/package.mk
20
21PKG_INSTALL=1
22
23define Package/libassuan
24  SECTION:=libs
25  CATEGORY:=Libraries
26  TITLE:=IPC library used by some GnuPG related software
27  URL:=http://www.gnupg.org
28  DEPENDS:=+libgpg-error
29endef
30
31define Package/libassuan/description
32    Libassuan is the IPC library used by some GnuPG related software.
33endef
34
35TARGET_CFLAGS += $(FPIC)
36
37define Build/Configure
38    $(call Build/Configure/Default, \
39        --enable-shared \
40        --enable-static \
41    )
42endef
43
44define Build/InstallDev
45    $(INSTALL_DIR) $(2)/bin $(1)/usr/bin
46    $(INSTALL_BIN) \
47        $(PKG_INSTALL_DIR)/usr/bin/libassuan-config \
48        $(2)/bin/
49    $(SED) \
50        's,^\(prefix\|exec_prefix\)=.*,\1=$(STAGING_DIR)/usr,g' \
51        $(2)/bin/libassuan-config
52    ln -sf $(STAGING_DIR)/host/bin/libassuan-config $(1)/usr/bin/libassuan-config
53
54    $(INSTALL_DIR) $(1)/usr/include
55    $(INSTALL_DATA) \
56        $(PKG_INSTALL_DIR)/usr/include/assuan.h \
57        $(1)/usr/include/
58
59    $(INSTALL_DIR) $(1)/usr/lib
60    $(CP) \
61        $(PKG_INSTALL_DIR)/usr/lib/libassuan.{la,a,so*} \
62        $(1)/usr/lib/
63
64    $(INSTALL_DIR) $(1)/usr/share/aclocal
65    $(INSTALL_DATA) \
66        $(PKG_INSTALL_DIR)/usr/share/aclocal/libassuan.m4 \
67        $(1)/usr/share/aclocal/
68endef
69
70define Package/libassuan/install
71    $(INSTALL_DIR) $(1)/usr/lib
72    $(CP) \
73        $(PKG_INSTALL_DIR)/usr/lib/libassuan.so.* \
74        $(1)/usr/lib/
75endef
76
77$(eval $(call BuildPackage,libassuan))
78

Archive Download this file



interactive