blob: e2bbf5117fbf14bc80e9c6a936efb7e21aa19a11 (
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
|
# New ports collection makefile for: opendx
# Date created: 27 May 1999
# Whom: Thomas Gellekum <tg@FreeBSD.org>
#
# $FreeBSD$
#
PORTNAME= opendx
PORTVERSION= 4.1.0
PORTREVISION= 1
CATEGORIES= graphics math
MASTER_SITES= http://opendx.npaci.edu/source/
DISTNAME= dx-${PORTVERSION}
MAINTAINER= ports@FreeBSD.org
LIB_DEPENDS= df.1:${PORTSDIR}/graphics/hdf \
jbig.1:${PORTSDIR}/graphics/jbigkit \
jpeg.9:${PORTSDIR}/graphics/jpeg \
netcdf.1:${PORTSDIR}/math/netcdf \
png.4:${PORTSDIR}/graphics/png \
tiff.4:${PORTSDIR}/graphics/tiff \
ttf.4:${PORTSDIR}/print/freetype
USE_AUTOMAKE= yes
USE_GMAKE= yes
USE_MESA= yes
USE_MOTIF= yes
USE_NEWGCC= yes
USE_XLIB= yes
AUTOMAKE_ARGS= -a -i
CONFIGURE_ENV= ARCH="" \
CFLAGS="${CFLAGS} -I${PREFIX}/include" \
CPPFLAGS="-I${PREFIX}/include" \
CXXFLAGS="${CFLAGS} -I${PREFIX}/include" \
LDFLAGS="-L${PREFIX}/lib"
NO_MTREE= yes
PLIST_SUB= ARCH=${OPSYS:L}
# XXX the -lcompat below is an ugly kludge. opendx's code
# should be fixed to use the modern POSIX style regcomp(3)
# instead of the old V8 style one.
post-patch:
@find ${WRKSRC} -name Makefile.am | \
xargs ${PERL} -pi -e "s;-lXm ;-lcompat ${MOTIFLIB} ;g"
pre-configure:
@cd ${WRKSRC} && aclocal
.include <bsd.port.mk>
|