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
22 #PKG_FIXUP:=autoreconf
26 include $(INCLUDE_DIR
)/package.mk
28 define Package
/libtasn1
31 TITLE
:=An ASN
.1 and DER structures manipulation library
32 URL
:=https
://www.gnu.org
/software
/libtasn1
/
35 define Package
/libtasn1
/description
36 This is a library for Abstract Syntax Notation One
(ASN
.1) and
37 Distinguish Encoding Rules
(DER
) manipulation.
40 TARGET_CFLAGS
+= -ffunction-sections
-fdata-sections
41 TARGET_LDFLAGS
+= -Wl
,--gc-sections
45 --disable-gcc-warnings \
46 --disable-ld-version-script \
47 --disable-valgrind-tests
49 define Build
/InstallDev
50 $(INSTALL_DIR
) $(1)/usr
/bin
51 $(INSTALL_DIR
) $(1)/usr
/include
52 $(CP
) $(PKG_INSTALL_DIR
)/usr
/include/libtasn1.h
$(1)/usr
/include/
53 $(INSTALL_DIR
) $(1)/usr
/lib
54 $(CP
) $(PKG_INSTALL_DIR
)/usr
/lib
/libtasn1.
{a
,so
*} $(1)/usr
/lib
/
55 $(INSTALL_DIR
) $(1)/usr
/lib
/pkgconfig
56 $(CP
) $(PKG_INSTALL_DIR
)/usr
/lib
/pkgconfig
/libtasn1
*.
pc $(1)/usr
/lib
/pkgconfig
/
59 define Package
/libtasn1
/install
60 $(INSTALL_DIR
) $(1)/usr
/lib
61 $(CP
) $(PKG_INSTALL_DIR
)/usr
/lib
/libtasn1.so.
* $(1)/usr
/lib
/
64 $(eval
$(call BuildPackage
,libtasn1
))