openbsd-ports/mail/alpine/Makefile
ajacoutot 3dbd533fcd Set "Do Not Send Flowed Text" by default to allow sending proper inline
diffs ("cool!!!" sthen@).
Switch to REVISION and new DEPENDS.

Add a README.OpenBSD file explaining how to setup pop/imap/smtp.

Most work from Daniel Dickman (thanks!), with a couple of tweaks.
2010-08-31 20:07:10 +00:00

91 lines
2.3 KiB
Makefile

# $OpenBSD: Makefile,v 1.12 2010/08/31 20:07:10 ajacoutot Exp $
COMMENT-main= UW e-mail client
COMMENT-pico= UW text editor
COMMENT-pilot= UW file system navigator
V= 2.00
DISTNAME= alpine-${V}
PICO_V= 5.04 # grep "PICO version" ${WRKSRC}/pico/pico.h
PILOT_V= 2.99 # grep PILOT_VERSION ${WRKSRC}/pico/pilot.c
CATEGORIES= mail news
CATEGORIES-pico=editors
CATEGORIES-pilot=sysutils
PKGNAME-main= alpine-${V}
PKGNAME-pico= pico-${PICO_V}
PKGNAME-pilot= pilot-${PILOT_V}
REVISION-main= 1
REVISION-pico= 1
REVISION-pilot= 3
MAINTAINER= Antoine Jacoutot <ajacoutot@openbsd.org>
HOMEPAGE= http://www.washington.edu/alpine/
# Apache 2.0
PERMIT_PACKAGE_CDROM= Yes
PERMIT_PACKAGE_FTP= Yes
PERMIT_DISTFILES_CDROM= Yes
PERMIT_DISTFILES_FTP= Yes
MASTER_SITES= ftp://ftp.cac.washington.edu/alpine/
WANTLIB= c ncurses pthread
WANTLIB-main= ${WANTLIB} asn1 com_err crypto des gssapi kafs krb5 ssl
MULTI_PACKAGES= -main -pico -pilot
MODULES= devel/gettext
BUILD_DEPENDS= :c-client->=2007b:mail/imap-uw,-c-client \
:aspell-*:textproc/aspell/core
RUN_DEPENDS= :aspell-*:textproc/aspell/core
USE_LIBTOOL= Yes
CONFIGURE_STYLE=gnu
CONFIGURE_ENV= CPPFLAGS="-I${LOCALBASE}/include" \
LDFLAGS="-L${LOCALBASE}/lib" \
alpine_with_local_maildir="/var/mail"
CONFIGURE_ARGS= ${CONFIGURE_SHARED} \
--with-system-pinerc=${SYSCONFDIR}/pine.conf \
--with-system-fixed-pinerc=${SYSCONFDIR}/pine.conf.fixed \
--with-system-mail-directory=/var/mail \
--with-ssl-certs-dir=/etc/ssl \
--with-supplied-regex=no \
--without-tcl \
--enable-quotas
FLAVORS= ldap
FLAVOR?=
.if ${FLAVOR:L:Mldap}
CONFIGURE_ARGS+=--with-ldap-dir=${LOCALBASE}
LIB_DEPENDS+= ::databases/openldap,-main
WANTLIB+= sasl2 lber ldap
WANTLIB-pico= ${WANTLIB} asn1 com_err crypto gssapi krb5 ssl
WANTLIB-pilot= ${WANTLIB} asn1 com_err crypto gssapi krb5 ssl
.else
CONFIGURE_ARGS+=--without-ldap
.endif
pre-configure:
@cd ${WRKSRC} && ln -sf ${LOCALBASE}/include/c-client c-client
@cd ${WRKSRC}/imap/src && rm -rf c-client \
&& ln -sf ${LOCALBASE}/include/c-client c-client
${SUBST_CMD} ${WRKSRC}/alpine/Makefile.in \
${WRKSRC}/pico/Makefile.in
post-install:
${INSTALL_DATA_DIR} ${PREFIX}/share/doc/alpine
${INSTALL_DATA} ${WRKSRC}/doc/tech-notes.txt \
${WRKSRC}/doc/mailcap.unx \
${WRKSRC}/doc/mime.types \
${FILESDIR}/README.OpenBSD \
${PREFIX}/share/doc/alpine
.include <bsd.port.mk>