Makefile 4.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138
  1. # $OpenBSD: Makefile,v 1.38 2017/04/25 09:20:53 ajacoutot Exp $
  2. COMMENT-main= UW e-mail client
  3. COMMENT-c-client= UW c-client mail access routines
  4. COMMENT-imap= UW IMAP4rev1/POP2/POP3 mail servers
  5. COMMENT-mailutil= UW IMAP4rev1/POP2/POP3 mail utility
  6. COMMENT-pico= UW text editor
  7. COMMENT-pilot= UW file system navigator
  8. V= 2.21
  9. DISTNAME= alpine-${V}
  10. EXTRACT_SUFX= .tar.xz
  11. SHARED_LIBS= c-client 7.0
  12. # grep "PICO version" ${WRKSRC}/pico/pico.h
  13. PICO_V= 5.09
  14. # grep PILOT_VERSION ${WRKSRC}/pico/pilot.c
  15. PILOT_V= 2.99
  16. PKGNAME-main= alpine-${V}
  17. PKGNAME-c-client= c-client-${V}
  18. PKGNAME-imap= imap-uw-${V}
  19. PKGNAME-mailutil= mailutil-uw-${V}
  20. PKGNAME-pico= pico-${PICO_V}
  21. PKGNAME-pilot= pilot-${PILOT_V}
  22. REVISION-pilot= 17
  23. EPOCH-c-client= 0
  24. EPOCH-imap= 0
  25. EPOCH-mailutil= 0
  26. CATEGORIES= mail
  27. CATEGORIES-main= mail news
  28. CATEGORIES-c-client= devel mail
  29. CATEGORIES-pico= editors
  30. CATEGORIES-pilot= sysutils
  31. HOMEPAGE= http://patches.freeiz.com/alpine/
  32. # Apache 2.0
  33. PERMIT_PACKAGE_CDROM= Yes
  34. MASTER_SITES= http://patches.freeiz.com/alpine/release/src/ \
  35. https://www.mpeters.org/mirror/
  36. MULTI_PACKAGES= -main -c-client -imap -mailutil -pico -pilot
  37. WANTLIB += c crypto iconv intl ncurses ssl
  38. WANTLIB-main= ${WANTLIB} pthread
  39. WANTLIB-c-client= # empty
  40. WANTLIB-pico= ${WANTLIB} pthread
  41. WANTLIB-pilot= ${WANTLIB} pthread
  42. LIB_DEPENDS= devel/gettext
  43. BUILD_DEPENDS= textproc/aspell/core
  44. RUN_DEPENDS-main= textproc/aspell/core
  45. RUN_DEPENDS-pico= textproc/aspell/core
  46. # Link error: c-client not found!
  47. USE_LIBTOOL= gnu
  48. SHLIB= libc-client.so.${LIBc-client_VERSION}
  49. MAKE_FLAGS= EXTRACFLAGS="${CFLAGS}" \
  50. SHLIB="${SHLIB}" \
  51. SHLIBNAME=${SHLIB} \
  52. CC="${CC}"
  53. CONFIGURE_STYLE= gnu
  54. CONFIGURE_ENV= CPPFLAGS="-I${LOCALBASE}/include" \
  55. LDFLAGS="-L${LOCALBASE}/lib" \
  56. ac_cv_search_regcomp=-lc \
  57. ac_cv_search_SSL_library_init="`pkg-config --libs openssl`"
  58. CONFIGURE_ARGS= --with-system-pinerc=${SYSCONFDIR}/pine.conf \
  59. --with-system-fixed-pinerc=${SYSCONFDIR}/pine.conf.fixed \
  60. --with-system-mail-directory=/var/mail \
  61. --with-ssl-certs-dir=/etc/ssl \
  62. --with-simple-spellcheck=aspell \
  63. --with-interactive-spellcheck=aspell \
  64. --with-c-client-target=bso \
  65. --with-debug-level=0 \
  66. --without-ldap \
  67. --without-tcl \
  68. --without-npa \
  69. --enable-quotas \
  70. --disable-debug
  71. HEADERS= c-client.h dummy.h env.h env_unix.h fdstring.h \
  72. flockcyg.h flocksim.h flstring.h fs.h ftl.h \
  73. imap4r1.h linkage.c linkage.h mail.h misc.h \
  74. netmsg.h newsrc.h nl.h nntp.h osdep.h pseudo.h \
  75. rfc822.h smtp.h sslio.h tcp.h tcp_unix.h unix.h \
  76. utf8.h utf8aux.h
  77. post-install:
  78. # alpine, pico, pilot
  79. ${INSTALL_DATA_DIR} ${PREFIX}/share/{doc,examples}/alpine
  80. ${INSTALL_DATA} ${WRKSRC}/doc/tech-notes/tech-notes.txt \
  81. ${WRKSRC}/doc/mailcap.unx \
  82. ${WRKSRC}/doc/mime.types \
  83. ${PREFIX}/share/doc/alpine
  84. ${WRKBUILD}/alpine/alpine -conf > \
  85. ${PREFIX}/share/examples/alpine/pine.conf
  86. # c-client
  87. ${INSTALL_DATA_DIR} ${PREFIX}/include/c-client
  88. cd ${WRKSRC}/c-client; ${INSTALL_DATA} ${HEADERS} \
  89. ${PREFIX}/include/c-client
  90. ${INSTALL_DATA} ${WRKBUILD}/c-client/c-client.a \
  91. ${PREFIX}/lib/libc-client.a
  92. @if [ -f ${WRKBUILD}/imap/c-client/${SHLIB} ]; then \
  93. ${INSTALL_DATA} ${WRKSRC}/c-client/${SHLIB} ${PREFIX}/lib; \
  94. fi
  95. # imap-uw
  96. ${INSTALL_PROGRAM} ${WRKBUILD}/imap/imapd/imapd ${PREFIX}/libexec
  97. ${INSTALL_PROGRAM} ${WRKBUILD}/imap/ipopd/ipop2d ${PREFIX}/libexec
  98. ${INSTALL_PROGRAM} ${WRKBUILD}/imap/ipopd/ipop3d ${PREFIX}/libexec
  99. ${INSTALL_PROGRAM} ${WRKBUILD}/imap/mlock/mlock ${PREFIX}/libexec
  100. ${INSTALL_PROGRAM} ${WRKBUILD}/imap/dmail/dmail ${PREFIX}/bin
  101. ${INSTALL_PROGRAM} ${WRKBUILD}/imap/tmail/tmail ${PREFIX}/bin
  102. ${INSTALL_MAN} ${WRKSRC}/imap/src/{imapd,ipopd}/*.8 \
  103. ${PREFIX}/man/man8
  104. ${INSTALL_MAN} ${WRKSRC}/imap/src/{dmail,tmail}/*.1 \
  105. ${PREFIX}/man/man1
  106. ${INSTALL_DATA_DIR} ${PREFIX}/share/doc/imap-uw
  107. ${INSTALL_DATA_DIR} ${PREFIX}/share/examples/imap-uw
  108. ${INSTALL_DATA} ${FILESDIR}/c-client.cf \
  109. ${PREFIX}/share/examples/imap-uw
  110. tar -C ${WRKSRC}/imap/docs -cf - . | \
  111. tar -C ${PREFIX}/share/doc/imap-uw -xf -
  112. find ${PREFIX}/share/doc/imap-uw -type f -exec chmod 0644 {} \;
  113. # mailutil
  114. ${INSTALL_PROGRAM} ${WRKBUILD}/imap/mailutil/mailutil ${PREFIX}/bin
  115. ${INSTALL_MAN} ${WRKSRC}/imap/src/mailutil/mailutil.1 ${PREFIX}/man/man1
  116. .include <bsd.port.mk>