71c1a460a2
The for loop with a version-specific header file list was not updated with the 1.10.6 upgrade. This fragile approach is now replaced with a simpler install command to install all current headers.
46 lines
1.6 KiB
Makefile
46 lines
1.6 KiB
Makefile
# $NetBSD: Makefile,v 1.7 2020/03/14 23:09:48 bacon Exp $
|
|
|
|
PKGNAME= ${DISTNAME:S/-/-c++-/}
|
|
PKGREVISION= 1
|
|
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/*.h ${DESTDIR}/${PREFIX}/include/
|
|
${INSTALL_DATA} ${WRKSRC}/c++/src/*.h ${DESTDIR}/${PREFIX}/include/
|
|
.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:
|
|
.include "../../devel/hdf5/options.mk"
|
|
|
|
#.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"
|