diff options
author | bapt <bapt@FreeBSD.org> | 2012-10-17 06:36:40 +0800 |
---|---|---|
committer | bapt <bapt@FreeBSD.org> | 2012-10-17 06:36:40 +0800 |
commit | dd73fbe2f01b795615395c066369ab60f3254137 (patch) | |
tree | 29d858a263961c004488bc60bcb9683333eda5a9 /graphics | |
parent | ce62f4f0cfbdc1b108ad9cb9a29c9c4e6e7fc431 (diff) | |
download | freebsd-ports-gnome-dd73fbe2f01b795615395c066369ab60f3254137.tar.gz freebsd-ports-gnome-dd73fbe2f01b795615395c066369ab60f3254137.tar.zst freebsd-ports-gnome-dd73fbe2f01b795615395c066369ab60f3254137.zip |
Convert to new options framework
PR: ports/172436
Submitted by: Michael Gmelin <freebsd@grem.de>
Feature safe: yes
Diffstat (limited to 'graphics')
-rw-r--r-- | graphics/xfig-devel/Makefile | 16 |
1 files changed, 9 insertions, 7 deletions
diff --git a/graphics/xfig-devel/Makefile b/graphics/xfig-devel/Makefile index dd16f49cfbd3..5b1d4c62cb22 100644 --- a/graphics/xfig-devel/Makefile +++ b/graphics/xfig-devel/Makefile @@ -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> |