Date: Thu, 26 Jun 2014 15:55:22 +0000 (UTC) From: Soeren Straarup <xride@FreeBSD.org> To: ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org Subject: svn commit: r359381 - head/mail/spamoracle Message-ID: <201406261555.s5QFtMV2064130@svn.freebsd.org>
next in thread | raw e-mail | index | archive | help
Author: xride Date: Thu Jun 26 15:55:22 2014 New Revision: 359381 URL: http://svnweb.freebsd.org/changeset/ports/359381 QAT: https://qat.redports.org/buildarchive/r359381/ Log: Converted to OPTIONS and StageDir Modified: head/mail/spamoracle/Makefile Modified: head/mail/spamoracle/Makefile ============================================================================== --- head/mail/spamoracle/Makefile Thu Jun 26 15:51:36 2014 (r359380) +++ head/mail/spamoracle/Makefile Thu Jun 26 15:55:22 2014 (r359381) @@ -12,26 +12,29 @@ COMMENT= procmail spam filter written in BUILD_DEPENDS= ocaml:${PORTSDIR}/lang/ocaml -MAN1= spamoracle.1 -MAN5= spamoracle.conf.5 - PLIST_FILES= bin/spamoracle -.ifndef(NOPORTDOCS) +PLIST_FILES+= man/man1/spamoracle.1.gz +PLIST_FILES+= man/man5/spamoracle.conf.5.gz + +OPTIONS_DEFINE= DOCS + +.include <bsd.port.options.mk> + +.if ${PORT_OPTIONS:MDOCS} PORTDOCS= Changes README .endif -NO_STAGE= yes do-configure: @${REINPLACE_CMD} -E -e 's|^(CPP=)gcc[[:space:]]+-E|\1${CPP}|' \ - -e 's|^(MANDIR=).*$$|\1${MANPREFIX}/man|' \ - -e 's|^(BINDIR=).*$$|\1${PREFIX}/bin|' \ + -e 's|^(MANDIR=).*$$|\1${STAGEDIR}${MANPREFIX}/man|' \ + -e 's|^(BINDIR=).*$$|\1${STAGEDIR}${PREFIX}/bin|' \ ${WRKSRC}/Makefile post-install: -.ifndef(NOPORTDOCS) - @${MKDIR} ${DOCSDIR} +.if ${PORT_OPTIONS:MDOCS} + @${MKDIR} ${STAGEDIR}${DOCSDIR} .for file in ${PORTDOCS} - @${INSTALL_DATA} ${WRKSRC}/${file} ${DOCSDIR} + @${INSTALL_DATA} ${WRKSRC}/${file} ${STAGEDIR}${DOCSDIR}/ .endfor .endif
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201406261555.s5QFtMV2064130>