aboutsummaryrefslogtreecommitdiff
path: root/graphics/opendx/Makefile
blob: e7f27a3a9d030fa525cbf06ab3cca29e1d20b7c4 (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
# 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.2.0
PORTREVISION=	0
CATEGORIES=	graphics math
MASTER_SITES=	http://www.research.ibm.com/dx/srcDownload/srcArchive/ \
	        http://opendx.npaci.edu/source/
DISTNAME=	dx-${PORTVERSION}

MAINTAINER=	ports@FreeBSD.org

PORTCOMMENT=	IBM\'s Open Visualization Data Explorer

LIB_DEPENDS=	Magick.5:${PORTSDIR}/graphics/ImageMagick \
		df.1:${PORTSDIR}/graphics/hdf \
		netcdf.1:${PORTSDIR}/math/netcdf \
		tiff.4:${PORTSDIR}/graphics/tiff

USE_AUTOMAKE=	yes
USE_BISON=	yes
USE_GMAKE=	yes
USE_MESA=	yes
USE_MOTIF=	yes
USE_XLIB=	yes
USE_REINPLACE=	yes
AUTOMAKE_ARGS=	-a -i
GNU_CONFIGURE=	yes
CONFIGURE_ARGS+= --without-javadx
CONFIGURE_ENV=	ARCH="" \
		CFLAGS="${CFLAGS} ${PTHREAD_CFLAGS} -I${PREFIX}/include" \
		CPPFLAGS="-I${PREFIX}/include" \
		CXXFLAGS="${CFLAGS} ${PTHREAD_CFLAGS} -I${PREFIX}/include" \
		LDFLAGS="-L${PREFIX}/lib ${LDFLAGS} ${PTHREAD_LIBS}"
NO_MTREE=	yes
PLIST_SUB=	ARCH=${OPSYS:L}

post-patch:
	@${RM} -f ${WRKSRC}/include/stamp-h.in

post-configure:
	${REINPLACE_CMD} -e "s;flex ;flex -l ;g" ${WRKSRC}/src/uipp/dxuilib/Makefile

post-install:
	@${ECHO_MSG} "===>   Fixing path in the docs (/usr/lpp -> ${PREFIX})"
.for dir in doc help html man
	@${FIND} ${PREFIX}/dx/${dir} -type f | \
	  ${XARGS} ${REINPLACE_CMD} -e "s;/usr/lpp;${PREFIX};g"
.endfor

.include <bsd.port.mk>