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
|
2008-11-04 21:48:31 +01:00
|
|
|
PORTVERSION= 4.4.4
|
2010-07-24 21:49:59 +02:00
|
|
|
PORTREVISION= 6
|
1999-09-20 08:43:20 +02:00
|
|
|
CATEGORIES= graphics math
|
2009-08-14 23:46:30 +02:00
|
|
|
MASTER_SITES= http://www.sfr-fresh.com/unix/misc/
|
2000-04-14 12:48:02 +02:00
|
|
|
DISTNAME= dx-${PORTVERSION}
|
1999-09-20 08:43:20 +02:00
|
|
|
|
2009-04-05 22:50:49 +02:00
|
|
|
MAINTAINER= stephen@missouri.edu
|
2003-02-20 19:08:19 +01:00
|
|
|
COMMENT= IBM's Open Visualization Data Explorer
|
1999-09-20 08:43:20 +02:00
|
|
|
|
2010-07-24 21:49:59 +02:00
|
|
|
LIB_DEPENDS= MagickWand.4:${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
|
|
|
|
2008-04-24 08:55:31 +02:00
|
|
|
USE_XORG= xinerama xext xpm xmu sm ice
|
2007-10-17 12:13:01 +02:00
|
|
|
USE_BISON= build
|
2008-04-24 08:55:31 +02:00
|
|
|
USE_GL= yes
|
2000-11-08 00:28:20 +01:00
|
|
|
USE_MOTIF= yes
|
2009-08-02 21:36:34 +02:00
|
|
|
USE_AUTOTOOLS= libtool:22
|
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)
|
2009-01-17 20:24:48 +01:00
|
|
|
LIB_DEPENDS+= mfhdf.3:${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
|
|
|
|
|
2008-10-24 13:01:48 +02:00
|
|
|
.if defined(WITH_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
|
2008-10-24 13:01:48 +02:00
|
|
|
CONFIGURE_ARGS+= --with-cosmojar-path=${JAVALIBDIR}/npcosmop211.jar \
|
|
|
|
--with-java40jar-path=${JAVALIBDIR}/java40.jar \
|
|
|
|
--with-jni-path=${JAVA_HOME}/include:${JAVA_HOME}/include/freebsd
|
2006-01-28 22:01:47 +01:00
|
|
|
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
|
|
|
|
|
2008-10-14 22:55:07 +02:00
|
|
|
PLIST_SUB+= UNAMEP=${ARCH}
|
2007-09-29 17:01:56 +02:00
|
|
|
|
2008-10-14 22:55:07 +02:00
|
|
|
.include <bsd.port.pre.mk>
|
2006-01-28 22:01:47 +01:00
|
|
|
|
2008-10-24 13:01:48 +02:00
|
|
|
.if defined(WITH_JAVA) && ${ARCH} != "i386"
|
|
|
|
BROKEN= does not build
|
|
|
|
.endif
|
|
|
|
|
2008-10-14 22:55:07 +02:00
|
|
|
post-patch:
|
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
|
2008-10-14 22:55:07 +02:00
|
|
|
@${REINPLACE_CMD} -e "s;-lpthread;${PTHREAD_LIBS};g" \
|
- Remove unneeded dependency from gtk12/gtk20 [1]
- Remove USE_XLIB/USE_X_PREFIX/USE_XPM in favor of USE_XORG
- Remove X11BASE support in favor of LOCALBASE or PREFIX
- Use USE_LDCONFIG instead of INSTALLS_SHLIB
- Remove unneeded USE_GCC 3.4+
Thanks to all Helpers:
Dmitry Marakasov, Chess Griffin, beech@, dinoex, rafan, gahr,
ehaupt, nox, itetcu, flz, pav
PR: 116263
Tested on: pointyhat
Approved by: portmgr (pav)
2008-04-19 19:56:05 +02:00
|
|
|
-e "s;/usr/X11R6;${LOCALBASE};g" \
|
2006-01-28 22:01:47 +01:00
|
|
|
${WRKSRC}/configure
|
2008-10-14 22:55:07 +02:00
|
|
|
@${REINPLACE_CMD} -e "s|startserver.bat||" \
|
|
|
|
${WRKSRC}/src/uipp/java/server/Makefile.in
|
2006-01-28 22:01:47 +01:00
|
|
|
|
|
|
|
post-install:
|
|
|
|
@${CP} ${FILESDIR}/pkg-message.in ${PKGMESSAGE}
|
2008-10-24 13:01:48 +02:00
|
|
|
.if defined(WITH_JAVA)
|
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>
|