Makefile 1.2 KB

1234567891011121314151617181920212223242526272829303132333435363738394041
  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 $(ADK_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_URL:= http://www.stafford.uklinux.net/libesmtp/
  11. PKG_SITES:= http://www.stafford.uklinux.net/libesmtp/
  12. PKG_OPTS:= dev
  13. DISTFILES:= ${PKG_NAME}-${PKG_VERSION}.tar.bz2
  14. PKG_FLAVOURS_LIBESMTP:= WITH_SSL
  15. PKGFD_WITH_SSL:= enable ssl support
  16. PKGFS_WITH_SSL:= libopenssl
  17. PKGFB_WITH_SSL:= openssl
  18. include $(ADK_TOPDIR)/mk/package.mk
  19. $(eval $(call PKG_template,LIBESMTP,libesmtp,$(PKG_VERSION)-${PKG_RELEASE},${PKG_DEPENDS},${PKG_DESCR},${PKG_SECTION},${PKG_OPTS}))
  20. AUTOTOOL_STYLE:= autoreconf
  21. ifneq (${ADK_PACKAGE_LIBESMTP_WITH_SSL},)
  22. CONFIGURE_ARGS+= --with-openssl
  23. else
  24. CONFIGURE_ARGS+= --without-openssl
  25. endif
  26. libesmtp-install:
  27. $(INSTALL_DIR) $(IDIR_LIBESMTP)/usr/lib/esmtp-plugins
  28. $(CP) $(WRKINST)/usr/lib/libesmtp.so* $(IDIR_LIBESMTP)/usr/lib/
  29. $(CP) $(WRKINST)/usr/lib/esmtp-plugins/*.so \
  30. $(IDIR_LIBESMTP)/usr/lib/esmtp-plugins/
  31. include ${ADK_TOPDIR}/mk/pkg-bottom.mk