Merge pull request #11220 from jow-/openconnect-quote-fix
[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.16.0
12 PKG_RELEASE:=1
13
14 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
15 PKG_SOURCE_URL:=@GNU/$(PKG_NAME)
16 PKG_HASH:=0e0fb0903839117cb6e3b56e68222771bebf22ad7fc2295a0ed7d576e8d4329d
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 include $(INCLUDE_DIR)/host-build.mk
29
30 define Package/libtasn1
31 SECTION:=libs
32 CATEGORY:=Libraries
33 TITLE:=An ASN.1 and DER structures manipulation library
34 URL:=https://www.gnu.org/software/libtasn1/
35 endef
36
37 define Package/libtasn1/description
38 This is a library for Abstract Syntax Notation One (ASN.1) and
39 Distinguish Encoding Rules (DER) manipulation.
40 endef
41
42 TARGET_CFLAGS += -ffunction-sections -fdata-sections
43 TARGET_LDFLAGS += -Wl,--gc-sections
44
45 CONFIGURE_ARGS += \
46 --disable-doc \
47 --disable-gcc-warnings \
48 --disable-ld-version-script \
49 --disable-valgrind-tests
50
51 define Build/InstallDev
52 # $(INSTALL_DIR) $(1)/usr/bin
53 # $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/* $(1)/usr/bin/
54 $(INSTALL_DIR) $(1)/usr/include
55 $(CP) $(PKG_INSTALL_DIR)/usr/include/libtasn1.h $(1)/usr/include/
56 $(INSTALL_DIR) $(1)/usr/lib
57 $(CP) $(PKG_INSTALL_DIR)/usr/lib/libtasn1.{a,so*} $(1)/usr/lib/
58 $(INSTALL_DIR) $(1)/usr/lib/pkgconfig
59 $(CP) $(PKG_INSTALL_DIR)/usr/lib/pkgconfig/libtasn1*.pc $(1)/usr/lib/pkgconfig/
60 endef
61
62 define Package/libtasn1/install
63 $(INSTALL_DIR) $(1)/usr/lib
64 $(CP) $(PKG_INSTALL_DIR)/usr/lib/libtasn1.so.* $(1)/usr/lib/
65 endef
66
67 $(eval $(call HostBuild))
68 $(eval $(call BuildPackage,libtasn1))