pkgsrc/devel/hdf5-c++/Makefile
adam 302f01d1a6 Changes 1.8.11:
Configuration
- Libtool version number is changed to 8.0.0 because there are API
  changes. See below for details.
- Mac OS X 10.7 (Lion) and 10.8 (Mountain Lion) uses clang/clang++ as the
  default C and C++ compilers.
- CMake minimum is now 2.8.10.
- A new tool, cmakehdf5, which is a build command script similar to
  buildhdf5 is added and is available in the bin directory.

Library
- The library can load filter libraries dynamically during runtime.  Users
  can set the search path through environment variable HDF5_PLUGIN_PATH
  and call H5Pset_filter to enable a dynamic filter.
- Added new API functions H5Dscatter and H5Dgather to scatter data to and
  and gather data from a selection within a memory buffer.
- The library now supports the data conversion from enumeration to numeric
  (integer and floating-point number) datatypes. See Issue HDFFV-8221.

Tools
- h5dump: added new option -O or -ddl to output the ddl text to a file. This
  is a complement to the -o or --output option, which redirects the data to
  a file.
2013-09-01 09:56:41 +00:00

53 lines
2 KiB
Makefile

# $NetBSD: Makefile,v 1.3 2013/09/01 09:56:41 adam Exp $
PKGNAME= ${DISTNAME:S/-/-c++-/}
COMMENT= Hierarchical Data Format (new generation) - C++ wrappers
USE_LANGUAGES= c c++
CONFIGURE_ARGS+= --enable-cxx
INSTALLATION_DIRS= bin lib include
INSTALLATION_DIRS+= share/examples/hdf5/c++
INSTALLATION_DIRS+= share/examples/hdf5/hl/c++
do-install:
${INSTALL_SCRIPT} ${WRKSRC}/c++/src/h5c++ ${DESTDIR}/${PREFIX}/bin/
${LIBTOOL} --mode=install ${INSTALL_LIB} \
${WRKSRC}/c++/src/libhdf5_cpp.la ${DESTDIR}/${PREFIX}/lib/
${LIBTOOL} --mode=install ${INSTALL_LIB} \
${WRKSRC}/hl/c++/src/libhdf5_hl_cpp.la ${DESTDIR}/${PREFIX}/lib/
${INSTALL_DATA} \
${WRKSRC}/hl/c++/src/H5PacketTable.h ${DESTDIR}/${PREFIX}/include/
.for f in H5AbstractDs.h H5ArrayType.h H5AtomType.h H5Attribute.h H5Classes.h \
H5CommonFG.h H5CompType.h H5Cpp.h H5CppDoc.h H5DataSet.h \
H5DataSpace.h H5DataType.h H5DcreatProp.h H5DxferProp.h H5EnumType.h \
H5Exception.h H5FaccProp.h H5FcreatProp.h H5File.h H5FloatType.h \
H5Group.h H5IdComponent.h H5Include.h H5IntType.h H5Library.h \
H5Object.h H5PredType.h H5PropList.h H5StrType.h H5VarLenType.h
${INSTALL_DATA} ${WRKSRC}/c++/src/${f} ${DESTDIR}/${PREFIX}/include/
.endfor
.for f in chunks.cpp compound.cpp create.cpp extend_ds.cpp \
h5group.cpp readdata.cpp run-c++-ex.sh writedata.cpp
${INSTALL_DATA} ${WRKSRC}/c++/examples/${f} \
${DESTDIR}/${PREFIX}/share/examples/hdf5/c++/
.endfor
.for f in ptExampleFL.cpp run-hlc++-ex.sh
${INSTALL_DATA} ${WRKSRC}/hl/c++/examples/${f} \
${DESTDIR}/${PREFIX}/share/examples/hdf5/hl/c++/
.endfor
.include "../../devel/hdf5/Makefile.common"
.include "../../devel/hdf5/buildlink3.mk"
# Since the package is build from source code shared with hdf5,
# same options should be passed:
.if !empty(PKG_BUILD_OPTIONS.hdf5:Mszip)
CONFIGURE_ARGS+= --with-szlib
.endif
.if !empty(PKG_BUILD_OPTIONS.hdf5:Mthreads)
CONFIGURE_ARGS+= --enable-threadsafe
.endif
.include "../../mk/bsd.pkg.mk"