mirror of
https://git.FreeBSD.org/ports.git
synced 2024-12-16 03:24:07 +00:00
c6f9220716
- Bump PORTREVISION
104 lines
2.8 KiB
Makefile
104 lines
2.8 KiB
Makefile
# 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.0
|
|
PORTREVISION= 2
|
|
CATEGORIES= graphics math
|
|
MASTER_SITES= http://opendx.npaci.edu/source/
|
|
DISTNAME= dx-${PORTVERSION}
|
|
|
|
MAINTAINER= ports@FreeBSD.org
|
|
COMMENT= IBM's Open Visualization Data Explorer
|
|
|
|
LIB_DEPENDS= Magick.10:${PORTSDIR}/graphics/ImageMagick \
|
|
tiff.4:${PORTSDIR}/graphics/tiff \
|
|
cdf.0:${PORTSDIR}/science/cdf
|
|
|
|
USE_BISON= yes
|
|
USE_GL= yes
|
|
USE_MOTIF= yes
|
|
USE_XLIB= yes
|
|
USE_AUTOTOOLS= libtool:15
|
|
CONFIGURE_TARGET= --build=${MACHINE_ARCH}-portbld-freebsd${OSREL}
|
|
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(WITHOUT_HDF) && defined(WITH_NETCDF)
|
|
BROKEN= HDF and NETCDF are conflicting
|
|
.endif
|
|
|
|
.if !defined(WITHOUT_HDF)
|
|
LIB_DEPENDS+= mfhdf.2:${PORTSDIR}/science/hdf
|
|
.else
|
|
CONFIGURE_ARGS+= --without-hdf
|
|
.endif
|
|
|
|
.if defined(WITH_NETCDF)
|
|
LIB_DEPENDS+= netcdf.1:${PORTSDIR}/science/netcdf
|
|
.else
|
|
CONFIGURE_ARGS+= --without-netcdf
|
|
.endif
|
|
|
|
.if !defined(WITHOUT_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
|
|
PLIST_SUB+= JAVA=""
|
|
DIR2PRUNE= dx/java/user dx/java/server/nets
|
|
.else
|
|
CONFIGURE_ARGS+= --without-javadx
|
|
PLIST_SUB+= JAVA="@comment "
|
|
.endif
|
|
|
|
.include <bsd.port.pre.mk>
|
|
|
|
.if ${OSVERSION} >= 502126
|
|
PLIST_SUB+= UNAMEP=${ARCH} ARCHDIR=""
|
|
.else
|
|
PLIST_SUB+= UNAMEP=${OPSYS:L} ARCHDIR="@comment "
|
|
.endif
|
|
|
|
pre-configure:
|
|
@${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;${X11BASE};g" \
|
|
${WRKSRC}/configure
|
|
|
|
post-install:
|
|
@${CP} ${FILESDIR}/pkg-message.in ${PKGMESSAGE}
|
|
.if !defined(WITHOUT_JAVA)
|
|
@${RM} ${PREFIX}/dx/java/server/bin/startserver.bat
|
|
${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>
|