Files
ports/math/gri/Makefile
Rong-En Fan f935a609c5 - Set --mandir and --infodir in CONFIGURE_ARGS if the configure script
supports them.  This is determined by running ``configure --help'' in
  do-configure target and set the shell variable _LATE_CONFIGURE_ARGS
  which is then passed to CONFIGURE_ARGS.
- Remove --mandir and --infodir in ports' Makefile where applicable
  Few ports use REINPLACE_CMD to achieve the same effect, remove them too.
- Correct some manual pages location from PREFIX/man to MANPREFIX/man
- Define INFO_PATH where necessary
- Document that .info files are installed in a subdirectory relative to
  PREFIX/INFO_PATH and slightly change add-plist-info to use INFO_PATH and
  subdirectory detection.

PR:		ports/111470
Approved by:	portmgr
Discussed with:	stas (Mk/*), gerald (info related stuffs)
Tested by:	pointyhat exp run
2007-07-23 09:36:51 +00:00

47 lines
1.2 KiB
Makefile

# New ports collection makefile for: gri
# Date created: 14 Oct 2000
# Whom: M. L. Dodson, <bdodson@scms.utmb.edu>
#
# $FreeBSD$
#
PORTNAME= gri
PORTVERSION= 2.12.15
CATEGORIES= math
MASTER_SITES= ${MASTER_SITE_SOURCEFORGE}
MASTER_SITE_SUBDIR= ${PORTNAME}
MAINTAINER= christopher.illies@ki.se
COMMENT= An extensible plotting language for producing scientific graphs
LIB_DEPENDS= netcdf.4:${PORTSDIR}/science/netcdf
.if !defined(NOPORTDOCS)
BUILD_DEPENDS+= convert:${PORTSDIR}/graphics/ImageMagick \
dvips:${PORTSDIR}/print/dvipsk-tetex
.endif
GNU_CONFIGURE= yes
CONFIGURE_ARGS= --enable-FreeBSD
USE_GMAKE= yes
REINPLACE_ARGS= -Ei.bak
MAKE_ENV+= MAKEINFOFLAGS=--no-split
MAN1= gri.1 gri_merge.1 gri_unpage.1
INFO= gri
post-patch:
.if defined(NOPORTDOCS)
${REINPLACE_CMD} -e '/^(DIST_)?SUBDIRS/s/doc//' ${WRKSRC}/Makefile.in
.endif
post-install:
.if defined(NOPORTDOCS)
${INSTALL_MAN} ${WRKSRC}/doc/gri-manpage.1 ${MANPREFIX}/man/man1/gri.1
${INSTALL_MAN} ${WRKSRC}/doc/gri_merge.1-skel ${MANPREFIX}/man/man1/gri_merge.1
${INSTALL_MAN} ${WRKSRC}/doc/gri_unpage.1-skel ${MANPREFIX}/man/man1/gri_unpage.1
${INSTALL_DATA} ${WRKSRC}/doc/gri.info* ${PREFIX}/info
.endif
.include <bsd.port.mk>