01347bfb067eb9567dcb9172b1d7a0cc7f5f523e
[feed/packages.git] / libs / libtasn1 / Makefile
1 #
2 # Copyright (C) 2005-2008 OpenWrt.org
3 #
4 # This is free software, licensed under the GNU General Public License v2.
5 # See /LICENSE for more information.
6 #
7
8 include $(TOPDIR)/rules.mk
9
10 PKG_NAME:=libtasn1
11 PKG_VERSION:=4.14
12 PKG_RELEASE:=2
13
14 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
15 PKG_SOURCE_URL:=@GNU/$(PKG_NAME)
16 PKG_HASH:=9e604ba5c5c8ea403487695c2e407405820d98540d9de884d6e844f9a9c5ba08
17
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
22
23 #PKG_FIXUP:=autoreconf
24 PKG_INSTALL:=1
25 PKG_BUILD_PARALLEL:=1
26
27 include $(INCLUDE_DIR)/package.mk
28
29 define Package/libtasn1
30 SECTION:=libs
31 CATEGORY:=Libraries
32 TITLE:=An ASN.1 and DER structures manipulation library
33 URL:=https://www.gnu.org/software/libtasn1/
34 endef
35
36 define Package/libtasn1/description
37 This is a library for Abstract Syntax Notation One (ASN.1) and
38 Distinguish Encoding Rules (DER) manipulation.
39 endef
40
41 TARGET_CFLAGS += -ffunction-sections -fdata-sections
42 TARGET_LDFLAGS += -Wl,--gc-sections
43
44 CONFIGURE_ARGS += \
45 --disable-doc \
46 --disable-gcc-warnings \
47 --disable-ld-version-script \
48 --disable-valgrind-tests
49
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/
58 endef
59
60 define Package/libtasn1/install
61 $(INSTALL_DIR) $(1)/usr/lib
62 $(CP) $(PKG_INSTALL_DIR)/usr/lib/libtasn1.so.* $(1)/usr/lib/
63 endef
64
65 $(eval $(call BuildPackage,libtasn1))