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.
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
:=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
)
46 $(MAKE
) -C
$(PKG_BUILD_DIR
) DESTDIR
="$(PKG_INSTALL_DIR)" all install
49 define Build
/InstallDev
51 $(INSTALL_BIN
) $(PKG_INSTALL_DIR
)/usr
/bin
/libtasn1-config
$(1)/usr
/bin
/
52 mkdir
-p
$(1)/usr
/include
53 $(CP
) $(PKG_INSTALL_DIR
)/usr
/include/libtasn1.h
$(1)/usr
/include/
55 $(CP
) $(PKG_INSTALL_DIR
)/usr
/lib
/libtasn1.
{a
,so
*} $(1)/usr
/lib
/
56 $(SED
) 's,-I$$$${prefix}/include,,g' $(1)/usr
/bin
/libtasn1-config
57 $(SED
) 's,-L$$$${exec_prefix}/lib,,g' $(1)/usr
/bin
/libtasn1-config
60 define Package
/libtasn1
/install
61 $(INSTALL_DIR
) $(1)/usr
/lib
62 $(CP
) $(PKG_INSTALL_DIR
)/usr
/lib
/libtasn1.so.
* $(1)/usr
/lib
/
65 $(eval
$(call BuildPackage
,libtasn1
))