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.

73 lines
2.3 KiB

  1. #
  2. # Copyright (C) 2017 Lucian Cristian <lucian.cristian@gmail.com>
  3. #
  4. include $(TOPDIR)/rules.mk
  5. PKG_NAME:=uw-imap
  6. PKG_VERSION:=2007f
  7. PKG_RELEASE:=1
  8. PKG_SOURCE:=imap-$(PKG_VERSION).tar.gz
  9. PKG_SOURCE_URL:= \
  10. https://www.mirrorservice.org/sites/ftp.cac.washington.edu/imap \
  11. http://ftp.ntua.gr/pub/net/mail/imap \
  12. http://gd.tuwien.ac.at/infosys/mail/imap
  13. PKG_HASH:=53e15a2b5c1bc80161d42e9f69792a3fa18332b7b771910131004eb520004a28
  14. PKG_BUILD_DIR:=$(BUILD_DIR)/imap-$(PKG_VERSION)
  15. PKG_MAINTAINER:=Lucian Cristian <lucian.cristian@gmail.com>
  16. PKG_LICENSE:=Apache-2.0
  17. PKG_LICENSE_FILES:=LICENSE.txt
  18. PKG_FIXUP:=autoreconf
  19. include $(INCLUDE_DIR)/package.mk
  20. define Package/uw-imap
  21. SECTION:=libs
  22. CATEGORY:=Libraries
  23. TITLE:=University of Washington IMAP toolkit
  24. URL:=https://www.washington.edu/imap/
  25. DEPENDS:=+libpthread +libopenssl
  26. endef
  27. define Package/uw-imap/description
  28. The UW IMAP tookit includes the following:
  29. c-lient library : an API (application programming interface) used to build email clients and servers,
  30. including support for IMAP,POP3, SMTP and NNTP protocols and for local mailbox file access on Unix and Windows
  31. endef
  32. TARGET_CFLAGS += \
  33. -fPIC -DPIC -D_REENTRANT -DDISABLE_POP_PROXY -fno-strict-aliasing -Wno-pointer-sign \
  34. -Wno-implicit-function-declaration -Wno-incompatible-pointer-types
  35. MAKE_FLAGS += \
  36. SSLINCLUDE=$(STAGING_DIR)/usr/include SSLCERTS=/etc/ssl/certs GCCOPTLEVEL=" -Os" \
  37. SSLDIR=$(STAGING_DIR)/usr SHLIBNAME=libc-client.so.$(PKG_VERSION) $(if $(CONFIG_IPV6),IP=6,IP=4)
  38. define Build/Compile
  39. $(MAKE) -C $(PKG_BUILD_DIR) slx EXTRACFLAGS='$(TARGET_CFLAGS)' CC='$(TARGET_CC)' $(MAKE_FLAGS)
  40. endef
  41. define Build/InstallDev
  42. $(INSTALL_DIR) $(1)/usr/lib \
  43. $(1)/usr/include/c-client
  44. $(CP) $(PKG_BUILD_DIR)/c-client/libc-client.so.$(PKG_VERSION) $(1)/usr/lib/
  45. $(LN) libc-client.so.$(PKG_VERSION) $(1)/usr/lib/libc-client.so
  46. $(CP) $(PKG_BUILD_DIR)/c-client/linkage.h $(1)/usr/include/c-client/
  47. $(CP) $(PKG_BUILD_DIR)/src/c-client/*.h $(1)/usr/include/c-client/
  48. $(CP) $(PKG_BUILD_DIR)/src/osdep/unix/*.h $(1)/usr/include/c-client/
  49. $(LN) os_slx.h $(1)/usr/include/c-client/osdep.h
  50. endef
  51. define Package/uw-imap/install
  52. $(INSTALL_DIR) $(1)/usr/lib
  53. $(CP) $(PKG_BUILD_DIR)/c-client/libc-client.so.$(PKG_VERSION) $(1)/usr/lib/
  54. $(LN) libc-client.so.$(PKG_VERSION) $(1)/usr/lib/libc-client.so
  55. endef
  56. $(eval $(call BuildPackage,uw-imap))