From 8863c308e6624aef82bdb327659d5a0ffcf1a500 Mon Sep 17 00:00:00 2001 From: wiz Date: Sat, 11 Jan 2014 21:06:34 +0000 Subject: Split off parts of the Makefile into a Makefile.common in preparation for a mutt-kz package. --- mail/mutt-devel/Makefile | 58 ++------------------------------------- mail/mutt-devel/Makefile.common | 60 +++++++++++++++++++++++++++++++++++++++++ 2 files changed, 62 insertions(+), 56 deletions(-) create mode 100644 mail/mutt-devel/Makefile.common (limited to 'mail') diff --git a/mail/mutt-devel/Makefile b/mail/mutt-devel/Makefile index 3a1fd400315..baaf5ba8f49 100644 --- a/mail/mutt-devel/Makefile +++ b/mail/mutt-devel/Makefile @@ -1,4 +1,4 @@ -# $NetBSD: Makefile,v 1.95 2013/10/18 10:23:55 tron Exp $ +# $NetBSD: Makefile,v 1.96 2014/01/11 21:06:34 wiz Exp $ DISTNAME= mutt-1.5.22 CATEGORIES= mail @@ -13,60 +13,6 @@ HOMEPAGE= http://www.mutt.org/ COMMENT= Text-based MIME mail client with PGP & S/MIME support LICENSE= gnu-gpl-v2 OR gnu-gpl-v3 # or newer -PKG_INSTALLATION_TYPES= overwrite pkgviews - -.include "../../mk/bsd.prefs.mk" - -USE_PKGLOCALEDIR= yes -USE_TOOLS+= msgfmt -USE_TOOLS+= perl -GNU_CONFIGURE= yes -CONFIGURE_ARGS+= --sysconfdir=${PKG_SYSCONFDIR} -CONFIGURE_ARGS+= --with-docdir=${PREFIX}/share/doc/mutt -CONFIGURE_ARGS+= --without-included-gettext -CONFIGURE_ARGS+= --enable-external-dotlock -CONFIGURE_ARGS+= --enable-pop -CONFIGURE_ARGS+= --enable-imap - -.if ${OPSYS} == "NetBSD" || ${OPSYS} == "DragonFly" || ${OPSYS} == "FreeBSD" || ${OPSYS} == "OpenBSD" -# Force sendmail to /usr/sbin to avoid postfix's -# ${LOCALBASE}/sbin/sendmail. Should be enabled on all platforms which -# support mailwrapper. -CONFIGURE_ENV+= SENDMAIL=/usr/sbin/sendmail -.endif - -.if (${OPSYS} == "SunOS") -CONFIGURE_ARGS+= --without-wc-funcs -.endif - -# There is a problem using /bin/sh on old NetBSD releases, so use /bin/ksh -# there. -# -.if !empty(MACHINE_PLATFORM:MNetBSD-1.[0-5]*-*) -CONFIGURE_ARGS+= --with-exec-shell=/bin/ksh -.endif - -.include "options.mk" - -LDFLAGS+= ${_STRIPFLAG_CC} - -DOCDIR= ${PREFIX}/share/doc/mutt -EGDIR= ${PREFIX}/share/examples/mutt -CONF_FILES= ${EGDIR}/Muttrc ${PKG_SYSCONFDIR}/Muttrc -CONF_FILES+= ${EGDIR}/mime.types ${PKG_SYSCONFDIR}/mime.types -FILES_SUBST+= DOCDIR=${DOCDIR} -INSTALLATION_DIRS+= ${DOCDIR} ${EGDIR} - -SUBST_CLASSES+= paths -SUBST_FILES.paths= doc/Muttrc -SUBST_VARS.paths+= DOCDIR PREFIX -SUBST_STAGE.paths= pre-configure - -SPECIAL_PERMS+= bin/mutt_dotlock ${REAL_ROOT_USER} mail 2551 -INSTALL_MAKE_FLAGS= ${MAKE_FLAGS} sysconfdir=${EGDIR} - -.include "../../devel/zlib/buildlink3.mk" -.include "../../converters/libiconv/buildlink3.mk" -.include "../../devel/gettext-lib/buildlink3.mk" +.include "Makefile.common" .include "../../mk/bsd.pkg.mk" diff --git a/mail/mutt-devel/Makefile.common b/mail/mutt-devel/Makefile.common new file mode 100644 index 00000000000..fdcab86bd4f --- /dev/null +++ b/mail/mutt-devel/Makefile.common @@ -0,0 +1,60 @@ +# $NetBSD: Makefile.common,v 1.1 2014/01/11 21:06:34 wiz Exp $ +# +# used by mail/mutt-devel/Makefile +# used by mail/mutt-kz/Makefile + +PKG_INSTALLATION_TYPES= overwrite pkgviews + +.include "../../mk/bsd.prefs.mk" + +USE_PKGLOCALEDIR= yes +USE_TOOLS+= msgfmt +USE_TOOLS+= perl +GNU_CONFIGURE= yes +CONFIGURE_ARGS+= --sysconfdir=${PKG_SYSCONFDIR} +CONFIGURE_ARGS+= --with-docdir=${PREFIX}/share/doc/mutt +CONFIGURE_ARGS+= --without-included-gettext +CONFIGURE_ARGS+= --enable-external-dotlock +CONFIGURE_ARGS+= --enable-pop +CONFIGURE_ARGS+= --enable-imap + +.if ${OPSYS} == "NetBSD" || ${OPSYS} == "DragonFly" || ${OPSYS} == "FreeBSD" || ${OPSYS} == "OpenBSD" +# Force sendmail to /usr/sbin to avoid postfix's +# ${LOCALBASE}/sbin/sendmail. Should be enabled on all platforms which +# support mailwrapper. +CONFIGURE_ENV+= SENDMAIL=/usr/sbin/sendmail +.endif + +.if (${OPSYS} == "SunOS") +CONFIGURE_ARGS+= --without-wc-funcs +.endif + +# There is a problem using /bin/sh on old NetBSD releases, so use /bin/ksh +# there. +# +.if !empty(MACHINE_PLATFORM:MNetBSD-1.[0-5]*-*) +CONFIGURE_ARGS+= --with-exec-shell=/bin/ksh +.endif + +.include "options.mk" + +LDFLAGS+= ${_STRIPFLAG_CC} + +DOCDIR= ${PREFIX}/share/doc/mutt +EGDIR= ${PREFIX}/share/examples/mutt +CONF_FILES= ${EGDIR}/Muttrc ${PKG_SYSCONFDIR}/Muttrc +CONF_FILES+= ${EGDIR}/mime.types ${PKG_SYSCONFDIR}/mime.types +FILES_SUBST+= DOCDIR=${DOCDIR} +INSTALLATION_DIRS+= ${DOCDIR} ${EGDIR} + +SUBST_CLASSES+= paths +SUBST_FILES.paths= doc/Muttrc +SUBST_VARS.paths+= DOCDIR PREFIX +SUBST_STAGE.paths= pre-configure + +SPECIAL_PERMS+= bin/mutt_dotlock ${REAL_ROOT_USER} mail 2551 +INSTALL_MAKE_FLAGS= ${MAKE_FLAGS} sysconfdir=${EGDIR} + +.include "../../devel/zlib/buildlink3.mk" +.include "../../converters/libiconv/buildlink3.mk" +.include "../../devel/gettext-lib/buildlink3.mk" -- cgit v1.2.3