freebsd-ports/graphics/bsd-plotutils/Makefile
Gerald Pfeifer 879e75a659 Related to revision 499061 bump ports with USES=fortran to have them
benefit from the improved situation where libgcc_s is only used when
absolutely necessary.

Suggested by:	tijl
2019-04-22 13:16:33 +00:00

46 lines
916 B
Makefile

# $FreeBSD$
PORTNAME= bsd-plotutils
DISTVERSION= 1.4.2
PORTREVISION= 1
CATEGORIES= graphics
MAINTAINER= toranktto@gmail.com
COMMENT= Traditional plotting utilities
LICENSE= BSD4CLAUSE
LICENSE_FILE= ${WRKSRC}/LICENSE
OPTIONS_DEFINE= FORTRAN PYTHON
OPTIONS_SUB= yes
FORTRAN_DESC= FORTRAN 77 support
PYTHON_DESC= Python 2.7 support
.include <bsd.port.options.mk>
.if ${PORT_OPTIONS:MPYTHON}
USES+= python:2.7
.endif
.if ${PORT_OPTIONS:MFORTRAN}
USES+= fortran
.endif
USE_GITHUB= yes
GH_ACCOUNT= Toranktto
GH_PROJECT= bsd-plotutils
CONFLICTS_INSTALL= plotutils
USE_LDCONFIG= yes
post-patch:
.if !${PORT_OPTIONS:MPYTHON}
@${REINPLACE_CMD} -e "s/py27plot//g" ${WRKSRC}/libplot/bindings/Makefile
.endif
@${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>