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.

59 lines
1.5 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.8
  10. PKG_RELEASE:=2
  11. PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
  12. PKG_SOURCE_URL:=ftp://ftp.gnu.org/gnu/libtasn1
  13. PKG_MD5SUM:=9a6767705725544f2b86670dcfb34107
  14. PKG_LICENSE:=LGPLv2.1+
  15. PKG_LICENSE_FILES:=COPYING.LIB
  16. #PKG_FIXUP:=autoreconf
  17. PKG_INSTALL:=1
  18. include $(INCLUDE_DIR)/package.mk
  19. define Package/libtasn1
  20. SECTION:=libs
  21. CATEGORY:=Libraries
  22. TITLE:=An ASN.1 and DER structures manipulation library
  23. MAINTAINER:=Nikos Mavrogiannopoulos <n.mavrogiannopoulos@gmail.com>
  24. URL:=ftp://ftp.gnu.org/gnu/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_CFLAGS += $(FPIC)
  31. CONFIGURE_ARGS += \
  32. --enable-shared \
  33. --enable-static
  34. define Build/InstallDev
  35. $(INSTALL_DIR) $(1)/usr/bin
  36. $(INSTALL_DIR) $(1)/usr/include
  37. $(CP) $(PKG_INSTALL_DIR)/usr/include/libtasn1.h $(1)/usr/include/
  38. $(INSTALL_DIR) $(1)/usr/lib
  39. $(CP) $(PKG_INSTALL_DIR)/usr/lib/libtasn1.{a,so*} $(1)/usr/lib/
  40. $(INSTALL_DIR) $(1)/usr/lib/pkgconfig
  41. $(CP) $(PKG_INSTALL_DIR)/usr/lib/pkgconfig/libtasn1*.pc $(1)/usr/lib/pkgconfig/
  42. endef
  43. define Package/libtasn1/install
  44. $(INSTALL_DIR) $(1)/usr/lib
  45. $(CP) $(PKG_INSTALL_DIR)/usr/lib/libtasn1.so.* $(1)/usr/lib/
  46. endef
  47. $(eval $(call BuildPackage,libtasn1))