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.

60 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.9
  10. PKG_RELEASE:=1
  11. PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
  12. PKG_SOURCE_URL:=@GNU/$(PKG_NAME)
  13. PKG_MD5SUM:=4f6f7a8fd691ac2b8307c8ca365bad711db607d4ad5966f6938a9d2ecd65c920
  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. --disable-gcc-warnings \
  34. --enable-static
  35. define Build/InstallDev
  36. $(INSTALL_DIR) $(1)/usr/bin
  37. $(INSTALL_DIR) $(1)/usr/include
  38. $(CP) $(PKG_INSTALL_DIR)/usr/include/libtasn1.h $(1)/usr/include/
  39. $(INSTALL_DIR) $(1)/usr/lib
  40. $(CP) $(PKG_INSTALL_DIR)/usr/lib/libtasn1.{a,so*} $(1)/usr/lib/
  41. $(INSTALL_DIR) $(1)/usr/lib/pkgconfig
  42. $(CP) $(PKG_INSTALL_DIR)/usr/lib/pkgconfig/libtasn1*.pc $(1)/usr/lib/pkgconfig/
  43. endef
  44. define Package/libtasn1/install
  45. $(INSTALL_DIR) $(1)/usr/lib
  46. $(CP) $(PKG_INSTALL_DIR)/usr/lib/libtasn1.so.* $(1)/usr/lib/
  47. endef
  48. $(eval $(call BuildPackage,libtasn1))