aboutsummaryrefslogtreecommitdiffstats
path: root/devel/py-sip/Makefile
blob: 7006ba7299f87c058183712cf2c0e8b2ca4b336b (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
45
# Created by: nbm
# $FreeBSD$

PORTNAME=   sip
PORTVERSION=    ${SIP_VERSION}
PORTREVISION=   1
PORTEPOCH=  1
CATEGORIES= devel python
MASTER_SITES=   ${MASTER_SITES_SIP}
PKGNAMEPREFIX=  ${PYTHON_PKGNAMEPREFIX}
DISTNAME=   ${SIP_DISTNAME}

MAINTAINER= kde@FreeBSD.org
COMMENT=    Python to C and C++ bindings generator

USES=       python
USE_PYTHON= concurrent py3kplist

CONFIGURE_ARGS= -b ${PREFIX}/bin -d ${PYTHONPREFIX_SITELIBDIR} \
        -e ${PYTHONPREFIX_INCLUDEDIR} -v ${DATADIR} \
        CC="${CC}" CXX="${CXX}" LINK="${CXX}" LINK_SHLIB="${CXX}" \
        CFLAGS="${CFLAGS}" CXXFLAGS="${CXXFLAGS}" \
        INCDIR="${LOCALBASE}/include" LIBDIR="${LOCALBASE}/lib"

PORTDOCS=   *

OPTIONS_DEFINE=     DOCS DEBUG
DEBUG_CONFIGURE_ON= --debug

.include "${.CURDIR}/../py-qt4/bsd.pyqt.mk"

do-configure:
    cd ${WRKSRC} && ${PYTHON_CMD} configure.py ${CONFIGURE_ARGS}

post-install:
    ${MKDIR} ${STAGEDIR}${DOCSDIR} && cd ${WRKSRC}/doc/html && \
        ${COPYTREE_SHARE} \. ${STAGEDIR}${DOCSDIR}
    ${PYTHON_CMD} ${PYTHON_LIBDIR}/compileall.py \
        -f -d ${PYTHONPREFIX_SITELIBDIR} \
        ${STAGEDIR}${PYTHONPREFIX_SITELIBDIR}
    ${PYTHON_CMD} -O ${PYTHON_LIBDIR}/compileall.py \
        -f -d ${PYTHONPREFIX_SITELIBDIR} \
        ${STAGEDIR}${PYTHONPREFIX_SITELIBDIR}

.include <bsd.port.mk>