992f16bae015cab0ad10a5e4c2baf49e0c32a79d
[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
22 #PKG_FIXUP:=autoreconf
23 PKG_INSTALL:=1
24 PKG_BUILD_PARALLEL:=1
25
26 include $(INCLUDE_DIR)/package.mk
27
28 define Package/libtasn1
29 SECTION:=libs
30 CATEGORY:=Libraries
31 TITLE:=An ASN.1 and DER structures manipulation library
32 URL:=https://www.gnu.org/software/libtasn1/
33 endef
34
35 define Package/libtasn1/description
36 This is a library for Abstract Syntax Notation One (ASN.1) and
37 Distinguish Encoding Rules (DER) manipulation.
38 endef
39
40 TARGET_CFLAGS += -ffunction-sections -fdata-sections
41 TARGET_LDFLAGS += -Wl,--gc-sections
42
43 CONFIGURE_ARGS += \
44 --disable-doc \
45 --disable-gcc-warnings \
46 --disable-ld-version-script \
47 --disable-valgrind-tests
48
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/
57 endef
58
59 define Package/libtasn1/install
60 $(INSTALL_DIR) $(1)/usr/lib
61 $(CP) $(PKG_INSTALL_DIR)/usr/lib/libtasn1.so.* $(1)/usr/lib/
62 endef
63
64 $(eval $(call BuildPackage,libtasn1))