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.

73 lines
1.9 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:=2
  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. HOST_CFLAGS += -std=gnu99
  34. TARGET_CFLAGS += -ffunction-sections -fdata-sections
  35. TARGET_LDFLAGS += -Wl,--gc-sections
  36. HOST_CONFIGURE_ARGS += \
  37. --disable-shared \
  38. --with-pic
  39. CONFIGURE_ARGS += \
  40. --disable-doc \
  41. --disable-gcc-warnings \
  42. --disable-ld-version-script \
  43. --disable-valgrind-tests
  44. define Build/InstallDev
  45. # $(INSTALL_DIR) $(1)/usr/bin
  46. # $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/* $(1)/usr/bin/
  47. $(INSTALL_DIR) $(1)/usr/include
  48. $(CP) $(PKG_INSTALL_DIR)/usr/include/libtasn1.h $(1)/usr/include/
  49. $(INSTALL_DIR) $(1)/usr/lib
  50. $(CP) $(PKG_INSTALL_DIR)/usr/lib/libtasn1.{a,so*} $(1)/usr/lib/
  51. $(INSTALL_DIR) $(1)/usr/lib/pkgconfig
  52. $(CP) $(PKG_INSTALL_DIR)/usr/lib/pkgconfig/libtasn1*.pc $(1)/usr/lib/pkgconfig/
  53. endef
  54. define Package/libtasn1/install
  55. $(INSTALL_DIR) $(1)/usr/lib
  56. $(CP) $(PKG_INSTALL_DIR)/usr/lib/libtasn1.so.* $(1)/usr/lib/
  57. endef
  58. $(eval $(call HostBuild))
  59. $(eval $(call BuildPackage,libtasn1))