shairplay: remove
[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.19.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:=1613f0ac1cf484d6ec0ce3b8c06d56263cc7242f1c23b30d82d23de345a63f7a
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 PKG_BUILD_FLAGS:=gc-sections
27
28 include $(INCLUDE_DIR)/package.mk
29 include $(INCLUDE_DIR)/host-build.mk
30
31 define Package/libtasn1
32 SECTION:=libs
33 CATEGORY:=Libraries
34 TITLE:=An ASN.1 and DER structures manipulation library
35 URL:=https://www.gnu.org/software/libtasn1/
36 endef
37
38 define Package/libtasn1/description
39 This is a library for Abstract Syntax Notation One (ASN.1) and
40 Distinguish Encoding Rules (DER) manipulation.
41 endef
42
43 HOST_CFLAGS += -std=gnu99
44
45 HOST_CONFIGURE_ARGS += \
46 --disable-shared \
47 --with-pic
48
49 CONFIGURE_ARGS += \
50 --disable-doc \
51 --disable-gcc-warnings \
52 --disable-ld-version-script \
53 --disable-valgrind-tests
54
55 define Build/InstallDev
56 # $(INSTALL_DIR) $(1)/usr/bin
57 # $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/* $(1)/usr/bin/
58 $(INSTALL_DIR) $(1)/usr/include
59 $(CP) $(PKG_INSTALL_DIR)/usr/include/libtasn1.h $(1)/usr/include/
60 $(INSTALL_DIR) $(1)/usr/lib
61 $(CP) $(PKG_INSTALL_DIR)/usr/lib/libtasn1.{a,so*} $(1)/usr/lib/
62 $(INSTALL_DIR) $(1)/usr/lib/pkgconfig
63 $(CP) $(PKG_INSTALL_DIR)/usr/lib/pkgconfig/libtasn1*.pc $(1)/usr/lib/pkgconfig/
64 endef
65
66 define Package/libtasn1/install
67 $(INSTALL_DIR) $(1)/usr/lib
68 $(CP) $(PKG_INSTALL_DIR)/usr/lib/libtasn1.so.* $(1)/usr/lib/
69 endef
70
71 $(eval $(call HostBuild))
72 $(eval $(call BuildPackage,libtasn1))