3eccbdf58ea5589c8fa00ece9a3f25d93b4c5041
[openwrt/svn-archive/archive.git] / libs / libtasn1 / Makefile
1 #
2 # Copyright (C) 2005-2008 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:=libtasn1
11 PKG_VERSION:=1.4
12 PKG_RELEASE:=1
13
14 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
15 PKG_SOURCE_URL:=ftp://ftp.gnutls.org/pub/gnutls/libtasn1/ \
16 ftp://ftp.gnupg.org/gcrypt/alpha/gnutls/libtasn1/ \
17 http://www.mirrors.wiretapped.net/security/network-security/gnutls/libtasn1/ \
18 ftp://ftp.mirrors.wiretapped.net/pub/security/network-security/gnutls/libtasn1/ \
19 http://josefsson.org/gnutls/releases/libtasn1/
20 PKG_MD5SUM:=a733ecdfed3517910e627d24e050979f
21
22 PKG_FIXUP = libtool
23
24 include $(INCLUDE_DIR)/package.mk
25
26 define Package/libtasn1
27 SECTION:=libs
28 CATEGORY:=Libraries
29 TITLE:=An ASN.1 and DER structures manipulation library
30 URL:=ftp://ftp.gnutls.org/pub/gnutls/libtasn1/
31 endef
32
33 define Package/libtasn1/description
34 This is a library for Abstract Syntax Notation One (ASN.1) and
35 Distinguish Encoding Rules (DER) manipulation.
36 endef
37
38 TARGET_CFLAGS += $(FPIC)
39
40 CONFIGURE_ARGS += \
41 --enable-shared \
42 --enable-static
43
44 define Build/Compile
45 $(MAKE) -C $(PKG_BUILD_DIR) DESTDIR="$(PKG_INSTALL_DIR)" all install
46 endef
47
48 define Build/InstallDev
49 $(INSTALL_DIR) $(1)/usr/bin
50 $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/libtasn1-config $(1)/usr/bin/
51 $(INSTALL_DIR) $(1)/usr/include
52 $(CP) $(PKG_INSTALL_DIR)/usr/include/libtasn1.h $(1)/usr/include/
53 $(INSTALL_DIR) $(1)/usr/lib
54 $(CP) $(PKG_INSTALL_DIR)/usr/lib/libtasn1.{a,so*} $(1)/usr/lib/
55 $(SED) 's,-I$$$${prefix}/include,,g' $(1)/usr/bin/libtasn1-config
56 $(SED) 's,-L$$$${exec_prefix}/lib,,g' $(1)/usr/bin/libtasn1-config
57 endef
58
59 define Package/libtasn1/install
60 $(INSTALL_DIR) $(1)/usr/lib
61 $(CP) $(PKG_INSTALL_DIR)/usr/lib/libtasn1.so.* $(1)/usr/lib/
62 endef
63
64 $(eval $(call BuildPackage,libtasn1))