0b8c509d20
ok fgsch@
106 lines
2.7 KiB
Makefile
106 lines
2.7 KiB
Makefile
# $OpenBSD: Makefile.inc,v 1.14 2005/05/03 15:37:16 jolan Exp $
|
|
|
|
DISTNAME= mutt-${VERSION}i
|
|
CATEGORIES= mail
|
|
|
|
HOMEPAGE= http://www.mutt.org/
|
|
|
|
MASTER_SITES_MUTT= ftp://ftp.fu-berlin.de/pub/unix/mail/mutt/ \
|
|
ftp://ftp.mutt.org/mutt/ \
|
|
ftp://ftp.gbnet.net/pub/mutt-international/ \
|
|
ftp://ftp.gwdg.de/pub/unix/mail/mutt/international/
|
|
|
|
MASTER_SITES0= http://www.spinnaker.de/mutt/compressed/
|
|
MASTER_SITES1= http://wwwcip.informatik.uni-erlangen.de/~sithglan/mutt/
|
|
|
|
MODULES= devel/gettext
|
|
|
|
# GPL
|
|
PERMIT_PACKAGE_CDROM= Yes
|
|
PERMIT_PACKAGE_FTP= Yes
|
|
PERMIT_DISTFILES_CDROM= Yes
|
|
PERMIT_DISTFILES_FTP= Yes
|
|
|
|
WANTLIB= c crypto des ssl
|
|
|
|
FLAVORS+= slang mixmaster compressed
|
|
FLAVOR?=
|
|
|
|
CONFIGURE_STYLE= autoconf old
|
|
CONFIGURE_ARGS= --with-sharedir="${PREFIX}/share/mutt" \
|
|
--with-docdir="${PREFIX}/share/doc/mutt" \
|
|
--enable-flock \
|
|
--disable-fcntl \
|
|
--enable-external_dotlock \
|
|
--enable-imap \
|
|
--enable-pop \
|
|
--with-ssl \
|
|
--sysconfdir=${CONFDIR}
|
|
|
|
.if ${KERBEROS5} == "yes"
|
|
CONFIGURE_ARGS+=--with-gss
|
|
WANTLIB+= gssapi krb5
|
|
.endif
|
|
|
|
CONFIGURE_ENV= CPPFLAGS="-I${LOCALBASE}/include" \
|
|
LDFLAGS="-L${LOCALBASE}/lib" \
|
|
ISPELL="${LOCALBASE}/bin/ispell"
|
|
|
|
.if ${FLAVOR:L:Mslang}
|
|
LIB_DEPENDS+= slang.14::devel/libslang
|
|
CONFIGURE_ARGS+= --with-slang="${PREFIX}"
|
|
WANTLIB+= m termlib
|
|
.else
|
|
CONFIGURE_ARGS+= --with-curses
|
|
WANTLIB+= ncurses
|
|
.endif
|
|
|
|
# compressed folder support provided by
|
|
# http://www.spinnaker.de/mutt/compressed/
|
|
.if ${FLAVOR:L:Mcompressed}
|
|
PATCHFILES+= patch-${VERSION}.rr.compressed.1.gz:0
|
|
PATCH_DIST_STRIP= -p1
|
|
CONFIGURE_ARGS+= --enable-compressed
|
|
CONFIGURE_STYLE+= automake
|
|
.else
|
|
SUPDISTFILES+= patch-${VERSION}.rr.compressed.1.gz:0
|
|
.endif
|
|
|
|
.if ${FLAVOR:L:Mmixmaster}
|
|
CONFIGURE_ARGS+= --with-mixmaster="${LOCALBASE}/sbin/mixmaster"
|
|
RUN_DEPENDS+= ::mail/mixmaster
|
|
.endif
|
|
|
|
.if ${FLAVOR:L:Mhcache}
|
|
PATCHFILES+= mutt-cvs-header-cache.29:1
|
|
PATCH_DIST_STRIP= -p1
|
|
CONFIGURE_ARGS+= --enable-hcache
|
|
LIB_DEPENDS+= gdbm.2::databases/gdbm
|
|
.else
|
|
SUPDISTFILES+= mutt-cvs-header-cache.29:1
|
|
CONFIGURE_ARGS+= --without-gdbm
|
|
.endif
|
|
|
|
.if defined(HOMESPOOL)
|
|
CONFIGURE_ARGS+= --with-homespool="${HOMESPOOL}"
|
|
.endif
|
|
|
|
.if defined(DOMAIN)
|
|
CONFIGURE_ARGS+= --with-domain="${DOMAIN}"
|
|
.endif
|
|
|
|
WRKDIST= ${WRKDIR}/${DISTNAME:S/i$//}
|
|
CONFDIR= ${SYSCONFDIR}/mutt
|
|
SUBST_VARS= CONFDIR
|
|
|
|
post-install:
|
|
@strip ${PREFIX}/bin/mutt
|
|
${INSTALL_DATA_DIR} ${PREFIX}/share/examples/mutt
|
|
${INSTALL_DATA} ${WRKSRC}/Muttrc \
|
|
${PREFIX}/share/examples/mutt/Muttrc.sample
|
|
${INSTALL_DATA} ${WRKSRC}/mime.types \
|
|
${PREFIX}/share/examples/mutt/mime.types.sample
|
|
@mv -f ${PREFIX}/share/doc/mutt/samples/* ${PREFIX}/share/examples/mutt
|
|
@perl -pi -e "s,/etc/Muttrc,${CONFDIR}/Muttrc," ${PREFIX}/man/man1/mutt.1
|
|
@perl -pi -e "s,/etc/mime.types,${CONFDIR}/mime.types," ${PREFIX}/man/man1/mutt.1
|