Makefile 1.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142
  1. # This file is part of the OpenADK project. OpenADK is copyrighted
  2. # material, please see the LICENCE file in the top-level directory.
  3. include $(TOPDIR)/rules.mk
  4. PKG_NAME:= libesmtp
  5. PKG_VERSION:= 1.0.6
  6. PKG_RELEASE:= 2
  7. PKG_MD5SUM:= bf3915e627fd8f35524a8fdfeed979c8
  8. PKG_DESCR:= implements the client side of the smtp protocol
  9. PKG_SECTION:= libs/net
  10. PKG_BUILDDEP:= autotool
  11. PKG_URL:= http://www.stafford.uklinux.net/libesmtp/
  12. PKG_SITES:= http://www.stafford.uklinux.net/libesmtp/
  13. PKG_OPTS:= dev
  14. DISTFILES:= ${PKG_NAME}-${PKG_VERSION}.tar.bz2
  15. PKG_FLAVOURS_LIBESMTP:= WITH_SSL
  16. PKGFD_WITH_SSL:= enable ssl support
  17. PKGFS_WITH_SSL:= libopenssl
  18. PKGFB_WITH_SSL:= openssl
  19. include $(TOPDIR)/mk/package.mk
  20. $(eval $(call PKG_template,LIBESMTP,libesmtp,$(PKG_VERSION)-${PKG_RELEASE},${PKG_DEPENDS},${PKG_DESCR},${PKG_SECTION},${PKG_OPTS}))
  21. AUTOTOOL_STYLE:= autoreconf
  22. ifneq (${ADK_PACKAGE_LIBESMTP_WITH_SSL},)
  23. CONFIGURE_ARGS+= --with-openssl
  24. else
  25. CONFIGURE_ARGS+= --without-openssl
  26. endif
  27. libesmtp-install:
  28. $(INSTALL_DIR) $(IDIR_LIBESMTP)/usr/lib/esmtp-plugins
  29. $(CP) $(WRKINST)/usr/lib/libesmtp.so* $(IDIR_LIBESMTP)/usr/lib/
  30. $(CP) $(WRKINST)/usr/lib/esmtp-plugins/*.so \
  31. $(IDIR_LIBESMTP)/usr/lib/esmtp-plugins/
  32. include ${TOPDIR}/mk/pkg-bottom.mk