svn commit: r305991 - head/graphics/xfig-devel
Baptiste Daroussin
bapt at FreeBSD.org
Tue Oct 16 22:36:41 UTC 2012
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 at 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>
More information about the svn-ports-all
mailing list