blob: 12814393ca393f0d9e044a5a0733105a67674c9f (
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
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
|
# New ports collection makefile for: opendx
# Date created: 27 May 1999
# Whom: Thomas Gellekum <tg@FreeBSD.org>
# Updates: Randall Hopper <rhh@FreeBSD.org>
#
# $FreeBSD$
#
PORTNAME= opendx
PORTVERSION= 4.4.4
PORTREVISION= 2
CATEGORIES= graphics math
MASTER_SITES= http://www.sfr-fresh.com/unix/misc/
DISTNAME= dx-${PORTVERSION}
MAINTAINER= stephen@missouri.edu
COMMENT= IBM's Open Visualization Data Explorer
LIB_DEPENDS= MagickWand.2:${PORTSDIR}/graphics/ImageMagick \
tiff.4:${PORTSDIR}/graphics/tiff \
cdf.0:${PORTSDIR}/science/cdf
USE_XORG= xinerama xext xpm xmu sm ice
USE_BISON= build
USE_GL= yes
USE_MOTIF= yes
USE_AUTOTOOLS= libtool:22
CFLAGS+= ${PTHREAD_CFLAGS}
CONFIGURE_ENV= ARCH="${OPSYS:L}" \
CPPFLAGS="${CXXFLAGS} -I${LOCALBASE}/include" \
LDFLAGS="${LDFLAGS} -L${LOCALBASE}/lib"
USE_GMAKE= yes
NO_MTREE= yes
PLIST_SUB= ARCH=${OPSYS:L}
PKGMESSAGE= ${WRKDIR}/pkg-message
.if defined(WITH_HDF) && !defined(WITHOUT_NETCDF)
IGNORE= HDF and NETCDF are conflicting
.endif
.if defined(WITH_HDF)
LIB_DEPENDS+= mfhdf.3:${PORTSDIR}/science/hdf
.else
CONFIGURE_ARGS+= --without-hdf
.endif
.if !defined(WITHOUT_NETCDF)
LIB_DEPENDS+= netcdf.4:${PORTSDIR}/science/netcdf
.else
CONFIGURE_ARGS+= --without-netcdf
.endif
.if defined(WITH_JAVA)
USE_JAVA= yes
JAVA_VERSION= 1.3+
BUILD_DEPENDS+= ${JAVALIBDIR}/npcosmop211.jar:${PORTSDIR}/graphics/cosmoplayer
RUN_DEPENDS+= ${JAVALIBDIR}/npcosmop211.jar:${PORTSDIR}/graphics/cosmoplayer
CONFIGURE_ARGS+= --with-cosmojar-path=${JAVALIBDIR}/npcosmop211.jar \
--with-java40jar-path=${JAVALIBDIR}/java40.jar \
--with-jni-path=${JAVA_HOME}/include:${JAVA_HOME}/include/freebsd
PLIST_SUB+= JAVA=""
DIR2PRUNE= dx/java/user dx/java/server/nets
.else
CONFIGURE_ARGS+= --without-javadx
PLIST_SUB+= JAVA="@comment "
.endif
PLIST_SUB+= UNAMEP=${ARCH}
.include <bsd.port.pre.mk>
.if defined(WITH_JAVA) && ${ARCH} != "i386"
BROKEN= does not build
.endif
post-patch:
@${RM} -f ${WRKSRC}/include/stamp-h.in
.for dir in doc help html man
@${FIND} ${WRKSRC}/${dir} -type f | ${XARGS} \
${REINPLACE_CMD} -e "s;/usr/lpp;${PREFIX};g"
.endfor
@${REINPLACE_CMD} -e "s;-lpthread;${PTHREAD_LIBS};g" \
-e "s;/usr/X11R6;${LOCALBASE};g" \
${WRKSRC}/configure
@${REINPLACE_CMD} -e "s|startserver.bat||" \
${WRKSRC}/src/uipp/java/server/Makefile.in
post-install:
@${CP} ${FILESDIR}/pkg-message.in ${PKGMESSAGE}
.if defined(WITH_JAVA)
${CHMOD} 0775 ${PREFIX}/dx/java/server/nets
${TOUCH} ${DIR2PRUNE:S|^|${PREFIX}/|:S|$|/.keepme|}
@${ECHO} "---------------------------------------------------------" \
>> ${PKGMESSAGE}
@${ECHO} "Before starting ${PREFIX}/dx/java/server/bin/startserver" \
>> ${PKGMESSAGE}
@${ECHO} "you must install the port graphics/opendx-samples." \
>> ${PKGMESSAGE}
.endif
@${ECHO} "---------------------------------------------------------" \
>> ${PKGMESSAGE}
@${CAT} ${PKGMESSAGE}
.include <bsd.port.post.mk>
|