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.

56 lines
1.4 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.0
  10. PKG_RELEASE:=1
  11. PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
  12. PKG_SOURCE_URL:=ftp://ftp.gnu.org/gnu/libtasn1
  13. PKG_MD5SUM:=d3d2d9bce3b6668b9827a9df52635be1
  14. #PKG_FIXUP:=autoreconf
  15. PKG_INSTALL:=1
  16. include $(INCLUDE_DIR)/package.mk
  17. define Package/libtasn1
  18. SECTION:=libs
  19. CATEGORY:=Libraries
  20. TITLE:=An ASN.1 and DER structures manipulation library
  21. URL:=ftp://ftp.gnu.org/gnu/libtasn1/
  22. endef
  23. define Package/libtasn1/description
  24. This is a library for Abstract Syntax Notation One (ASN.1) and
  25. Distinguish Encoding Rules (DER) manipulation.
  26. endef
  27. TARGET_CFLAGS += $(FPIC)
  28. CONFIGURE_ARGS += \
  29. --enable-shared \
  30. --enable-static
  31. define Build/InstallDev
  32. $(INSTALL_DIR) $(1)/usr/bin
  33. $(INSTALL_DIR) $(1)/usr/include
  34. $(CP) $(PKG_INSTALL_DIR)/usr/include/libtasn1.h $(1)/usr/include/
  35. $(INSTALL_DIR) $(1)/usr/lib
  36. $(CP) $(PKG_INSTALL_DIR)/usr/lib/libtasn1.{a,so*} $(1)/usr/lib/
  37. $(INSTALL_DIR) $(1)/usr/lib/pkgconfig
  38. $(CP) $(PKG_INSTALL_DIR)/usr/lib/pkgconfig/libtasn1*.pc $(1)/usr/lib/pkgconfig/
  39. endef
  40. define Package/libtasn1/install
  41. $(INSTALL_DIR) $(1)/usr/lib
  42. $(CP) $(PKG_INSTALL_DIR)/usr/lib/libtasn1.so.* $(1)/usr/lib/
  43. endef
  44. $(eval $(call BuildPackage,libtasn1))