ports/166117: add knobs in math/grace to make features selectable and the whole port comipleable on i386

Momchil Ivanov momchil at xaxo.eu
Wed Mar 14 20:50:02 UTC 2012

>Number:         166117
>Category:       ports
>Synopsis:       add knobs in math/grace to make features selectable and the whole port comipleable on i386
>Confidential:   no
>Severity:       critical
>Priority:       low
>Responsible:    freebsd-ports-bugs
>State:          open
>Class:          update
>Submitter-Id:   current-users
>Arrival-Date:   Wed Mar 14 20:50:01 UTC 2012
>Originator:     Momchil Ivanov
>Release:        FreeBSD 8.2-STABLE i386
Port math/grace cannot be compiled due to the dependency on broken port math/fftw on i386. The attached patch makes the dependency on math/fftw optional. Extra options for the other dependencies have been added.


Patch attached with submission follows:

Index: Makefile
--- Makefile	(revision 1726)
+++ Makefile	(working copy)
@@ -7,7 +7,7 @@
 PORTNAME=	grace
 CATEGORIES=	math print
 MASTER_SITES=	ftp://plasma-gate.weizmann.ac.il/pub/grace/src/stable/ \
@@ -20,13 +20,14 @@
 MAINTAINER=	ports at FreeBSD.org
 COMMENT=	A powerful plotting tool (successor of xmgr)
+OPTIONS=        FFTW "Enable FFTW support" off
+OPTIONS+=       JPEG "Enable JPEG support" off
+OPTIONS+=       PDF  "Enable PDF support"  off
+OPTIONS+=       PNG  "Enable PNG support"  off
+OPTIONS+=       NETCDF  "Enable NETCDF support"  off
 LIB_DEPENDS=	t1:${PORTSDIR}/devel/t1lib		\
-		jpeg.11:${PORTSDIR}/graphics/jpeg	\
-		png.6:${PORTSDIR}/graphics/png		\
 		tiff.4:${PORTSDIR}/graphics/tiff	\
-		fftw.2:${PORTSDIR}/math/fftw		\
-		pdf.6:${PORTSDIR}/print/pdflib		\
-		netcdf.4:${PORTSDIR}/science/netcdf	\
 		Xbae.4:${PORTSDIR}/x11-toolkits/xbae	\
@@ -43,6 +44,40 @@
 MLINKS=		grace.1 gracebat.1 \
 		grace.1 xmgrace.1
+.if defined(WITH_FFTW)
+LIB_DEPENDS+=   fftw.2:${PORTSDIR}/math/fftw
+.if defined(WITH_JPEG)
+LIB_DEPENDS+=   jpeg.11:${PORTSDIR}/graphics/jpeg
+.if defined(WITH_NETCDF)
+LIB_DEPENDS+=	netcdf.4:${PORTSDIR}/science/netcdf
+.if defined(WITH_PDF)
+LIB_DEPENDS+=	pdf.8:${PORTSDIR}/print/pdflib
+.if defined(WITH_PDF)
+LIB_DEPENDS+=	png.6:${PORTSDIR}/graphics/png
 	${INSTALL_PROGRAM} ${WRKSRC}/src/xmgrace ${PREFIX}/bin
 	@${LN} -sf xmgrace ${PREFIX}/bin/grace


More information about the freebsd-ports-bugs mailing list