aboutsummaryrefslogtreecommitdiff
path: root/graphics/bsd-plotutils/Makefile
blob: 689f72481b574c76f5884e8e9bc8997e568584a2 (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
PORTNAME=	bsd-plotutils
DISTVERSION=	1.4.2
PORTREVISION=	2
CATEGORIES=	graphics

MAINTAINER=	toranktto@gmail.com
COMMENT=	Traditional plotting utilities
WWW=		https://github.com/Toranktto/bsd-plotutils

LICENSE=	BSD4CLAUSE
LICENSE_FILE=	${WRKSRC}/LICENSE

OPTIONS_DEFINE=	FORTRAN
OPTIONS_SUB=	yes
FORTRAN_DESC=	FORTRAN 77 support

.include <bsd.port.options.mk>

.if ${PORT_OPTIONS:MFORTRAN}
USES+=	fortran
.endif

USE_GITHUB=	yes
GH_ACCOUNT=	Toranktto

CONFLICTS_INSTALL=	plotutils
USE_LDCONFIG=	yes

post-patch:
	@${REINPLACE_CMD} -e "s/py27plot//g" ${WRKSRC}/libplot/bindings/Makefile
	@${REINPLACE_CMD} -e '/#pragma GCC diagnostic/d' ${WRKSRC}/graph/graph.c

.if !${PORT_OPTIONS:MFORTRAN}
	@${REINPLACE_CMD} -e "s/f77plot//g" ${WRKSRC}/libplot/bindings/Makefile
.endif

.include <bsd.port.mk>