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.

55 lines
1.5 KiB

  1. #
  2. # Copyright (C) 2008-2016 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:=libesmtp
  9. PKG_VERSION:=1.0.6
  10. PKG_RELEASE:=3
  11. PKG_MAINTAINER:=Othmar Truniger <github@truniger.ch>
  12. PKG_LICENSE:=LGPL-2.0+
  13. PKG_LICENSE_FILES:=COPYING
  14. PKG_SOURCE_PROTO:=git
  15. PKG_SOURCE_URL:=https://github.com/tru7/libesmtp.git
  16. PKG_SOURCE_VERSION=10e9a6df9f76da610941addf71b9a3cbf94f2e9f
  17. PKG_SOURCE_SUBDIR:=$(PKG_NAME)-$(PKG_VERSION)
  18. PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
  19. PKG_BUILD_PARALLEL:=1
  20. PKG_INSTALL:=1
  21. include $(INCLUDE_DIR)/package.mk
  22. define Package/libesmtp
  23. SECTION:=libs
  24. CATEGORY:=Libraries
  25. TITLE:=A Library for Posting Electronic Mail
  26. URL:=https://github.com/tru7/libesmtp.git
  27. DEPENDS:=+libpthread +libopenssl
  28. endef
  29. define Build/InstallDev
  30. $(INSTALL_DIR) $(1)/usr/bin
  31. $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/libesmtp-config $(1)/usr/bin/
  32. $(SED) 's,^\(prefix\|exec_prefix\)=.*,\1=$(STAGING_DIR)/usr,g' $(1)/usr/bin/libesmtp-config
  33. $(INSTALL_DIR) $(1)/usr/include
  34. $(CP) $(PKG_INSTALL_DIR)/usr/include/*.h $(1)/usr/include/
  35. $(INSTALL_DIR) $(1)/usr/lib
  36. $(CP) $(PKG_INSTALL_DIR)/usr/lib/libesmtp.{a,so*} $(1)/usr/lib/
  37. $(INSTALL_DIR) $(2)/bin
  38. $(LN) ../../usr/bin/libesmtp-config $(2)/bin/
  39. endef
  40. define Package/libesmtp/install
  41. $(INSTALL_DIR) $(1)/usr/lib
  42. $(CP) $(PKG_INSTALL_DIR)/usr/lib/libesmtp.so.* $(1)/usr/lib/
  43. endef
  44. $(eval $(call BuildPackage,libesmtp))