Date: Tue, 16 Oct 2012 22:36:40 +0000 (UTC) From: Baptiste Daroussin <bapt@FreeBSD.org> To: ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org Subject: svn commit: r305991 - head/graphics/xfig-devel Message-ID: <201210162236.q9GMaeT2034928@svn.freebsd.org>
next in thread | raw e-mail | index | archive | help
Author: bapt Date: Tue Oct 16 22:36:40 2012 New Revision: 305991 URL: http://svn.freebsd.org/changeset/ports/305991 Log: Convert to new options framework PR: ports/172436 Submitted by: Michael Gmelin <freebsd@grem.de> Feature safe: yes Modified: head/graphics/xfig-devel/Makefile Modified: head/graphics/xfig-devel/Makefile ============================================================================== --- head/graphics/xfig-devel/Makefile Tue Oct 16 22:30:07 2012 (r305990) +++ head/graphics/xfig-devel/Makefile Tue Oct 16 22:36:40 2012 (r305991) @@ -28,21 +28,23 @@ MAN1= xfig.1 MAKE_ENV+= DOCSDIR=${DOCSDIR} -.if !defined(NOPORTDOCS) -INSTALL_TARGET= install install.all -.endif +OPTIONS_DEFINE= DOCS GHOSTSCRIPT +OPTIONS_DEFAULT= GHOSTSCRIPT +GHOSTSCRIPT_DESC= Ghostscript support -OPTIONS= GHOSTSCRIPT "Ghostscript support" on +.include <bsd.port.options.mk> -.include <bsd.port.pre.mk> +.if ${PORT_OPTIONS:MDOCS} +INSTALL_TARGET= install install.all +.endif post-extract: @${CP} ${WRKSRC}/Doc/xfig.man ${WRKSRC} post-patch: -.if defined(WITHOUT_GHOSTSCRIPT) +.if ! ${PORT_OPTIONS:MGHOSTSCRIPT} @${REINPLACE_CMD} -e 's|-DGSBIT ||g' ${WRKSRC}/Imakefile .endif echo "NOPORTDOCS=${NOPORTDOCS}" -.include <bsd.port.post.mk> +.include <bsd.port.mk>
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201210162236.q9GMaeT2034928>