Files

67 lines
1.8 KiB
Makefile
Raw Permalink Normal View History

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
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
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/ \
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
MODGNU_CONFIG_GUESS_DIRS= ${WRKSRC}/ac-tools
2001-07-13 18:53:55 +00:00
CONFIGURE_ARGS+= --with-bundled-xbae \
--with-extra-incpath=${LOCALBASE}/include \
2001-07-13 18:53:55 +00:00
--with-extra-ldpath=${LOCALBASE}/lib \
--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
LIB_DEPENDS = devel/t1lib \
graphics/jpeg \
2010-11-19 07:23:05 +00:00
graphics/png \
math/fftw \
2020-05-17 23:04:49 +00:00
math/netcdf
FLAVORS= no_x11
2001-07-13 18:53:55 +00:00
FLAVOR?=
.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
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
GRACE_DIR=${TRUEPREFIX}/grace
post-install:
.if ${FLAVOR:Mno_x11}
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
.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
.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
2001-07-13 18:53:55 +00:00
.include <bsd.port.mk>