aboutsummaryrefslogtreecommitdiffstats
path: root/graphics/py-ming/Makefile
blob: 3457cb4ba2bbffc9f42ec4188654e104e3c7d6e4 (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
43
44
# New ports collection makefile for:    Python/Ming
# Date created:     16 Oct 2000
# Whom:         Akinori MUSHA aka knu <knu@idaemons.org>
#
# $FreeBSD$
#

PORTNAME=   ming
PORTVERSION=    0.0.9b
CATEGORIES= graphics python
MASTER_SITES=   http://www.opaque.net/ming/
PKGNAMEPREFIX=  ${PYTHON_PKGNAMEPREFIX}
EXTRACT_SUFX=   .tgz

MAINTAINER= knu@FreeBSD.org

LIB_DEPENDS=    ming.2:${PORTSDIR}/graphics/ming

USE_PYTHON= yes

MD5_FILE=   ${.CURDIR}/../ming/distinfo

WRKSRC=     ${WRKDIR}/${DISTNAME}/py_ext
MAKE_ARGS=  PYTHON_VERSION="${PYTHON_VERSION}"

EXAMPLES=   shape.py test.py ../examples/python/*.py

post-extract:
    ${LN} -sf ../ming.i ${WRKSRC}/

post-patch:
    ${PERL} -i -p \
        -e 's:\.\./common:../../ming/common:g;' \
        ${WRKSRC}/../examples/python/*

post-install:
.if !defined(NOPORTDOCS)
    ${MKDIR} ${PREFIX}/share/examples/${PYTHON_VERSION}/ming
.for f in ${EXAMPLES}
    ${INSTALL_DATA} ${WRKSRC}/${f} ${PREFIX}/share/examples/${PYTHON_VERSION}/ming/
.endfor
.endif

.include <bsd.port.mk>