2 # Copyright (C) 2005-2008 OpenWrt.org
4 # This is free software, licensed under the GNU General Public License v2.
5 # See /LICENSE for more information.
8 include $(TOPDIR)/rules.mk
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
25 include $(INCLUDE_DIR)/package.mk
27 define Package/libtasn1
30 TITLE:=An ASN.1 and DER structures manipulation library
31 URL:=ftp://ftp.gnutls.org/pub/gnutls/libtasn1/
34 define Package/libtasn1/description
35 This is a library for Abstract Syntax Notation One (ASN.1) and
36 Distinguish Encoding Rules (DER) manipulation.
39 TARGET_CFLAGS += $(FPIC)
45 define Build/InstallDev
46 $(INSTALL_DIR) $(1)/usr/bin
47 $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/libtasn1-config $(1)/usr/bin/
48 $(INSTALL_DIR) $(1)/usr/include
49 $(CP) $(PKG_INSTALL_DIR)/usr/include/libtasn1.h $(1)/usr/include/
50 $(INSTALL_DIR) $(1)/usr/lib
51 $(CP) $(PKG_INSTALL_DIR)/usr/lib/libtasn1.{a,so*} $(1)/usr/lib/
52 $(INSTALL_DIR) $(1)/usr/lib/pkgconfig
53 $(CP) $(PKG_INSTALL_DIR)/usr/lib/pkgconfig/libtasn1*.pc $(1)/usr/lib/pkgconfig/
54 $(SED) 's,-I$$$${prefix}/include,,g' $(1)/usr/bin/libtasn1-config
55 $(SED) 's,-L$$$${exec_prefix}/lib,,g' $(1)/usr/bin/libtasn1-config
58 define Package/libtasn1/install
59 $(INSTALL_DIR) $(1)/usr/lib
60 $(CP) $(PKG_INSTALL_DIR)/usr/lib/libtasn1.so.* $(1)/usr/lib/
63 $(eval $(call BuildPackage,libtasn1))