1999-09-20 08:43:20 +02:00
|
|
|
# New ports collection makefile for: opendx
|
|
|
|
# Date created: 27 May 1999
|
|
|
|
# Whom: Thomas Gellekum <tg@FreeBSD.org>
|
2002-05-24 07:18:48 +02:00
|
|
|
# Updates: Randall Hopper <rhh@FreeBSD.org>
|
1999-09-20 08:43:20 +02:00
|
|
|
#
|
|
|
|
# $FreeBSD$
|
|
|
|
#
|
|
|
|
|
2000-04-14 12:48:02 +02:00
|
|
|
PORTNAME= opendx
|
2006-01-28 22:01:47 +01:00
|
|
|
PORTVERSION= 4.4.0
|
2007-10-17 12:13:01 +02:00
|
|
|
PORTREVISION= 5
|
1999-09-20 08:43:20 +02:00
|
|
|
CATEGORIES= graphics math
|
2004-01-08 08:10:20 +01:00
|
|
|
MASTER_SITES= http://opendx.npaci.edu/source/
|
2000-04-14 12:48:02 +02:00
|
|
|
DISTNAME= dx-${PORTVERSION}
|
1999-09-20 08:43:20 +02:00
|
|
|
|
|
|
|
MAINTAINER= ports@FreeBSD.org
|
2003-02-20 19:08:19 +01:00
|
|
|
COMMENT= IBM's Open Visualization Data Explorer
|
1999-09-20 08:43:20 +02:00
|
|
|
|
2006-05-24 16:21:45 +02:00
|
|
|
LIB_DEPENDS= Magick.10:${PORTSDIR}/graphics/ImageMagick \
|
2006-01-28 22:01:47 +01:00
|
|
|
tiff.4:${PORTSDIR}/graphics/tiff \
|
|
|
|
cdf.0:${PORTSDIR}/science/cdf
|
1999-09-20 08:43:20 +02:00
|
|
|
|
2007-10-17 12:13:01 +02:00
|
|
|
USE_BISON= build
|
2005-01-29 17:13:53 +01:00
|
|
|
USE_GL= yes
|
2000-11-08 00:28:20 +01:00
|
|
|
USE_MOTIF= yes
|
2001-03-19 13:19:35 +01:00
|
|
|
USE_XLIB= yes
|
2006-01-28 22:01:47 +01:00
|
|
|
USE_AUTOTOOLS= libtool:15
|
2005-04-12 05:26:56 +02:00
|
|
|
CONFIGURE_TARGET= --build=${MACHINE_ARCH}-portbld-freebsd${OSREL}
|
2004-01-08 08:10:20 +01:00
|
|
|
CFLAGS+= ${PTHREAD_CFLAGS}
|
2005-01-29 17:13:53 +01:00
|
|
|
CONFIGURE_ENV= ARCH="${OPSYS:L}" \
|
2004-01-08 08:10:20 +01:00
|
|
|
CPPFLAGS="${CXXFLAGS} -I${LOCALBASE}/include" \
|
2006-01-28 22:01:47 +01:00
|
|
|
LDFLAGS="${LDFLAGS} -L${LOCALBASE}/lib"
|
2004-01-08 08:10:20 +01:00
|
|
|
USE_GMAKE= yes
|
1999-09-20 08:43:20 +02:00
|
|
|
NO_MTREE= yes
|
2001-03-19 13:19:35 +01:00
|
|
|
PLIST_SUB= ARCH=${OPSYS:L}
|
2006-01-28 22:01:47 +01:00
|
|
|
PKGMESSAGE= ${WRKDIR}/pkg-message
|
1999-09-20 08:43:20 +02:00
|
|
|
|
2007-04-24 18:41:03 +02:00
|
|
|
.if defined(WITH_HDF) && !defined(WITHOUT_NETCDF)
|
2007-09-29 17:01:56 +02:00
|
|
|
IGNORE= HDF and NETCDF are conflicting
|
2004-09-19 04:53:03 +02:00
|
|
|
.endif
|
|
|
|
|
2007-04-24 18:41:03 +02:00
|
|
|
.if defined(WITH_HDF)
|
2005-01-29 17:13:53 +01:00
|
|
|
LIB_DEPENDS+= mfhdf.2:${PORTSDIR}/science/hdf
|
2006-01-28 22:01:47 +01:00
|
|
|
.else
|
|
|
|
CONFIGURE_ARGS+= --without-hdf
|
2004-04-01 02:39:26 +02:00
|
|
|
.endif
|
|
|
|
|
2007-04-24 18:41:03 +02:00
|
|
|
.if !defined(WITHOUT_NETCDF)
|
2007-04-24 18:49:37 +02:00
|
|
|
LIB_DEPENDS+= netcdf.4:${PORTSDIR}/science/netcdf
|
2006-01-28 22:01:47 +01:00
|
|
|
.else
|
|
|
|
CONFIGURE_ARGS+= --without-netcdf
|
|
|
|
.endif
|
|
|
|
|
|
|
|
.if !defined(WITHOUT_JAVA)
|
2006-02-08 23:41:41 +01:00
|
|
|
USE_JAVA= yes
|
|
|
|
JAVA_VERSION= 1.3+
|
2006-01-28 22:01:47 +01:00
|
|
|
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
|
|
|
|
PLIST_SUB+= JAVA=""
|
|
|
|
DIR2PRUNE= dx/java/user dx/java/server/nets
|
|
|
|
.else
|
|
|
|
CONFIGURE_ARGS+= --without-javadx
|
|
|
|
PLIST_SUB+= JAVA="@comment "
|
2004-04-01 02:39:26 +02:00
|
|
|
.endif
|
|
|
|
|
2006-01-28 22:01:47 +01:00
|
|
|
.include <bsd.port.pre.mk>
|
|
|
|
|
2007-09-29 17:01:56 +02:00
|
|
|
.if ${ARCH} == "amd64" || ${ARCH} == "sparc64"
|
|
|
|
BROKEN= Does not compile
|
|
|
|
.endif
|
|
|
|
|
2006-01-28 22:01:47 +01:00
|
|
|
.if ${OSVERSION} >= 502126
|
|
|
|
PLIST_SUB+= UNAMEP=${ARCH} ARCHDIR=""
|
|
|
|
.else
|
|
|
|
PLIST_SUB+= UNAMEP=${OPSYS:L} ARCHDIR="@comment "
|
|
|
|
.endif
|
|
|
|
|
|
|
|
pre-configure:
|
2001-03-27 14:23:11 +02:00
|
|
|
@${RM} -f ${WRKSRC}/include/stamp-h.in
|
2001-03-21 13:58:39 +01:00
|
|
|
.for dir in doc help html man
|
2004-01-08 08:10:20 +01:00
|
|
|
@${FIND} ${WRKSRC}/${dir} -type f | ${XARGS} \
|
|
|
|
${REINPLACE_CMD} -e "s;/usr/lpp;${PREFIX};g"
|
2001-03-21 13:58:39 +01:00
|
|
|
.endfor
|
2006-01-28 22:01:47 +01:00
|
|
|
${REINPLACE_CMD} -e "s;-lpthread;${PTHREAD_LIBS};g" \
|
|
|
|
-e "s;/usr/X11R6;${X11BASE};g" \
|
|
|
|
${WRKSRC}/configure
|
|
|
|
|
|
|
|
post-install:
|
|
|
|
@${CP} ${FILESDIR}/pkg-message.in ${PKGMESSAGE}
|
|
|
|
.if !defined(WITHOUT_JAVA)
|
|
|
|
@${RM} ${PREFIX}/dx/java/server/bin/startserver.bat
|
2006-02-08 23:41:41 +01:00
|
|
|
${CHMOD} 0775 ${PREFIX}/dx/java/server/nets
|
|
|
|
${TOUCH} ${DIR2PRUNE:S|^|${PREFIX}/|:S|$|/.keepme|}
|
2006-01-28 22:01:47 +01:00
|
|
|
@${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}
|
1999-09-22 02:28:10 +02:00
|
|
|
|
2004-04-01 02:39:26 +02:00
|
|
|
.include <bsd.port.post.mk>
|