diff options
Diffstat (limited to 'mail/mutt-devel/Makefile')
-rw-r--r-- | mail/mutt-devel/Makefile | 57 |
1 files changed, 39 insertions, 18 deletions
diff --git a/mail/mutt-devel/Makefile b/mail/mutt-devel/Makefile index 0bbc62f0486..82dfdcf0710 100644 --- a/mail/mutt-devel/Makefile +++ b/mail/mutt-devel/Makefile @@ -1,4 +1,4 @@ -# $NetBSD: Makefile,v 1.4 2001/06/12 20:33:04 jlam Exp $ +# $NetBSD: Makefile,v 1.5 2001/06/20 07:48:56 jlam Exp $ DISTNAME= mutt-1.3.18i CATEGORIES= mail @@ -8,42 +8,63 @@ MAINTAINER= tron@netbsd.org HOMEPAGE= http://www.mutt.org/ COMMENT= text-based MIME mail client with PGP support +USE_BUILDLINK_ONLY= YES + +#BUILD_DEPENDS+= autoconf-2.13:../../devel/autoconf +#BUILD_DEPENDS+= automake-1.4:../../devel/automake + BUILD_USES_MSGFMT= YES -BUILD_DEPENDS+= autoconf-2.13:../../devel/autoconf -BUILD_DEPENDS+= automake-1.4:../../devel/automake -DEPENDS+= libiconv>=1.5:../../converters/libiconv - -USE_LIBINTL= YES -CPPFLAGS+= -I${LOCALBASE}/include -LIBS= -lintl -MAKE_ENV+= LIBS="${LIBS}" -GNU_CONFIGURE= YES +#USE_LIBINTL= YES + USE_GMAKE= YES -CONFIGURE_ARGS+= --with-exec-shell=/bin/ksh \ - --with-docdir=${PREFIX}/share/doc/mutt \ +GNU_CONFIGURE= YES +CONFIGURE_ARGS+= --with-docdir=${PREFIX}/share/doc/mutt \ --enable-pop --enable-imap \ --without-included-gettext -USE_CURSES= YES -REPLACE_NCURSES= configure.in +CONFIGURE_ARGS+= --with-curses=${BUILDLINK_DIR} LDFLAGS+= ${STRIPFLAG} WRKSRC= ${WRKDIR}/${DISTNAME:C/i$$//} .include "../../mk/bsd.prefs.mk" -.if defined(NEED_NCURSES) && ${NEED_NCURSES} == "YES" -CONFIGURE_ARGS+= --with-curses=${LOCALBASE} +# There seems to be a problem using NetBSD's /bin/sh, so use /bin/ksh instead. +.if ${OPSYS} == "NetBSD" +CONFIGURE_ARGS+= --with-exec-shell=/bin/ksh .endif MUTT_USE_SSL?= YES .if defined(MUTT_USE_SSL) && ${MUTT_USE_SSL} == "YES" -USE_SSL= YES -CONFIGURE_ARGS+= --with-ssl=${SSLBASE} +#USE_SSL= YES +.include "../../security/openssl/buildlink.mk" +CONFIGURE_ARGS+= --with-ssl=${BUILDLINK_DIR} .else CONFIGURE_ARGS+= --without-ssl .endif BUILD_DEFS+= MUTT_USE_SSL +DEINSTALL_FILE= ${WRKDIR}/DEINSTALL +INSTALL_FILE= ${WRKDIR}/INSTALL + +FILES_SUBST= CAT=${CAT:Q} +FILES_SUBST+= CHMOD=${CHMOD:Q} +FILES_SUBST+= CP=${CP:Q} +FILES_SUBST+= RM=${RM:Q} +FILES_SUBST_SED= ${FILES_SUBST:S/=/@!/:S/$/!g/:S/^/ -e s!@/} + +pre-install: + ${SED} ${FILES_SUBST_SED} ${PKGDIR}/DEINSTALL > ${DEINSTALL_FILE} + ${SED} ${FILES_SUBST_SED} ${PKGDIR}/INSTALL > ${INSTALL_FILE} + +post-install: + ${TOUCH} ${TOUCH_FLAGS} ${PREFIX}/share/mutt/.directory + ${INSTALL_DATA} ${WRKSRC}/Muttrc ${PREFIX}/share/doc/mutt/samples + ${INSTALL_DATA} ${WRKSRC}/mime.types ${PREFIX}/share/doc/mutt/samples + PKG_PREFIX=${PREFIX} ${SH} ${INSTALL_FILE} ${PKGNAME} POST-INSTALL + +.include "../../converters/libiconv/buildlink.mk" +.include "../../devel/gettext-lib/buildlink.mk" +.include "../../devel/ncurses/buildlink.mk" .include "../../mk/bsd.pkg.mk" |