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) 2008-2015 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:=2
  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. PKG_BUILD_PARALLEL:=1
  18. PKG_INSTALL:=1
  19. include $(INCLUDE_DIR)/package.mk
  20. define Package/libesmtp
  21. SECTION:=libs
  22. CATEGORY:=Libraries
  23. TITLE:=A Library for Posting Electronic Mail
  24. URL:=http://www.stafford.uklinux.net/libesmtp/
  25. DEPENDS:=+libpthread
  26. endef
  27. CONFIGURE_ARGS += \
  28. --without-openssl
  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))