diff -ruN --exclude=CVS ../xfig-devel.orig/Makefile ./Makefile --- ../xfig-devel.orig/Makefile 2012-10-07 04:47:43.295912046 +0200 +++ ./Makefile 2012-10-07 04:56:54.619047808 +0200 @@ -28,21 +28,23 @@ 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 -.include +.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 +.include