2013-02-07 15:17:25 +01:00
|
|
|
# Created by: M. L. Dodson, <bdodson@scms.utmb.edu>
|
2000-10-28 14:36:04 +02:00
|
|
|
# $FreeBSD$
|
|
|
|
|
|
|
|
PORTNAME= gri
|
2013-02-07 15:17:25 +01:00
|
|
|
PORTVERSION= 2.12.23
|
2014-05-03 05:17:19 +02:00
|
|
|
PORTREVISION= 1
|
2000-10-28 14:36:04 +02:00
|
|
|
CATEGORIES= math
|
2013-02-07 15:17:25 +01:00
|
|
|
MASTER_SITES= SF
|
2000-10-28 14:36:04 +02:00
|
|
|
|
2012-12-04 21:41:09 +01:00
|
|
|
MAINTAINER= ports@FreeBSD.org
|
2013-02-07 15:17:25 +01:00
|
|
|
COMMENT= Extensible plotting language for producing scientific graphs
|
2000-10-28 14:36:04 +02:00
|
|
|
|
2014-05-03 05:17:19 +02:00
|
|
|
LIB_DEPENDS= libnetcdf.so:${PORTSDIR}/science/netcdf
|
2003-01-03 18:57:17 +01:00
|
|
|
|
2014-05-26 14:28:33 +02:00
|
|
|
USES= readline gmake
|
2006-02-13 23:09:20 +01:00
|
|
|
GNU_CONFIGURE= yes
|
2007-07-23 11:36:51 +02:00
|
|
|
CONFIGURE_ARGS= --enable-FreeBSD
|
2013-02-07 15:17:25 +01:00
|
|
|
|
|
|
|
CPPFLAGS+= -I${LOCALBASE}/include
|
|
|
|
LDFLAGS+= -L${LOCALBASE}/lib
|
2006-02-13 23:09:20 +01:00
|
|
|
|
2013-02-07 15:17:25 +01:00
|
|
|
MAN1= gri.1 gri_merge.1 gri_unpage.1
|
|
|
|
INFO= gri
|
|
|
|
PORTDOCS= *
|
|
|
|
PORTEXAMPLES= *
|
|
|
|
PLIST_FILES= bin/gri bin/gri_merge bin/gri_unpage \
|
|
|
|
share/emacs/site-lisp/gri-mode.el \
|
|
|
|
%%DATADIR%%/gri.cmd \
|
|
|
|
%%DATADIR%%/logo.dat \
|
|
|
|
%%DATADIR%%/rgb.txt \
|
|
|
|
%%DATADIR%%/startup.msg
|
|
|
|
PLIST_DIRS= %%DATADIR%%
|
|
|
|
|
2013-09-20 22:55:04 +02:00
|
|
|
NO_STAGE= yes
|
2014-02-10 14:54:26 +01:00
|
|
|
|
2014-02-21 14:38:05 +01:00
|
|
|
OPTIONS_DEFINE= DOCS EXAMPLES
|
2014-02-10 14:54:26 +01:00
|
|
|
|
2013-02-07 15:17:25 +01:00
|
|
|
.include <bsd.port.options.mk>
|
|
|
|
|
|
|
|
.if ${PORT_OPTIONS:MDOCS} || ${PORT_OPTIONS:MEXAMPLES}
|
|
|
|
BUILD_DEPENDS+= convert:${PORTSDIR}/graphics/ImageMagick \
|
|
|
|
dvips:${PORTSDIR}/print/dvipsk-tetex
|
|
|
|
.endif
|
2002-07-17 10:57:36 +02:00
|
|
|
|
2007-12-13 02:09:51 +01:00
|
|
|
post-patch:
|
2013-02-07 15:17:25 +01:00
|
|
|
@${REINPLACE_CMD} -e \
|
|
|
|
'/^SUBDIRS/s|doc||' ${WRKSRC}/Makefile.in
|
|
|
|
@${REINPLACE_CMD} -e \
|
|
|
|
'/gzip/s|^|#| ; \
|
|
|
|
/EXAMPLES_DIR/s|^|#|' ${WRKSRC}/doc/Makefile.in
|
|
|
|
|
|
|
|
post-build:
|
|
|
|
.if ${PORT_OPTIONS:MDOCS} || ${PORT_OPTIONS:MEXAMPLES}
|
|
|
|
(cd ${WRKSRC}/doc && ${SETENV} ${MAKE_ENV} ${GMAKE} ${MAKE_FLAGS} \
|
|
|
|
${MAKEFILE} ${MAKE_ARGS} ${ALL_TARGET})
|
|
|
|
.else
|
|
|
|
(cd ${WRKSRC}/doc && makeinfo gri.texi)
|
2006-02-13 23:09:20 +01:00
|
|
|
.endif
|
2000-10-28 14:36:04 +02:00
|
|
|
|
2007-12-13 02:09:51 +01:00
|
|
|
post-install:
|
2013-02-07 15:17:25 +01:00
|
|
|
.if ${PORT_OPTIONS:MDOCS}
|
|
|
|
(cd ${WRKSRC}/doc && ${SETENV} ${MAKE_ENV} ${GMAKE} ${MAKE_FLAGS} \
|
|
|
|
${MAKEFILE} ${MAKE_ARGS} ${INSTALL_TARGET})
|
|
|
|
.else
|
|
|
|
(cd ${WRKSRC}/doc \
|
|
|
|
&& ${INSTALL_MAN} gri-manpage.1 ${MANPREFIX}/man/man1/gri.1 \
|
|
|
|
&& ${INSTALL_MAN} gri_merge.1-skel ${MANPREFIX}/man/man1/gri_merge.1 \
|
|
|
|
&& ${INSTALL_MAN} gri_unpage.1-skel ${MANPREFIX}/man/man1/gri_unpage.1)
|
|
|
|
(cd ${WRKSRC}/doc \
|
|
|
|
&& ${INSTALL_DATA} gri.info* ${PREFIX}/${INFO_PATH})
|
|
|
|
.endif
|
|
|
|
.if ${PORT_OPTIONS:MEXAMPLES}
|
|
|
|
@${MKDIR} ${EXAMPLESDIR}
|
|
|
|
(cd ${WRKSRC}/doc/examples \
|
|
|
|
&& ${INSTALL_DATA} model* *.dat *.gri e*.ps ${EXAMPLESDIR})
|
|
|
|
(cd ${WRKSRC}/doc/examples \
|
|
|
|
&& ${INSTALL_SCRIPT} FEM.pl ${EXAMPLESDIR})
|
2000-10-28 14:36:04 +02:00
|
|
|
.endif
|
|
|
|
|
|
|
|
.include <bsd.port.mk>
|