summaryrefslogtreecommitdiffstats
path: root/graphics/opendx/Makefile
blob: df2dc249b261a8fe40b2dd20c913c393ba496a3b (plain)
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
# New ports collection makefile for:	opendx
# Date created:		27 May 1999
# Whom:			Thomas Gellekum <tg@FreeBSD.org>
#
# $FreeBSD$
#

PORTNAME=	opendx
PORTVERSION=	4.1.0
CATEGORIES=	graphics math
MASTER_SITES=	http://opendx.npaci.edu/source/
DISTNAME=	dx-${PORTVERSION}

MAINTAINER=	ports@FreeBSD.org

LIB_DEPENDS=	netcdf.1:${PORTSDIR}/math/netcdf

USE_XLIB=	yes
USE_MESA=	yes
USE_MOTIF=	yes
USE_NEWGCC=	yes
GNU_CONFIGURE=	yes
CONFIGURE_ENV=	CFLAGS="${CFLAGS} -Dfreebsd -I${PREFIX}/include" \
		CPPFLAGS="-I${PREFIX}/include" \
		CXXFLAGS="${CFLAGS} -Dfreebsd -I${PREFIX}/include" \
		LDFLAGS="-L${PREFIX}/lib"
NO_MTREE=	yes
PLIST_SUB=	ARCH=${MACHINE_ARCH}

post-patch:
	@find ${WRKSRC} -name Makefile.in | \
	  xargs ${PERL} -pi -e 's/-lXm /\$${MOTIFLIB} /g'

.include <bsd.port.mk>
OpenPOWER on IntegriCloud