aboutsummaryrefslogtreecommitdiffstats
path: root/devel/shiboken/Makefile
blob: df746ff02f18bb6929a3cb922fd81a3c89dc6132 (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
46
47
48
49
50
51
52
53
54
55
56
57
58
# Created by: Nicola Vitale <nivit@FreeBSD.org>
# $FreeBSD$

PORTNAME=   shiboken
PORTVERSION=    1.2.2
CATEGORIES= devel
MASTER_SITES=   https://download.qt-project.org/official_releases/pyside/

MAINTAINER= wg@FreeBSD.org
COMMENT=    C++ code generator for CPython extensions

LICENSE=    GPLv2 LGPL21
LICENSE_COMB=   multi

LIB_DEPENDS=    libxml2.so:${PORTSDIR}/textproc/libxml2 \
        libxslt.so:${PORTSDIR}/textproc/libxslt

PLIST_SUB=  PORTVERSION=${PORTVERSION} \
        PYTHON_VERSION=${PYTHON_VERSION}

USE_QT4=    corelib qmake_build qtestlib moc_build network \
        uic_build rcc_build xml xmlpatterns

USES=       cmake python tar:bzip2
USE_LDCONFIG=   yes

ALL_TARGET= all

OPTIONS_DEFINE= DOCS MANPAGES
OPTIONS_DEFAULT=    MANPAGES

.include <bsd.port.options.mk>

.if ${PORT_OPTIONS:MMANPAGES}
PLIST_FILES+=   man/man1/shiboken.1.gz
.else
CMAKE_ARGS= -DNO_INSTALL_MANPAGES:BOOL="ON"
.endif

.if ${PORT_OPTIONS:MDOCS}
BUILD_DEPENDS+= sphinx-build:${PORTSDIR}/textproc/py-sphinx
ALL_TARGET+=    doc
post-install:
    if [ -d ${WRKSRC}/doc/html ]; then \
        ${MKDIR} ${STAGEDIR}${DOCSDIR} && \
        cd ${WRKSRC}/doc/html && ${COPYTREE_SHARE} . ${STAGEDIR}${DOCSDIR}; \
    fi
.endif

post-patch:
    @cd ${WRKSRC}/generator && \
    ${MV} ${PORTNAME} ${PORTNAME}.dir

regression-test: build
    @${ECHO_MSG} "===> Running shiboken regression tests"
    @cd ${WRKSRC} && ${MAKE} test

.include <bsd.port.mk>