2007-09-15 18:44:36 +00:00
|
|
|
COMMENT= GRaphing, Advanced Computation and Exploration of data
|
2001-07-13 18:53:55 +00:00
|
|
|
|
2020-05-17 23:04:49 +00:00
|
|
|
DISTNAME= grace-5.1.25
|
2002-01-31 20:58:26 +00:00
|
|
|
CATEGORIES= math
|
2001-07-13 18:53:55 +00:00
|
|
|
|
2020-05-17 23:04:49 +00:00
|
|
|
HOMEPAGE= https://plasma-gate.weizmann.ac.il/Grace/
|
2001-07-13 18:53:55 +00:00
|
|
|
|
|
|
|
|
# GPL
|
2019-07-12 20:46:54 +00:00
|
|
|
PERMIT_PACKAGE= Yes
|
2020-05-17 23:04:49 +00:00
|
|
|
|
|
|
|
|
WANTLIB += c fftw jpeg m netcdf png t1 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/ \
|
2013-05-29 20:46:25 +00:00
|
|
|
ftp://ftp.u-aizu.ac.jp/pub/SciEng/math/
|
2023-09-27 09:27:52 +00:00
|
|
|
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 \
|
2013-06-04 18:41:39 +00:00
|
|
|
--with-extra-incpath=${LOCALBASE}/include \
|
2001-07-13 18:53:55 +00:00
|
|
|
--with-extra-ldpath=${LOCALBASE}/lib \
|
2019-12-25 15:00:12 +00:00
|
|
|
--with-fftw \
|
|
|
|
|
--enable-netcdf \
|
2002-06-05 22:50:23 +00:00
|
|
|
--enable-grace-home=${PREFIX}/grace
|
2001-07-13 18:53:55 +00:00
|
|
|
|
2019-12-25 15:00:12 +00:00
|
|
|
LIB_DEPENDS = devel/t1lib \
|
|
|
|
|
graphics/jpeg \
|
2010-11-19 07:23:05 +00:00
|
|
|
graphics/png \
|
2019-12-25 15:00:12 +00:00
|
|
|
math/fftw \
|
2020-05-17 23:04:49 +00:00
|
|
|
math/netcdf
|
2019-12-25 15:00:12 +00:00
|
|
|
|
|
|
|
|
FLAVORS= no_x11
|
2001-07-13 18:53:55 +00:00
|
|
|
FLAVOR?=
|
|
|
|
|
|
2013-02-09 14:49:50 +00:00
|
|
|
.if ${FLAVOR:Mno_x11}
|
2001-07-13 18:53:55 +00:00
|
|
|
CONFIGURE_ARGS+= --without-x
|
2013-03-11 11:20:26 +00:00
|
|
|
NO_TEST= Yes
|
2001-07-13 18:53:55 +00:00
|
|
|
.else
|
2013-03-11 11:20:26 +00:00
|
|
|
TEST_IS_INTERACTIVE= x11
|
2016-05-05 19:52:28 +00:00
|
|
|
LIB_DEPENDS+= x11/motif
|
2011-04-10 18:00:23 +00:00
|
|
|
WANTLIB+= ICE SM X11 Xext Xmu Xpm Xt Xm
|
2013-05-29 20:46:25 +00:00
|
|
|
MAKE_ENV+= MOTIFLIB='-L${LOCALBASE}/lib -lXm'
|
2009-12-16 14:46:57 +00:00
|
|
|
CONFIGURE_ENV= LDFLAGS=-lm
|
2001-07-13 18:53:55 +00:00
|
|
|
.endif
|
|
|
|
|
|
2004-10-08 10:37:24 +00:00
|
|
|
GRACE_DIR=${TRUEPREFIX}/grace
|
2013-05-29 20:46:25 +00:00
|
|
|
|
2004-10-08 10:37:24 +00:00
|
|
|
post-install:
|
2013-02-09 14:49:50 +00:00
|
|
|
.if ${FLAVOR:Mno_x11}
|
2004-10-08 10:37:24 +00:00
|
|
|
ln -sf ${GRACE_DIR}/bin/grace ${PREFIX}/bin/grace
|
|
|
|
|
ln -sf ${GRACE_DIR}/bin/grace ${PREFIX}/bin/gracebat
|
2019-12-26 12:05:00 +00:00
|
|
|
rm -f ${PREFIX}/grace/doc/xmgrace.1
|
2004-10-08 10:37:24 +00:00
|
|
|
.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
|
2018-06-23 19:53:36 +00:00
|
|
|
mv ${PREFIX}/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
|
2018-06-23 19:53:36 +00:00
|
|
|
mv ${PREFIX}/grace/doc/grace.1 ${PREFIX}/man/man1/grace.1
|
|
|
|
|
mv ${PREFIX}/grace/doc/gracebat.1 ${PREFIX}/man/man1/gracebat.1
|
|
|
|
|
mv ${PREFIX}/grace/doc/grconvert.1 ${PREFIX}/man/man1/grconvert.1
|
2013-05-29 20:46:25 +00:00
|
|
|
|
2001-07-13 18:53:55 +00:00
|
|
|
.include <bsd.port.mk>
|