diff options
Diffstat (limited to 'graphics/hdf5/Makefile')
-rw-r--r-- | graphics/hdf5/Makefile | 63 |
1 files changed, 16 insertions, 47 deletions
diff --git a/graphics/hdf5/Makefile b/graphics/hdf5/Makefile index 7d13c145f3b3..bd569b4a26e7 100644 --- a/graphics/hdf5/Makefile +++ b/graphics/hdf5/Makefile @@ -6,63 +6,32 @@ # $FreeBSD$ # -DISTNAME= HDF4.1r2 -PKGNAME= hdf-4.1r2 +DISTNAME= HDF4.1r3 +PKGNAME= hdf-4.1r3 CATEGORIES= graphics -MASTER_SITES= ftp://ftp.ncsa.uiuc.edu/HDF/HDF4.1r2/tar/ +MASTER_SITES= ftp://ftp.ncsa.uiuc.edu/HDF/HDF/HDF4.1r3/tar/ MAINTAINER= mi@aldan.algebra.com LIB_DEPENDS= jpeg.9:${PORTSDIR}/graphics/jpeg MAN1= hdf.1 hdfunpac.1 ncdump.1 ncgen.1 +MAN3= gr_chunk.3 +MANCOMPRESSED= maybe -GNU_CONFIGURE= yes -FC?= f77 # Can also be g77 for the newer one -MAKE_FLAGS= CC="$(CC)" FC="${FC}" -f -MAKE_ENV= pwrkdir=${WRKDIR} -#"wrkdir" doesn't work for some reason in the above +MAKE_ARGS= PREFIX="${PREFIX}" -j 2 -# This will create dummy Makefiles and some links in the jpeg and libz -# subdirectories. This way, we do not need to hunt all the dependencies -# out. Shame on the lib's developers, though, this can not be done through -# `configure'. -mi -pre-build: - ${AR} -r ${WRKDIR}/libz.a /dev/null - ${RANLIB} ${WRKDIR}/libz.a - test -d ${WRKSRC}/hdf/jpeg.came-with-HDF || \ - ${MV} -f ${WRKSRC}/hdf/jpeg ${WRKSRC}/hdf/jpeg.came-with-HDF - -${MKDIR} ${WRKSRC}/hdf/jpeg - ${RM} -f ${WRKSRC}/hdf/jpeg/Makefile - ${ECHO} #Phony makefile > ${WRKSRC}/hdf/jpeg/Makefile - ${ECHO} >> ${WRKSRC}/hdf/jpeg/Makefile - ${ECHO} libjpeg.a: >> ${WRKSRC}/hdf/jpeg/Makefile - printf '\t@${ECHO} Using the already installed JPEG library\n' \ - >> ${WRKSRC}/hdf/jpeg/Makefile - printf '\nclean:\n\ttrue\n' >> ${WRKSRC}/hdf/jpeg/Makefile - printf '\ninstall-lib:\n\ttrue\n' >> ${WRKSRC}/hdf/jpeg/Makefile - printf '\ninstall:\n\ttrue\n' >> ${WRKSRC}/hdf/jpeg/Makefile - -${LN} -s ${PREFIX}/lib/libjpeg* ${WRKSRC}/hdf/jpeg/ - -${LN} -s ${PREFIX}/include/j*.h ${WRKSRC}/hdf/jpeg/ - test -d ${WRKSRC}/hdf/zlib.came-with-HDF || \ - ${MV} -f ${WRKSRC}/hdf/zlib ${WRKSRC}/hdf/zlib.came-with-HDF - -${MKDIR} ${WRKSRC}/hdf/zlib - ${RM} -f ${WRKSRC}/hdf/zlib/Makefile - ${ECHO} #Phony makefile > ${WRKSRC}/hdf/zlib/Makefile - ${ECHO} >> ${WRKSRC}/hdf/zlib/Makefile - ${ECHO} libzlib.a: >> ${WRKSRC}/hdf/zlib/Makefile - printf '\t@${ECHO} Using the already installed ZLIB library\n' \ - >> ${WRKSRC}/hdf/zlib/Makefile - printf '\nclean:\n\ttrue\n' >> ${WRKSRC}/hdf/zlib/Makefile - printf '\ninstall-lib:\n\ttrue\n' >> ${WRKSRC}/hdf/zlib/Makefile - printf '\ninstall:\n\ttrue\n' >> ${WRKSRC}/hdf/zlib/Makefile - -${LN} -s /usr/lib/${BINFORMAT}/libz* ${WRKSRC}/hdf/zlib/ - -${LN} -s /usr/include/zconf.h /usr/include/zlib.h ${WRKSRC}/hdf/zlib/ +post-patch: + ${RM} -rf ${WRKSRC}/hdf/jpeg + ${RM} -rf ${WRKSRC}/hdf/zlib -post-install: - @for binary in `${GREP} ^bin/ ${PLIST}` ; do strip ${PREFIX}/$$binary; done +do-configure: + ${CP} -rp ${FILESDIR}/Makefile ${FILESDIR}/hdf \ + ${FILESDIR}/mfhdf ${FILESDIR}/man ${WRKSRC} + ${LN} -s config/netcdf-fbsd.h ${WRKSRC}/mfhdf/libsrc/netcdf.h + ${LN} -s netcdf-fbsd.inc ${WRKSRC}/mfhdf/fortran/config/netcdf.inc -test: - cd ${WRKSRC}; make ${MAKE_FLAGS} ${MAKEFILE} test +test: build + cd ${WRKSRC}; ${MAKE} test .include <bsd.port.mk> |