aboutsummaryrefslogtreecommitdiffstats
path: root/math/biggles/Makefile
blob: 6f7bb217f085cf2434ee16f83205b71a390f9190 (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
# ex:ts=8
# New ports collection makefile for:    biggles
# Date created:         Nov 25, 2001
# Whom:             ijliao
#
# $FreeBSD$
#

PORTNAME=   biggles
PORTVERSION=    1.6.5
CATEGORIES= math
MASTER_SITES=   SF
DISTNAME=   python2-${PORTNAME}-${PORTVERSION}

MAINTAINER= ports@FreeBSD.org
COMMENT=    Create publication-quality 2D scientific plots

BUILD_DEPENDS=  ${PYNUMPY}
LIB_DEPENDS=    plot:${PORTSDIR}/graphics/plotutils

USE_PYTHON= yes
USE_GMAKE=  yes
MAKE_ARGS=  CC="${CC}" \
        CFLAGS="${CFLAGS} -fPIC" \
        LIBPLOT_CPPFLAGS="-I${LOCALBASE}/include" \
        LIBPLOT_LDFLAGS="-L${LOCALBASE}/lib -lplot"

pre-build:
    @${PYTHON_CMD} ${PYTHON_LIBDIR}/compileall.py ${WRKSRC}
    @${PYTHON_CMD} -O ${PYTHON_LIBDIR}/compileall.py ${WRKSRC}

do-install:
    @${MKDIR} ${PYTHON_SITELIBDIR}/biggles
.for ext in ini so py pyc pyo
    ${INSTALL_DATA} ${WRKSRC}/src/*.${ext} ${PYTHON_SITELIBDIR}/biggles
.endfor
    @${MKDIR} ${PYTHON_SITELIBDIR}/biggles/libplot
.for ext in so py pyc pyo
    ${INSTALL_DATA} ${WRKSRC}/src/libplot/*.${ext} ${PYTHON_SITELIBDIR}/biggles/libplot
.endfor

.include <bsd.port.mk>