[packages] normalize PKG_FIXUP - the "libtool" fixup is merely an alias for "autoreco...
[openwrt/svn-archive/archive.git] / libs / libassuan / Makefile
1 #
2 # Copyright (C) 2011 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:=libassuan
11 PKG_VERSION:=2.0.2
12 PKG_RELEASE:=1
13
14 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.bz2
15 PKG_SOURCE_URL:=ftp://ftp.gnupg.org/gcrypt/libassuan/
16 PKG_MD5SUM:=3e7d00fd2ee8a0b9c51ac7616ef3f1ec
17
18 PKG_FIXUP:=autoreconf
19 PKG_INSTALL:=1
20
21 include $(INCLUDE_DIR)/package.mk
22
23 define Package/libassuan
24 SECTION:=libs
25 CATEGORY:=Libraries
26 TITLE:=GnuPG IPC library
27 URL:=http://www.gnupg.org/
28 DEPENDS:=+libgpg-error
29 endef
30
31 define Package/libassuan/description
32 The Libassuan package contains an IPC library used by some of the other
33 GnuPG related packages. Libassuan's primary use is to allow a client to
34 interact with a non-persistent server. Libassuan is not, however,
35 limited to use with GnuPG servers and clients. It was designed to be
36 flexible enough to meet the demands of many transaction based
37 environments with non-persistent servers.
38 endef
39
40 CONFIGURE_ARGS += \
41 --enable-shared \
42 --enable-static \
43 --with-gpg-error-prefix="$(STAGING_DIR)/usr" \
44 --without-pth-test \
45
46 define Build/InstallDev
47 $(INSTALL_DIR) $(1)/usr/include
48 $(CP) $(PKG_INSTALL_DIR)/usr/include/assuan.h $(1)/usr/include/
49 $(INSTALL_DIR) $(1)/usr/lib
50 $(CP) $(PKG_INSTALL_DIR)/usr/lib/libassuan.{a,so*} $(1)/usr/lib/
51 $(INSTALL_DIR) $(1)/usr/share/aclocal
52 $(CP) $(PKG_INSTALL_DIR)/usr/share/aclocal/libassuan.m4 $(1)/usr/share/aclocal/
53 $(INSTALL_DIR) $(1)/usr/bin
54 $(CP) $(PKG_INSTALL_DIR)/usr/bin/libassuan-config $(1)/usr/bin/
55 $(INSTALL_DIR) $(2)/bin
56 $(LN) -nsf ../../usr/bin/libassuan-config $(2)/bin/
57 endef
58
59 define Package/libassuan/install
60 $(INSTALL_DIR) $(1)/usr/lib
61 $(CP) $(PKG_INSTALL_DIR)/usr/lib/libassuan*.so.* $(1)/usr/lib/
62 endef
63
64 $(eval $(call BuildPackage,libassuan))