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.

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