From 979337d74ea3c2bf7c41b64024ac6b93c071d0ae Mon Sep 17 00:00:00 2001 From: "David E. O'Brien" Date: Thu, 10 Aug 2000 10:26:26 +0000 Subject: Improve the granularity of the WITH_ options. Rather than use my approved configuration when BATCH is defined (as a BATCH user might want ncurses) only do it when package building. Also, add a knob so that the HTML docs build and intall can be turned on w/o doing a BATCH build. It would be nice if someone started a mutt-docs port to seperate the PITA docs building (due to sgmlformat, et al.) from the binary production. Asked for by: marko --- mail/mutt/Makefile | 31 +++++++++++++++++-------------- 1 file changed, 17 insertions(+), 14 deletions(-) (limited to 'mail/mutt/Makefile') diff --git a/mail/mutt/Makefile b/mail/mutt/Makefile index 0ab091d9a890..f330285551c1 100644 --- a/mail/mutt/Makefile +++ b/mail/mutt/Makefile @@ -31,26 +31,29 @@ PATCH_DIST_STRIP= -p1 MAINTAINER= obrien@FreeBSD.org -LIB_DEPENDS= intl.1:${PORTSDIR}/devel/gettext -.if defined(BATCH) -LIB_DEPENDS= slang.1:${PORTSDIR}/devel/libslang +.if defined(PACKAGE_BUILDING) +WITH_SLANG= yes BUILD_DEPENDS= ispell:${PORTSDIR}/textproc/ispell +RUN_DEPENDS= ispell:${PORTSDIR}/textproc/ispell \ + urlview:${PORTSDIR}/textproc/urlview .if ${MACHINE_ARCH} != "alpha" # coredump in sgmls -BUILD_DEPENDS+= sgmlfmt:${PORTSDIR}/textproc/sgmlformat +WITH_DOCS= yes +.endif .endif -RUN_DEPENDS= ispell:${PORTSDIR}/textproc/ispell + +LIB_DEPENDS= intl.1:${PORTSDIR}/devel/gettext +.if defined(WITH_SLANG) +LIB_DEPENDS+= slang.1:${PORTSDIR}/devel/libslang .elif defined(WITH_NCURSES_PORT) -LIB_DEPENDS= ncurses.4:${PORTSDIR}/devel/ncurses +LIB_DEPENDS+= ncurses.4:${PORTSDIR}/devel/ncurses CFLAGS+= -I${PREFIX}/include/ncurses -.elif defined(WITH_SLANG) -LIB_DEPENDS= slang.1:${PORTSDIR}/devel/libslang .endif .if defined(WITH_SSL) USE_OPENSSL= RSA .endif -.if defined(PACKAGE_BUILDING) -RUN_DEPENDS+= urlview:${PORTSDIR}/textproc/urlview +.if defined(WITH_DOCS) +BUILD_DEPENDS+= sgmlfmt:${PORTSDIR}/textproc/sgmlformat .endif DIST_SUBDIR= mutt @@ -63,7 +66,7 @@ CONFIGURE_ARGS= --enable-pop --enable-imap --enable-flock --disable-fcntl \ .if defined(WITH_LOCALES_FIX) CONFIGURE_ARGS+= --enable-locales-fix .endif -.if defined(BATCH) || defined(WITH_SLANG) +.if defined(WITH_SLANG) CONFIGURE_ARGS+= --with-slang=${PREFIX} .elif defined(WITH_NCURSES_PORT) CONFIGURE_ARGS+= --with-curses=${PREFIX} @@ -88,7 +91,7 @@ post-build: ${PATCH} ${PATCH_ARGS} < ${FILESDIR}/patch-doc-ref printf ",s|\$${PREFIX}|%s|g\nw\nq\n" ${PREFIX} | \ ed -s ${WRKSRC}/doc/mutt.man -.if defined(BATCH) +.if defined(WITH_DOCS) PLIST:= ${WRKDIR}/PLIST pre-install: @${CAT} ${PKGDIR}/PLIST.htmlfiles >> ${PLIST} @@ -103,8 +106,8 @@ post-install: @${MKDIR} ${PREFIX}/share/doc/mutt && ${CHMOD} a+rx ${PREFIX}/share/doc/mutt @cd ${WRKSRC}/doc ; ${INSTALL_MAN} manual.txt PGP-Notes.txt \ ${PREFIX}/share/doc/mutt -.if defined(BATCH) - ${INSTALL_MAN} -d ${PREFIX}/share/doc/mutt/html +.if defined(WITH_DOCS) + env MANMODE=0755 ${INSTALL_MAN} -d ${PREFIX}/share/doc/mutt/html ${INSTALL_MAN} ${WRKSRC}/doc/*.html ${PREFIX}/share/doc/mutt/html ${INSTALL_MAN} ${WRKSRC}/doc/*.latin1 ${PREFIX}/share/doc/mutt .endif -- cgit v1.2.3