aboutsummaryrefslogtreecommitdiffstats
path: root/devel/py-sip/Makefile
blob: a33bb355d5d9921d904937e864fd9e1f44d4a719 (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
# New ports collection makefile for:    py-sip
# Date created:     Tue Oct  8 09:51:22 SAST 2002
# Whom:         nbm
#
# $FreeBSD$

PORTNAME=   sip
PORTVERSION=    4.1.1
PORTREVISION=   2
CATEGORIES= devel python
MASTER_SITES=   http://www.river-bank.demon.co.uk/download/sip/
PKGNAMEPREFIX=  ${PYTHON_PKGNAMEPREFIX}

MAINTAINER= danny@ricin.com
COMMENT=    Python to C and C++ bindings generator

BUILD_DEPENDS=  qmake:${PORTSDIR}/devel/qmake

USE_PYTHON= yes
USE_QT_VER= 3

.include <bsd.port.pre.mk>

do-configure:
    @(cd ${WRKSRC} && ${SETENV} QTDIR=${X11BASE} \
        QMAKESPEC=${LOCALBASE}/share/qt/mkspecs/freebsd-g++ \
        ${PYTHON_CMD} configure.py -b ${PREFIX}/bin \
        -d ${PYTHONPREFIX_SITELIBDIR} -v ${PREFIX}/share/sip)

post-install:
    @${PYTHON_CMD} -O -c "import sipconfig"

.include <bsd.port.post.mk>