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.

64 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:=1
  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:=LGPLv2.1-or-later
  16. PKG_LICENSE_FILES:=COPYING.LIB
  17. #PKG_FIXUP:=autoreconf
  18. PKG_INSTALL:=1
  19. PKG_BUILD_PARALLEL:=1
  20. include $(INCLUDE_DIR)/package.mk
  21. define Package/libtasn1
  22. SECTION:=libs
  23. CATEGORY:=Libraries
  24. TITLE:=An ASN.1 and DER structures manipulation library
  25. URL:=https://www.gnu.org/software/libtasn1/
  26. endef
  27. define Package/libtasn1/description
  28. This is a library for Abstract Syntax Notation One (ASN.1) and
  29. Distinguish Encoding Rules (DER) manipulation.
  30. endef
  31. TARGET_CFLAGS += -ffunction-sections -fdata-sections
  32. TARGET_LDFLAGS += -Wl,--gc-sections
  33. CONFIGURE_ARGS += \
  34. --disable-doc \
  35. --disable-gcc-warnings \
  36. --disable-ld-version-script \
  37. --disable-valgrind-tests
  38. define Build/InstallDev
  39. $(INSTALL_DIR) $(1)/usr/bin
  40. $(INSTALL_DIR) $(1)/usr/include
  41. $(CP) $(PKG_INSTALL_DIR)/usr/include/libtasn1.h $(1)/usr/include/
  42. $(INSTALL_DIR) $(1)/usr/lib
  43. $(CP) $(PKG_INSTALL_DIR)/usr/lib/libtasn1.{a,so*} $(1)/usr/lib/
  44. $(INSTALL_DIR) $(1)/usr/lib/pkgconfig
  45. $(CP) $(PKG_INSTALL_DIR)/usr/lib/pkgconfig/libtasn1*.pc $(1)/usr/lib/pkgconfig/
  46. endef
  47. define Package/libtasn1/install
  48. $(INSTALL_DIR) $(1)/usr/lib
  49. $(CP) $(PKG_INSTALL_DIR)/usr/lib/libtasn1.so.* $(1)/usr/lib/
  50. endef
  51. $(eval $(call BuildPackage,libtasn1))