diff options
Diffstat (limited to 'science/hdf-java/Makefile')
-rw-r--r-- | science/hdf-java/Makefile | 47 |
1 files changed, 32 insertions, 15 deletions
diff --git a/science/hdf-java/Makefile b/science/hdf-java/Makefile index 63d52387c4a6..e7e86e4fe2f7 100644 --- a/science/hdf-java/Makefile +++ b/science/hdf-java/Makefile @@ -6,8 +6,7 @@ # PORTNAME= hdf-java -PORTVERSION= 2.7 -PORTREVISION= 1 +PORTVERSION= 2.8 CATEGORIES= science java MASTER_SITES= http://www.hdfgroup.org/ftp/HDF5/hdf-java/src/ \ http://www.predatorlabs.net/dl/ @@ -16,20 +15,25 @@ EXTRACT_SUFX= -src.tar MAINTAINER= rfarmer@predatorlabs.net COMMENT= Java interface to HDF5 -LIB_DEPENDS= hdf5.7:${PORTSDIR}/science/hdf5-18 +LIB_DEPENDS= hdf5.7:${PORTSDIR}/science/hdf5-18 \ + jpeg.11:${PORTSDIR}/graphics/jpeg USE_JAVA= yes -JAVA_VERSION= 1.5+ +JAVA_VERSION= 1.6+ JAVA_BUILD= yes JAVA_RUN= yes USE_DOS2UNIX= yes DOS2UNIX_REGEX= .*/examples/.*Makefile.in +USE_GMAKE= yes GNU_CONFIGURE= yes CONFIGURE_ARGS= --with-jdk=${JAVA_HOME}/include,${JAVA_HOME}/jre/lib/ \ --with-hdf5=${LOCALBASE}/include \ - --with-libz=/lib + --with-libz=/lib \ + --with-libjpeg=${LOCALBASE} \ + --without-hdf4 \ + --without-h4toh5 WRKSRC= ${WRKDIR}/${PORTNAME} @@ -39,24 +43,37 @@ OPTIONS= SZIP "SZIP support (must match with science/hdf5-18)" off .if defined(WITH_SZIP) CONFIGURE_ARGS+= --with-libsz=${LOCALBASE}/lib +.else +CONFIGURE_ARGS+= --without-libsz +.endif + +.if !defined(NOPORTDOCS) +ALL_TARGET= all javadocs .endif post-patch: - ${REINPLACE_CMD} -e 's|"/libhdf.$$LLEXT"|"${LOCALBASE}/lib"|' ${WRKSRC}/configure - ${REINPLACE_CMD} -e 's|$$z_lib"/libz."$$LLEXT|"/lib/libz.so.*"|' ${WRKSRC}/configure - ${REINPLACE_CMD} -e 's|$$sz_lib"/libsz."$$LLEXT|"${LOCALBASE}/lib/libsz.so.*"|' ${WRKSRC}/configure - ${REINPLACE_CMD} -e 's|LLEXT="a"|LLEXT="so"|g' ${WRKSRC}/configure - ${REINPLACE_CMD} -e 's|COPT="-shared"|COPT="-fPIC"|g' ${WRKSRC}/configure - ${REINPLACE_CMD} -e 's|$$(JH45INSTALLDIR)/lib|${JAVAJARDIR}|' ${WRKSRC}/Makefile.in - ${REINPLACE_CMD} -e 's|$$(LIBDIR)/@JAVATARG@|${PREFIX}/lib|g' ${WRKSRC}/Makefile.in - ${REINPLACE_CMD} -e 's|cp -R|#|' ${WRKSRC}/Makefile.in - ${REINPLACE_CMD} -e 's|cp ./lib/@JAVATARG@|${INSTALL_PROGRAM} ./lib/@JAVATARG@|g' ${WRKSRC}/Makefile.in - ${REINPLACE_CMD} -e 's|cp |${INSTALL_DATA} |g' ${WRKSRC}/Makefile.in + @${REINPLACE_CMD} -e 's|"/libhdf.$$LLEXT"|"${LOCALBASE}/lib"|' \ + -e 's|$$z_lib"/libz."$$LLEXT|"/lib/libz.so.*"|' \ + -e 's|$$sz_lib"/libsz."$$LLEXT|"${LOCALBASE}/lib/libsz.so.*"|' \ + -e 's|LLEXT="a"|LLEXT="so"|g' \ + -e 's|COPT="-shared"|COPT="-fPIC"|g' ${WRKSRC}/configure + @${REINPLACE_CMD} -e 's|LIBDIR=$$(JH45INSTALLDIR)|LIBDIR=${PREFIX}|' \ + -e 's|$$(JH45INSTALLDIR)/lib|${JAVAJARDIR}|g' \ + -e 's|INSTALL_LIB |${INSTALL_LIB} |' \ + -e 's|cp |${INSTALL_DATA} |g' ${WRKSRC}/Makefile.in + @${REINPLACE_CMD} -e\ + 's|$$HDFJAVA"/lib/freebsd:"$$HDFJAVA"/lib/ext|${PREFIX}/lib"|' \ + -e 's|$$HDFJAVA"/lib|${JAVAJARDIR}"|g' \ + ${WRKSRC}/bin/hdfview.sh.in post-install: .if !defined(NOPORTDOCS) ${MKDIR} ${DOCSDIR}/UsersGuide (cd ${WRKSRC}/docs/hdfview/ && ${COPYTREE_SHARE} "UsersGuide" ${DOCSDIR}/) + (cd ${WRKSRC}/docs/ && ${COPYTREE_SHARE} "javadocs" ${DOCSDIR}/) .endif +regression-test: build + @cd ${WRKSRC} && ${SETENV} ${MAKE_ENV} ${GMAKE} check + .include <bsd.port.mk> |