2 # Copyright (C) 2006 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_BUILD_DIR
:=$(BUILD_DIR
)/$(PKG_NAME
)-$(PKG_VERSION
)
16 PKG_SOURCE
:=$(PKG_NAME
)-$(PKG_VERSION
).
tar.gz
17 PKG_SOURCE_URL
:=ftp
://ftp.gnutls.org
/pub
/gnutls
/libtasn1
/ \
18 ftp
://ftp.gnupg.org
/gcrypt
/alpha
/gnutls
/libtasn1
/ \
19 http
://www.mirrors.wiretapped.net
/security
/network-security
/gnutls
/libtasn1
/ \
20 ftp
://ftp.mirrors.wiretapped.net
/pub
/security
/network-security
/gnutls
/libtasn1
/ \
21 http
://josefsson.org
/gnutls
/releases
/libtasn1
/
22 PKG_MD5SUM
:=d124b11908cfb88883fe71472c25d53a
25 PKG_INSTALL_DIR
:=$(PKG_BUILD_DIR
)/ipkg-install
27 include $(INCLUDE_DIR
)/package.mk
29 define Package
/libtasn1
32 TITLE
:=An ASN
.1 and DER structures manipulation library
33 DESCRIPTION
:=An ASN
.1 and DER structures manipulation library.
\\\
34 This is a library for Abstract Syntax Notation One
(ASN
.1) and
\\\
35 Distinguish Encoding Rules
(DER
) manipulation.
36 URL
:=ftp
://ftp.gnutls.org
/pub
/gnutls
/libtasn1
/
39 define Build
/Configure
40 (cd
$(PKG_BUILD_DIR
); rm -f config.cache
; \
41 touch configure.ac
; \
42 touch acinclude.m4
; \
47 $(TARGET_CONFIGURE_OPTS
) \
48 CFLAGS
="$(TARGET_CFLAGS)" \
49 CPPFLAGS
="-I$(STAGING_DIR)/usr/include -I$(STAGING_DIR)/include" \
50 LDFLAGS
="-L$(STAGING_DIR)/usr/lib -L$(STAGING_DIR)/lib" \
52 --target
=$(GNU_TARGET_NAME
) \
53 --host
=$(GNU_TARGET_NAME
) \
54 --build
=$(GNU_HOST_NAME
) \
60 --datadir=/usr
/share \
61 --includedir=/usr
/include \
62 --infodir=/usr
/share
/info \
64 --libexecdir
=/usr
/lib \
65 --localstatedir
=/var \
66 --mandir=/usr
/share
/man \
70 $(DISABLE_LARGEFILE
) \
78 rm -rf
$(PKG_INSTALL_DIR
)
79 mkdir
-p
$(PKG_INSTALL_DIR
)
80 $(MAKE
) -C
$(PKG_BUILD_DIR
) \
81 DESTDIR
="$(PKG_INSTALL_DIR)" \
85 define Package
/libtasn1
/install
86 install -m0755
-d
$(1)/usr
/lib
87 $(CP
) $(PKG_INSTALL_DIR
)/usr
/lib
/libtasn1.so.
* $(1)/usr
/lib
/
90 define Build
/InstallDev
91 mkdir
-p
$(STAGING_DIR
)/usr
/bin
92 $(CP
) $(PKG_INSTALL_DIR
)/usr
/bin
/libtasn1-config
$(STAGING_DIR
)/usr
/bin
/
93 mkdir
-p
$(STAGING_DIR
)/usr
/include
94 $(CP
) $(PKG_INSTALL_DIR
)/usr
/include/libtasn1.h
$(STAGING_DIR
)/usr
/include/
95 mkdir
-p
$(STAGING_DIR
)/usr
/lib
96 $(CP
) $(PKG_INSTALL_DIR
)/usr
/lib
/libtasn1.
{a
,so
*} $(STAGING_DIR
)/usr
/lib
/
97 mkdir
-p
$(STAGING_DIR
)/usr
/share
/aclocal
98 $(CP
) $(PKG_INSTALL_DIR
)/usr
/share
/aclocal
/libtasn1.m4
$(STAGING_DIR
)/usr
/share
/aclocal
/
101 define Build
/UninstallDev
103 $(STAGING_DIR
)/usr
/bin
/libtasn1-config \
104 $(STAGING_DIR
)/usr
/include/libtasn1.h \
105 $(STAGING_DIR
)/usr
/lib
/libtasn1.
{a
,so
*} \
106 $(STAGING_DIR
)/usr
/share
/aclocal
/libtasn1.m4
109 $(eval
$(call BuildPackage
,libtasn1
))