pkgsrc/devel/hdf5/options.mk
rillig 144a1ee175 Added "c" to USE_LANGUAGES for packages that use GNU configure scripts,
since they always need a C compiler, even when the source code is
completely in C++.

For some other packages, stated in the comment that a C compiler is
really not needed.
2006-07-22 04:46:13 +00:00

25 lines
579 B
Makefile

# $NetBSD: options.mk,v 1.3 2006/07/22 04:46:15 rillig Exp $
PKG_OPTIONS_VAR=PKG_OPTIONS.hdf5
PKG_SUPPORTED_OPTIONS= szip cxx threads
PKG_SUGGESTED_OPTIONS= szip
.include "../../mk/bsd.options.mk"
.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_SUBST+= CXX=
.else
PLIST_SUBST+= CXX="@comment "
.endif
.if !empty(PKG_OPTIONS:Mthreads)
CONFIGURE_ARGS+= --enable-threadsafe
.include "../../mk/pthread.buildlink3.mk"
.endif