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.

67 lines
1.8 KiB

  1. #
  2. # Copyright (C) 2008-2014 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:=1
  11. PKG_MD5SUM:=c4fedc999b6c3820296b0eb92cc2e252
  12. PKG_MAINTAINER:=Othmar Truniger <github@truniger.ch>
  13. PKG_LICENSE:=LGPL-2.0+
  14. PKG_LICENSE_FILES:=COPYING
  15. PKG_SOURCE_URL:=http://www.stafford.uklinux.net/libesmtp
  16. PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
  17. include $(INCLUDE_DIR)/package.mk
  18. define Package/libesmtp
  19. SECTION:=libs
  20. CATEGORY:=Libraries
  21. TITLE:=A Library for Posting Electronic Mail
  22. URL:=http://www.stafford.uklinux.net/libesmtp/
  23. DEPENDS:=+libpthread
  24. endef
  25. define Build/Configure
  26. $(call Build/Configure/Default,--without-openssl)
  27. endef
  28. define Build/Compile
  29. $(MAKE) -C $(PKG_BUILD_DIR) \
  30. DESTDIR="$(PKG_INSTALL_DIR)" \
  31. all install
  32. endef
  33. define Build/InstallDev
  34. mkdir -p $(STAGING_DIR)/usr/include
  35. $(CP) $(PKG_INSTALL_DIR)/usr/include/libesmtp.h $(STAGING_DIR)/usr/include/
  36. $(CP) $(PKG_INSTALL_DIR)/usr/include/auth-client.h $(STAGING_DIR)/usr/include/
  37. $(CP) $(PKG_INSTALL_DIR)/usr/include/auth-plugin.h $(STAGING_DIR)/usr/include/
  38. mkdir -p $(STAGING_DIR)/usr/lib
  39. $(CP) $(PKG_INSTALL_DIR)/usr/lib/libesmtp.{a,so*} $(STAGING_DIR)/usr/lib/
  40. $(INSTALL_DIR) $(2)/bin
  41. $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/libesmtp-config $(2)/bin/
  42. $(SED) 's,^\(prefix\|exec_prefix\)=.*,\1=$(STAGING_DIR)/usr,g' $(2)/bin/libesmtp-config
  43. endef
  44. define Build/UninstallDev
  45. rm -rf \
  46. $(STAGING_DIR)/usr/include/libesmtp.h \
  47. $(STAGING_DIR)/usr/include/auth-client.h \
  48. $(STAGING_DIR)/usr/include/auth-plugin.h \
  49. $(STAGING_DIR)/usr/lib/libesmtp.{a,so*}
  50. endef
  51. define Package/libesmtp/install
  52. mkdir -p $(1)/usr/lib
  53. $(CP) $(PKG_INSTALL_DIR)/usr/lib/libesmtp.so.* $(1)/usr/lib/
  54. endef
  55. $(eval $(call BuildPackage,libesmtp))