aboutsummaryrefslogtreecommitdiffstats
path: root/math/plplot-ada/Makefile
blob: a0753dab41dd343aaa35dcf0b09683096aac3e40 (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
# Created by: John Marino <marino@FreeBSD.org>
# $FreeBSD$

PORTNAME=   plplot
PORTVERSION=    ${RELEASE}
CATEGORIES= math
MASTER_SITES=   SF/${PORTNAME}/${PORTNAME}/${PORTVERSION}%20Source
PKGNAMESUFFIX=  -ada

MAINTAINER= marino@FreeBSD.org
COMMENT=    Ada bindings for PLplot

LICENSE=    LGPL3

LIB_DEPENDS=    libplplotd.so:${PORTSDIR}/math/plplot

USES=       ada

DISTINFO_FILE=  ${.CURDIR}/../plplot/distinfo
RELEASE!=   awk '/SHA/ {split($$2,a,"."); print substr(a[1], 9) "." a[2] "." a[3];}' ${DISTINFO_FILE}
BUILD_WRKSRC=   ${WRKSRC}/bindings
INSTALL_WRKSRC= ${WRKSRC}/bindings

post-extract:
    ${CP} ${FILESDIR}/build_plplot.gpr ${FILESDIR}/Makefile \
        ${BUILD_WRKSRC}
    ${CAT} ${FILESDIR}/plplot.gpr.in | ${SED} -e "s|@PREFIX@|${PREFIX}|g" > \
        ${BUILD_WRKSRC}/plplot.gpr

.include <bsd.port.mk>