libtasn1: don't build host shared libs
[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:=2
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 HOST_CFLAGS += -std=gnu99
43 TARGET_CFLAGS += -ffunction-sections -fdata-sections
44 TARGET_LDFLAGS += -Wl,--gc-sections
45
46 HOST_CONFIGURE_ARGS += \
47 --disable-shared \
48 --with-pic
49
50 CONFIGURE_ARGS += \
51 --disable-doc \
52 --disable-gcc-warnings \
53 --disable-ld-version-script \
54 --disable-valgrind-tests
55
56 define Build/InstallDev
57 # $(INSTALL_DIR) $(1)/usr/bin
58 # $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/* $(1)/usr/bin/
59 $(INSTALL_DIR) $(1)/usr/include
60 $(CP) $(PKG_INSTALL_DIR)/usr/include/libtasn1.h $(1)/usr/include/
61 $(INSTALL_DIR) $(1)/usr/lib
62 $(CP) $(PKG_INSTALL_DIR)/usr/lib/libtasn1.{a,so*} $(1)/usr/lib/
63 $(INSTALL_DIR) $(1)/usr/lib/pkgconfig
64 $(CP) $(PKG_INSTALL_DIR)/usr/lib/pkgconfig/libtasn1*.pc $(1)/usr/lib/pkgconfig/
65 endef
66
67 define Package/libtasn1/install
68 $(INSTALL_DIR) $(1)/usr/lib
69 $(CP) $(PKG_INSTALL_DIR)/usr/lib/libtasn1.so.* $(1)/usr/lib/
70 endef
71
72 $(eval $(call HostBuild))
73 $(eval $(call BuildPackage,libtasn1))