summaryrefslogtreecommitdiff
path: root/devel/hdf5-c++/Makefile
diff options
context:
space:
mode:
authoralnsn <alnsn@pkgsrc.org>2011-10-07 10:42:18 +0000
committeralnsn <alnsn@pkgsrc.org>2011-10-07 10:42:18 +0000
commitb06bc08c1f969db5bec91c19788a50a25f0039b5 (patch)
tree4a848601b1e80756231d13636b2173b976424ad9 /devel/hdf5-c++/Makefile
parenta2821449c77d0ad8d1928a08a6f21ad758f0684d (diff)
downloadpkgsrc-b06bc08c1f969db5bec91c19788a50a25f0039b5.tar.gz
Import devel/hdf5-c++ version 1.8.7.
HDF5 is a data model, library, and file format for storing and managing data. It supports an unlimited variety of datatypes, and is designed for flexible and efficient I/O and for high volume and complex data. HDF5 is portable and is extensible, allowing applications to evolve in their use of HDF5. The HDF5 Technology suite includes tools and applications for managing, manipulating, viewing, and analyzing data in the HDF5 format. This package provides C++ wrappers for the HDF5 C library.
Diffstat (limited to 'devel/hdf5-c++/Makefile')
-rw-r--r--devel/hdf5-c++/Makefile53
1 files changed, 53 insertions, 0 deletions
diff --git a/devel/hdf5-c++/Makefile b/devel/hdf5-c++/Makefile
new file mode 100644
index 00000000000..132725d6470
--- /dev/null
+++ b/devel/hdf5-c++/Makefile
@@ -0,0 +1,53 @@
+# $NetBSD: Makefile,v 1.1.1.1 2011/10/07 10:42:18 alnsn Exp $
+
+PKGNAME= hdf5-c++-${HDF5_VER}
+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 ptExampleVL.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"