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
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          update
>Submitter-Id:   current-users
>Arrival-Date:   Wed Mar 14 20:50:01 UTC 2012
>Closed-Date:
>Last-Modified:
>Originator:     Momchil Ivanov
>Release:        FreeBSD 8.2-STABLE i386
>Organization:
>Environment:
>Description:
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.
>How-To-Repeat:

>Fix:


Patch attached with submission follows:

Index: Makefile
===================================================================
--- Makefile	(revision 1726)
+++ Makefile	(working copy)
@@ -7,7 +7,7 @@
 
 PORTNAME=	grace
 PORTVERSION=	5.1.22
-PORTREVISION=	7
+PORTREVISION=	8
 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	\
 		XmHTML.1:${PORTSDIR}/x11-toolkits/xmhtml
 
@@ -43,6 +44,40 @@
 MLINKS=		grace.1 gracebat.1 \
 		grace.1 xmgrace.1
 
+.if defined(WITH_FFTW)
+LIB_DEPENDS+=   fftw.2:${PORTSDIR}/math/fftw
+CONFIGURE_ARGS+=--with-fftw
+.endif
+
+.if defined(WITH_JPEG)
+LIB_DEPENDS+=   jpeg.11:${PORTSDIR}/graphics/jpeg
+CONFIGURE_ARGS+=--enable-jpegdrv
+.else
+CONFIGURE_ARGS+=--disable-jpegdrv
+.endif
+
+.if defined(WITH_NETCDF)
+LIB_DEPENDS+=	netcdf.4:${PORTSDIR}/science/netcdf
+CONFIGURE_ARGS+=--enable-netcdf
+.else
+CONFIGURE_ARGS+=--disable-netcdf
+.endif
+
+.if defined(WITH_PDF)
+LIB_DEPENDS+=	pdf.8:${PORTSDIR}/print/pdflib
+CONFIGURE_ARGS+=--enable-pdfdrv
+.else
+CONFIGURE_ARGS+=--disable-pdfdrv
+.endif
+
+.if defined(WITH_PDF)
+LIB_DEPENDS+=	png.6:${PORTSDIR}/graphics/png
+CONFIGURE_ARGS+=--enable-pngdrv
+.else
+CONFIGURE_ARGS+=--disable-pngdrv
+.endif
+
+
 do-install:
 	${INSTALL_PROGRAM} ${WRKSRC}/src/xmgrace ${PREFIX}/bin
 	@${LN} -sf xmgrace ${PREFIX}/bin/grace


>Release-Note:
>Audit-Trail:
>Unformatted:



More information about the freebsd-ports-bugs mailing list