You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

65 lines
1.7 KiB

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