ports/172436: [PATCH] graphics/xfig-devel: Converting port to new options framework
Michael Gmelin
freebsd at grem.de
Sun Oct 7 04:20:23 UTC 2012
>Number: 172436
>Category: ports
>Synopsis: [PATCH] graphics/xfig-devel: Converting port to new options framework
>Confidential: no
>Severity: non-critical
>Priority: low
>Responsible: freebsd-ports-bugs
>State: open
>Quarter:
>Keywords:
>Date-Required:
>Class: change-request
>Submitter-Id: current-users
>Arrival-Date: Sun Oct 07 04:20:20 UTC 2012
>Closed-Date:
>Last-Modified:
>Originator: Michael Gmelin
>Release: FreeBSD 9.0-RELEASE amd64
>Organization:
Grem Equity GmbH
>Environment:
System: FreeBSD bsd64.grem.de 9.0-RELEASE FreeBSD 9.0-RELEASE #0: Tue Jan 3 07:46:30 UTC
>Description:
The patch below converts the port to use the new options framework[1].
The patch is to be applied using:
patch -p0 -E </path/to/patchfile
No attempts have been made to fix any potential issues the port might
have beyond this scope. I also didn't fix any indentation issues to
keep the patch small and easy to audit, a future port maintainer might
want to take care of this.
See also:
1. http://lists.freebsd.org/pipermail/freebsd-ports/2012-October/078676.html
Generated with FreeBSD Port Tools 0.99_6 (mode: change, diff: suffix)
>How-To-Repeat:
>Fix:
--- xfig-3.2.5.a5_8.patch begins here ---
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 <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>
--- xfig-3.2.5.a5_8.patch ends here ---
>Release-Note:
>Audit-Trail:
>Unformatted:
More information about the freebsd-ports-bugs
mailing list