Merge pull request #7792 from trldp/master
[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.13
12 PKG_RELEASE:=2
13
14 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
15 PKG_SOURCE_URL:=@GNU/$(PKG_NAME)
16 PKG_HASH:=7e528e8c317ddd156230c4e31d082cd13e7ddeb7a54824be82632209550c8cca
17
18 PKG_MAINTAINER:=Nikos Mavrogiannopoulos <n.mavrogiannopoulos@gmail.com>
19 PKG_LICENSE:=LGPLv2.1+
20 PKG_LICENSE_FILES:=COPYING.LIB
21
22 #PKG_FIXUP:=autoreconf
23 PKG_INSTALL:=1
24
25 include $(INCLUDE_DIR)/package.mk
26
27 define Package/libtasn1
28 SECTION:=libs
29 CATEGORY:=Libraries
30 TITLE:=An ASN.1 and DER structures manipulation library
31 URL:=https://www.gnu.org/software/libtasn1/
32 endef
33
34 define Package/libtasn1/description
35 This is a library for Abstract Syntax Notation One (ASN.1) and
36 Distinguish Encoding Rules (DER) manipulation.
37 endef
38
39 TARGET_LDFLAGS += -Wl,--gc-sections
40
41 CONFIGURE_ARGS += \
42 --disable-doc \
43 --disable-gcc-warnings \
44 --disable-ld-version-script \
45 --disable-valgrind-tests
46
47 define Build/InstallDev
48 $(INSTALL_DIR) $(1)/usr/bin
49 $(INSTALL_DIR) $(1)/usr/include
50 $(CP) $(PKG_INSTALL_DIR)/usr/include/libtasn1.h $(1)/usr/include/
51 $(INSTALL_DIR) $(1)/usr/lib
52 $(CP) $(PKG_INSTALL_DIR)/usr/lib/libtasn1.{a,so*} $(1)/usr/lib/
53 $(INSTALL_DIR) $(1)/usr/lib/pkgconfig
54 $(CP) $(PKG_INSTALL_DIR)/usr/lib/pkgconfig/libtasn1*.pc $(1)/usr/lib/pkgconfig/
55 endef
56
57 define Package/libtasn1/install
58 $(INSTALL_DIR) $(1)/usr/lib
59 $(CP) $(PKG_INSTALL_DIR)/usr/lib/libtasn1.so.* $(1)/usr/lib/
60 endef
61
62 $(eval $(call BuildPackage,libtasn1))