pkgsrc/devel/hdf5/Makefile
drochner 4665508704 update to 1.6.10
(yes I know there is the 1.8 branch, but I don't want to experiment
right now)
changes: many fixes, some C++ API improvements
pkgsrc change: DESTDIR support
2009-11-15 15:50:50 +00:00

42 lines
1.5 KiB
Makefile

# $NetBSD: Makefile,v 1.42 2009/11/15 15:50:50 drochner Exp $
DISTNAME= hdf5-1.6.10
CATEGORIES= devel
MASTER_SITES= ftp://ftp.hdfgroup.org/HDF5/current16/src/
MAINTAINER= pkgsrc-users@NetBSD.org
HOMEPAGE= http://www.hdfgroup.org/HDF5/
COMMENT= Hierarchical Data Format (new generation)
USE_LIBTOOL= yes
USE_TOOLS+= pax tr
GNU_CONFIGURE= yes
TEST_TARGET= check
PKG_DESTDIR_SUPPORT= user-destdir
INSTALLATION_DIRS+= include lib bin share/examples/hdf5/c
# it appears that this file is informative only and is not actually
# used by any installed tools
CHECK_WRKREF_SKIP= ${PREFIX}/lib/libhdf5.settings
.include "options.mk"
INSTALL_ENV+= INSTALL_SCRIPT=${INSTALL_SCRIPT:Q}
INSTALLATION_DIRS+= share/doc/hdf5
INSTALLATION_DIRS+= share/doc/hdf5/html
post-extract:
${CP} ${WRKSRC}/config/freebsd ${WRKSRC}/config/netbsd
${CP} ${WRKSRC}/config/freebsd ${WRKSRC}/config/netbsdelf
post-install:
${INSTALL_SCRIPT} ${WRKSRC}/tools/misc/h5cc ${DESTDIR}${PREFIX}/bin
${INSTALL_SCRIPT} ${WRKSRC}/tools/misc/h5redeploy.in ${DESTDIR}${PREFIX}/bin/h5redeploy
cd ${WRKSRC} && ${INSTALL_DATA} COPYING release_docs/HISTORY.txt \
release_docs/RELEASE.txt ${DESTDIR}${PREFIX}/share/doc/hdf5
# avoid installing the Makefile and Makefile.in's They are not needed
cd ${WRKSRC}/doc/html && pax -s '/.*Makefile.*//' -rwpm . ${DESTDIR}${PREFIX}/share/doc/hdf5/html
${CHOWN} -R ${SHAREOWN}:${SHAREGRP} ${DESTDIR}${PREFIX}/share/doc/hdf5/html
.include "../../devel/zlib/buildlink3.mk"
.include "../../mk/bsd.pkg.mk"