blob: ba7a95724c132a2c948adf4bda217f92a5918a83 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
|
# New ports collection makefile for: hdf-java
# Date created: 11 February 2010
# Whom: rfarmer@predatorlabs.net
#
# $FreeBSD$
#
PORTNAME= hdf-java
PORTVERSION= 2.6
CATEGORIES= science java
MASTER_SITES= http://www.hdfgroup.org/ftp/HDF5/hdf-java/src/ \
http://www.predatorlabs.net/dl/
EXTRACT_SUFX= -src.tar
MAINTAINER= rfarmer@predatorlabs.net
COMMENT= Java interface to HDF5
LIB_DEPENDS= hdf5.6:${PORTSDIR}/science/hdf5-18
USE_JAVA= yes
JAVA_VERSION= 1.5+
JAVA_BUILD= yes
JAVA_RUN= yes
GNU_CONFIGURE= yes
CONFIGURE_ARGS= --with-jdk=${JAVA_HOME}/include,${JAVA_HOME}/jre/lib/ \
--with-hdf5=${LOCALBASE}/include \
--with-libz=/lib
WRKSRC= ${WRKDIR}/${PORTNAME}
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|LLEXT="a"|LLEXT="so"|g' ${WRKSRC}/configure
${REINPLACE_CMD} -e 's|COPT="-shared"|COPT="-fPIC"|g' ${WRKSRC}/configure
#${REINPLACE_CMD} -e 's|$$(JH45INSTALLDIR)/UsersGuide|${DOCSDIR}/UsersGuide|' ${WRKSRC}/Makefile.in
${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
post-install:
.if !defined(NOPORTDOCS)
${MKDIR} ${DOCSDIR}/UsersGuide
(cd ${WRKSRC}/docs/hdfview/ && ${COPYTREE_SHARE} "UsersGuide" ${DOCSDIR}/)
.endif
.include <bsd.port.mk>
|