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.

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