2011-09-16 10:31:20 +00:00
|
|
|
# $OpenBSD: Makefile,v 1.37 2011/09/16 10:31:22 espie Exp $
|
2001-07-13 18:53:55 +00:00
|
|
|
|
2007-09-15 18:44:36 +00:00
|
|
|
COMMENT= GRaphing, Advanced Computation and Exploration of data
|
2001-07-13 18:53:55 +00:00
|
|
|
|
2004-06-13 10:36:58 +00:00
|
|
|
DISTNAME= grace-5.1.15
|
2011-09-16 10:31:20 +00:00
|
|
|
REVISION= 5
|
2002-01-31 20:58:26 +00:00
|
|
|
CATEGORIES= math
|
2001-07-13 18:53:55 +00:00
|
|
|
|
|
|
|
HOMEPAGE= http://plasma-gate.weizmann.ac.il/Grace/
|
|
|
|
|
|
|
|
# GPL
|
|
|
|
PERMIT_PACKAGE_CDROM= Yes
|
|
|
|
PERMIT_PACKAGE_FTP= Yes
|
|
|
|
PERMIT_DISTFILES_CDROM= Yes
|
|
|
|
PERMIT_DISTFILES_FTP= Yes
|
2004-12-27 07:16:44 +00:00
|
|
|
WANTLIB= c m z
|
2001-07-13 18:53:55 +00:00
|
|
|
|
2005-08-06 16:47:38 +00:00
|
|
|
GRACE_SITES= ftp://plasma-gate.weizmann.ac.il/pub/ \
|
|
|
|
ftp://ftp.fu-berlin.de/unix/graphics/ \
|
|
|
|
ftp://ftp.u-aizu.ac.jp/pub/SciEng/math/ \
|
|
|
|
ftp://freedom7.swmed.edu/pub/mirrors/
|
|
|
|
MASTER_SITES= ${GRACE_SITES:=grace/src/grace5/}
|
2001-07-13 18:53:55 +00:00
|
|
|
|
2003-01-22 15:54:46 +00:00
|
|
|
CONFIGURE_STYLE= gnu
|
2001-09-28 06:02:12 +00:00
|
|
|
MODGNU_CONFIG_GUESS_DIRS= ${WRKSRC}/ac-tools
|
2001-07-13 18:53:55 +00:00
|
|
|
CONFIGURE_ARGS+= --with-bundled-xbae \
|
2002-08-27 11:48:56 +00:00
|
|
|
--with-extra-incpath=${LOCALBASE}/include:${LOCALBASE}/include/libpng \
|
2001-07-13 18:53:55 +00:00
|
|
|
--with-extra-ldpath=${LOCALBASE}/lib \
|
2002-06-05 22:50:23 +00:00
|
|
|
--enable-grace-home=${PREFIX}/grace
|
2010-10-19 09:21:04 +00:00
|
|
|
USE_GROFF = Yes
|
2001-07-13 18:53:55 +00:00
|
|
|
|
2010-11-19 07:23:05 +00:00
|
|
|
LIB_DEPENDS = graphics/jpeg \
|
|
|
|
graphics/png \
|
|
|
|
devel/t1lib \
|
|
|
|
graphics/tiff \
|
|
|
|
print/pdflib
|
|
|
|
WANTLIB += jpeg>=62 png>=2 t1>=5 tiff>=35 pdf>=2
|
2001-07-13 18:53:55 +00:00
|
|
|
|
|
|
|
FLAVORS= no_x11 fftw netcdf xmhtml
|
|
|
|
FLAVOR?=
|
|
|
|
|
|
|
|
.if ${FLAVOR:L:Mno_x11}
|
|
|
|
CONFIGURE_ARGS+= --without-x
|
2001-12-03 01:59:24 +00:00
|
|
|
NO_REGRESS= Yes
|
|
|
|
. if ${FLAVOR:L:Mxmhtml}
|
|
|
|
ERRORS+= "Fatal: Flavors 'no_x11' and 'xmhtml' are mutually exclusive."
|
|
|
|
. endif
|
2001-07-13 18:53:55 +00:00
|
|
|
.else
|
2009-09-06 10:46:25 +00:00
|
|
|
REGRESS_IS_INTERACTIVE= x11
|
2011-04-10 18:00:23 +00:00
|
|
|
LIB_DEPENDS+= x11/openmotif
|
|
|
|
WANTLIB+= ICE SM X11 Xext Xmu Xpm Xt Xm
|
|
|
|
MAKE_ENV+=MOTIFLIB='-L${LOCALBASE}/lib -lXm'
|
2001-12-03 01:59:24 +00:00
|
|
|
. if ${FLAVOR:L:Mxmhtml}
|
2010-11-19 07:23:05 +00:00
|
|
|
LIB_DEPENDS += www/xmhtml
|
|
|
|
WANTLIB += XmHTML>=1
|
2001-12-03 01:59:24 +00:00
|
|
|
CONFIGURE_ARGS+= --enable-xmhtml
|
|
|
|
. else
|
|
|
|
CONFIGURE_ARGS+= --disable-xmhtml
|
|
|
|
. endif
|
2009-12-16 14:46:57 +00:00
|
|
|
CONFIGURE_ENV= LDFLAGS=-lm
|
2001-07-13 18:53:55 +00:00
|
|
|
.endif
|
|
|
|
|
|
|
|
.if ${FLAVOR:L:Mfftw}
|
2010-11-19 07:23:05 +00:00
|
|
|
LIB_DEPENDS += math/fftw
|
|
|
|
WANTLIB += fftw>=2
|
2001-07-13 18:53:55 +00:00
|
|
|
CONFIGURE_ARGS+= --with-fftw
|
|
|
|
.else
|
|
|
|
CONFIGURE_ARGS+= --without-fftw
|
|
|
|
.endif
|
|
|
|
|
|
|
|
.if ${FLAVOR:L:Mnetcdf}
|
2010-11-19 07:23:05 +00:00
|
|
|
LIB_DEPENDS += math/netcdf
|
|
|
|
WANTLIB += netcdf>=1
|
2001-07-13 18:53:55 +00:00
|
|
|
CONFIGURE_ARGS+= --enable-netcdf
|
|
|
|
.else
|
|
|
|
CONFIGURE_ARGS+= --disable-netcdf
|
|
|
|
.endif
|
|
|
|
|
2004-10-08 10:37:24 +00:00
|
|
|
GRACE_DIR=${TRUEPREFIX}/grace
|
|
|
|
post-install:
|
|
|
|
.if ${FLAVOR:L:Mno_x11}
|
|
|
|
ln -sf ${GRACE_DIR}/bin/grace ${PREFIX}/bin/grace
|
|
|
|
ln -sf ${GRACE_DIR}/bin/grace ${PREFIX}/bin/gracebat
|
|
|
|
.else
|
|
|
|
ln -sf ${GRACE_DIR}/bin/xmgrace ${PREFIX}/bin/grace
|
|
|
|
ln -sf ${GRACE_DIR}/bin/xmgrace ${PREFIX}/bin/gracebat
|
|
|
|
ln -sf ${GRACE_DIR}/bin/xmgrace ${PREFIX}/bin/xmgrace
|
2010-10-24 12:32:42 +00:00
|
|
|
ln -sf ../../grace/doc/xmgrace.1 ${PREFIX}/man/man1/xmgrace.1
|
2004-10-08 10:37:24 +00:00
|
|
|
.endif
|
|
|
|
ln -sf ${GRACE_DIR}/include/grace_np.h ${PREFIX}/include/grace_np.h
|
|
|
|
ln -sf ${GRACE_DIR}/lib/libgrace_np.a ${PREFIX}/lib/libgrace_np.a
|
2010-10-24 12:32:42 +00:00
|
|
|
ln -sf ../../grace/doc/grace.1 ${PREFIX}/man/man1/grace.1
|
|
|
|
ln -sf ../../grace/doc/gracebat.1 ${PREFIX}/man/man1/gracebat.1
|
|
|
|
ln -sf ../../grace/doc/grconvert.1 ${PREFIX}/man/man1/grconvert.1
|
2004-10-08 10:37:24 +00:00
|
|
|
|
2001-07-13 18:53:55 +00:00
|
|
|
.include <bsd.port.mk>
|