aboutsummaryrefslogtreecommitdiff
path: root/graphics/robot/Makefile
blob: c5d95dfe28c6e372540635ff723a73afddadcf5f (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
# New ports collection makefile for:	robot
# Date created:         11 October 2003
# Whom:                 Pedro F. Giffuni <giffunip@asme.org>
#
# $FreeBSD$
#

PORTNAME=	robot
PORTVERSION=	4.93.89
PORTREVISION=	6
CATEGORIES=	graphics
MASTER_SITES=	ftp://lheaftp.gsfc.nasa.gov/pub/corbet/robot/
DISTNAME=	robot-beta

MAINTAINER=	ports@FreeBSD.org
COMMENT=	Graph plotting and data analysis program using OpenLook

BUILD_DEPENDS=	fsplit:${PORTSDIR}/devel/fortran-utils \
		imake:${X_IMAKE_PORT}
LIB_DEPENDS=	xview.3:${PORTSDIR}/x11-toolkits/xview

USE_X_PREFIX=	yes
USE_GMAKE=	yes
MAKE_ENV+=	OPENWINHOME=${X11BASE}
WEB_BROWSER?=	firefox
WANT_FORTRAN=	yes #dummy but future use
BUILD_DEPENDS+= gfortran42:${PORTSDIR}/lang/gcc42
FC=		gfortran42
F77=		gfortran42
FFLAGS+=	-ffixed-line-length-80
MAKE_ENV+=	FC="${FC}" F77="${F77}" FFLAGS="${FFLAGS}"

MANL=		robot.l

pre-build:
	@${REINPLACE_CMD} -e 's+netscape+${WEB_BROWSER}+ ' \
	  ${WRKSRC}/Robot/Makefile

do-install:
	${INSTALL_PROGRAM} ${WRKSRC}/Robot/robot ${PREFIX}/bin
	@${MKDIR} ${PREFIX}/lib/help
	${INSTALL_DATA} ${WRKSRC}/Docs/robot.info ${PREFIX}/lib/help
	${INSTALL_MAN} ${WRKSRC}/Docs/robot.man ${PREFIX}/man/manl/robot.l
.ifndef NOPORTDOCS
	@${MKDIR} ${DOCSDIR}
	${INSTALL_DATA} ${WRKSRC}/Docs/RobotManual.ps ${DOCSDIR}
	@${GZIP_CMD} ${DOCSDIR}/RobotManual.ps
	@${REINPLACE_CMD} -e 's+/usr/bin+${PREFIX}/bin+ ' \
	  ${WRKSRC}/Demos/*.rob
	@${MKDIR} ${EXAMPLESDIR}
	${INSTALL_DATA} ${WRKSRC}/Demos/*.rob ${EXAMPLESDIR}
.endif

.include <bsd.port.mk>