pkgsrc/devel/hdf5/options.mk
gdt 97316566a1 Disable szip by default, because it's non-free, following the general
pkgsrc notion that free software should not depend on non-free
software (because that results in not having distributable binary
packages, and makes the build fail) unless skipping the dependency
renders the software non-useful.

(The hdf web page says that the default binary builds of hdf include
szip support, but then go on about how users that don't qualify for
the no-cost license have to install a different version.)

If someone who grasps hdf5 can say that hdf5 w/o szip is generally not
useful, we can turn this back on and disable by default the hdf5
option in octave.
2010-02-06 22:19:00 +00:00

27 lines
649 B
Makefile

# $NetBSD: options.mk,v 1.6 2010/02/06 22:19:00 gdt Exp $
PKG_OPTIONS_VAR=PKG_OPTIONS.hdf5
PKG_SUPPORTED_OPTIONS= szip cxx threads
# szip is non-Free, so leave out by default
PKG_SUGGESTED_OPTIONS=
.include "../../mk/bsd.options.mk"
PLIST_VARS+= cxx
.if !empty(PKG_OPTIONS:Mszip)
CONFIGURE_ARGS+= --with-szlib
.include "../../archivers/szip/buildlink3.mk"
.endif
.if !empty(PKG_OPTIONS:Mcxx)
USE_LANGUAGES= c c++
CONFIGURE_ARGS+= --enable-cxx
PLIST.cxx= yes
.endif
.if !empty(PKG_OPTIONS:Mthreads)
CONFIGURE_ARGS+= --enable-threadsafe
# XXX libraries should not be linked against -lpthread
.include "../../mk/pthread.buildlink3.mk"
.endif