summaryrefslogtreecommitdiff
path: root/devel/shiboken/Makefile
blob: 54f0a7f0a8888105a7ac32dac7f829be6969c623 (plain)
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
# Created by: Nicola Vitale <nivit@FreeBSD.org>
# $FreeBSD$

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

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

LICENSE=	GPLv2 LGPL21
LICENSE_COMB=	multi

DEPRECATED=		Qt4 has been EOL since december 2015
EXPIRATION_DATE=	2019-03-15

LIB_DEPENDS=	libxml2.so:textproc/libxml2 \
		libxslt.so:textproc/libxslt

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

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

USES=		cmake:insource python:2.7 qt:4 tar:bzip2
USE_LDCONFIG=	yes

ALL_TARGET=	all
TEST_TARGET=	test

OPTIONS_DEFINE=	DOCS MANPAGES
OPTIONS_DEFAULT=	MANPAGES
OPTIONS_SUB=	yes

MANPAGES_PLIST_FILES=	man/man1/shiboken.1.gz
MANPAGES_CMAKE_OFF=	-DNO_INSTALL_MANPAGES:BOOL="ON"

DOCS_BUILD_DEPENDS=	sphinx-build:textproc/py-sphinx
DOCS_ALL_TARGET=	doc

post-install-DOCS-on:
	cd ${WRKSRC}/doc/html && ${COPYTREE_SHARE} . ${STAGEDIR}${DOCSDIR}

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

.include <bsd.port.mk>