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
:=@GNU
/$(PKG_NAME
)
16 PKG_HASH
:=9e604ba5c5c8ea403487695c2e407405820d98540d9de884d6e844f9a9c5ba08
18 PKG_MAINTAINER
:=Nikos Mavrogiannopoulos
<n.mavrogiannopoulos@gmail.com
>
19 PKG_LICENSE
:=LGPL-2.1
-or-later
20 PKG_LICENSE_FILES
:=COPYING.LIB
21 PKG_CPE_ID
:=cpe
:/a
:gnu
:libtasn1
23 #PKG_FIXUP:=autoreconf
27 include $(INCLUDE_DIR
)/package.mk
29 define Package
/libtasn1
32 TITLE
:=An ASN
.1 and DER structures manipulation library
33 URL
:=https
://www.gnu.org
/software
/libtasn1
/
36 define Package
/libtasn1
/description
37 This is a library for Abstract Syntax Notation One
(ASN
.1) and
38 Distinguish Encoding Rules
(DER
) manipulation.
41 TARGET_CFLAGS
+= -ffunction-sections
-fdata-sections
42 TARGET_LDFLAGS
+= -Wl
,--gc-sections
46 --disable-gcc-warnings \
47 --disable-ld-version-script \
48 --disable-valgrind-tests
50 define Build
/InstallDev
51 $(INSTALL_DIR
) $(1)/usr
/bin
52 $(INSTALL_DIR
) $(1)/usr
/include
53 $(CP
) $(PKG_INSTALL_DIR
)/usr
/include/libtasn1.h
$(1)/usr
/include/
54 $(INSTALL_DIR
) $(1)/usr
/lib
55 $(CP
) $(PKG_INSTALL_DIR
)/usr
/lib
/libtasn1.
{a
,so
*} $(1)/usr
/lib
/
56 $(INSTALL_DIR
) $(1)/usr
/lib
/pkgconfig
57 $(CP
) $(PKG_INSTALL_DIR
)/usr
/lib
/pkgconfig
/libtasn1
*.
pc $(1)/usr
/lib
/pkgconfig
/
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
))