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

PORTNAME=   sip
PORTVERSION=    4.2.1
PORTREVISION=   1
CATEGORIES= devel python
MASTER_SITES=   http://www.river-bank.demon.co.uk/download/sip/ \
        http://freebsd.ricin.com/ports/distfiles/
PKGNAMEPREFIX=  ${PYTHON_PKGNAMEPREFIX}
DISTNAME=   sip-snapshot-20050703

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

DOCSDIR=    ${PREFIX}/share/doc/py-${PORTNAME}

.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} \
        -e ${PYTHON_INCLUDEDIR} -v ${DATADIR} )

post-install:
.if !defined(NOPORTDOCS)
    @( ${MKDIR} ${DOCSDIR} && cd ${WRKSRC} && ${INSTALL_DATA} \
        doc/default.css doc/sipref.txt NEWS LICENSE ${DOCSDIR} && \
        ${CHOWN} -R ${SHAREOWN}:${SHAREGRP} ${DOCSDIR} )
.endif
    @${PYTHON_CMD} -c "import sipconfig"
    @${PYTHON_CMD} -O -c "import sipconfig"

.include <bsd.port.post.mk>