ports/148496: math/octave: optional build with hdf5 v1.6 or v1.8
Max Brazhnikov
makc at FreeBSD.org
Sun Jul 11 14:20:06 UTC 2010
>Number: 148496
>Category: ports
>Synopsis: math/octave: optional build with hdf5 v1.6 or v1.8
>Confidential: no
>Severity: non-critical
>Priority: low
>Responsible: freebsd-ports-bugs
>State: open
>Quarter:
>Keywords:
>Date-Required:
>Class: update
>Submitter-Id: current-users
>Arrival-Date: Sun Jul 11 14:20:05 UTC 2010
>Closed-Date:
>Last-Modified:
>Originator: Max Brazhnikov
>Release: FreeBSD 8.1-PRERELEASE amd64
>Organization:
>Environment:
FreeBSD luna.dio.ru 8.1-PRERELEASE FreeBSD 8.1-PRERELEASE #6: Thu Jun 17 00:34:02 MSD 2010 root at luna.dio.ru:/usr/obj/usr/freebsd/8/src/sys/LUNA amd64
>Description:
Add option to allow build with either hdf v1.6 or 1.8.
Build with 1.6 by default, since most of the ports still depend on legacy hdf5.
>How-To-Repeat:
>Fix:
Patch attached with submission follows:
Index: Makefile
===================================================================
RCS file: /home/pcvs/ports/math/octave/Makefile,v
retrieving revision 1.118
diff -u -r1.118 Makefile
--- Makefile 28 Mar 2010 06:39:27 -0000 1.118
+++ Makefile 11 Jul 2010 10:52:40 -0000
@@ -23,7 +23,6 @@
gsed:${PORTSDIR}/textproc/gsed
LIB_DEPENDS= fftw3:${PORTSDIR}/math/fftw3 \
glpk.28:${PORTSDIR}/math/glpk \
- hdf5:${PORTSDIR}/science/hdf5 \
umfpack.1:${PORTSDIR}/math/suitesparse \
qhull:${PORTSDIR}/math/qhull \
arpack:${PORTSDIR}/math/arpack \
@@ -43,8 +42,16 @@
INFO= octave liboctave
MAN1= octave.1 octave-bug.1 mkoctfile.1 octave-config.1
+OPTIONS= LEGACY_HDF5 "Build with HDF5 v1.6 (otherwise with HDF5 v1.8)" on
+
.include <bsd.port.pre.mk>
+.if defined(WITHOUT_LEGACY_HDF5)
+LIB_DEPENDS+= hdf5:${PORTSDIR}/science/hdf5-18
+.else
+LIB_DEPENDS+= hdf5:${PORTSDIR}/science/hdf5
+.endif
+
USE_BLAS?= reference
.if exists(${LOCALBASE}/lib/libgoto2.so)
>Release-Note:
>Audit-Trail:
>Unformatted:
More information about the freebsd-ports-bugs
mailing list