2 # Copyright (C) 2007 OpenWrt.org
4 # This is free software, licensed under the GNU General Public License v2.
5 # See /LICENSE for more information.
9 include $(TOPDIR
)/rules.mk
15 PKG_SOURCE
:=$(PKG_NAME
)-$(PKG_VERSION
).
tar.gz
16 PKG_SOURCE_URL
:=ftp
://ftp.gnutls.org
/pub
/gnutls
/libtasn1
/ \
17 ftp
://ftp.gnupg.org
/gcrypt
/alpha
/gnutls
/libtasn1
/ \
18 http
://www.mirrors.wiretapped.net
/security
/network-security
/gnutls
/libtasn1
/ \
19 ftp
://ftp.mirrors.wiretapped.net
/pub
/security
/network-security
/gnutls
/libtasn1
/ \
20 http
://josefsson.org
/gnutls
/releases
/libtasn1
/
21 PKG_MD5SUM
:=93b43cc5013bda4d8bf64508f1566c54
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.
44 $(MAKE
) -C
$(PKG_BUILD_DIR
) DESTDIR
="$(PKG_INSTALL_DIR)" all install
47 define Build
/InstallDev
49 $(INSTALL_BIN
) $(PKG_INSTALL_DIR
)/usr
/bin
/libtasn1-config
$(1)/usr
/bin
/
50 mkdir
-p
$(1)/usr
/include
51 $(CP
) $(PKG_INSTALL_DIR
)/usr
/include/libtasn1.h
$(1)/usr
/include/
53 $(CP
) $(PKG_INSTALL_DIR
)/usr
/lib
/libtasn1.
{a
,so
*} $(1)/usr
/lib
/
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
))