aboutsummaryrefslogtreecommitdiffstats
path: root/graphics/py-gdchart/Makefile
blob: cc5f3be93652b80799220c8b95e5541938c538cd (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
# New ports collection makefile for:    py-gdchart
# Date created:     18 June 2001
# Whom:         Hye-Shik Chang <perky@python.or.kr>
#
# $FreeBSD$

PORTNAME=   gdchart
PORTVERSION=    0.6
PORTREVISION=   2
CATEGORIES= graphics python
MASTER_SITES=   http://www.nullcube.com/software/pygdchart/source/
PKGNAMEPREFIX=  ${PYTHON_PKGNAMEPREFIX}
DISTNAME=   ${PORTNAME}-py-${PORTVERSION}

MAINTAINER= perky@FreeBSD.org

BUILD_DEPENDS=  ${LOCALBASE}/lib/libgdchart.a:${PORTSDIR}/graphics/gdchart

USE_PYTHON= yes
USE_GMAKE=  yes
MAKE_ENV=   GD_INCLUDE=${LOCALBASE}/include/gd \
        GDCHART_INCLUDE=${LOCALBASE}/include \
        PYTHON_INCLUDE=${PYTHON_INCLUDEDIR} \
        LOCALBASE=${LOCALBASE}
PLIST_SUB=  PYTHON_SITELIBDIR=${PYTHON_SITELIBDIR:S/^${LOCALBASE}\///g} \
        EXAMPLE_DIR=${EXAMPLE_DIR:S/^${LOCALBASE}\///g}
MODULE_FILES=   chart.py gdchart.so
EXAMPLE_FILES=  test.html test.py CHANGES
EXAMPLE_DIR=    ${PREFIX}/share/examples/${PKGNAMEPREFIX}${PORTNAME}

do-install:
.for file in ${MODULE_FILES}
    ${INSTALL_DATA} ${WRKSRC}/${file} ${PYTHON_SITELIBDIR}
.endfor
.if !defined(NO_PORTDOCS)
    ${MKDIR} ${EXAMPLE_DIR}
.for file in ${EXAMPLE_FILES}
    ${INSTALL_DATA} ${WRKSRC}/${file} ${EXAMPLE_DIR}
.endfor
.endif

.include <bsd.port.mk>