blob: 5c8cd8c2b586fca1a397fcec7c07c4eb92a566ff (
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
59
60
61
62
63
64
65
66
|
# New ports collection makefile for: kdebindings4-python-pykde4
# Date created: 2009-02-13
# Whom: Max Brazhnikov <makc@FreeBSD.org>
#
# $FreeBSD$
#
PORTNAME= kdebindings
PORTVERSION= ${KDE4_VERSION}
CATEGORIES= devel kde python
PKGNAMESUFFIX= -kde
MAINTAINER= kde@FreeBSD.org
COMMENT= Python bindings for KDE
BUILD_DEPENDS= ${PYTHON_SITELIBDIR}/PyQt4/QtGui.so:${PORTSDIR}/x11-toolkits/py-qt4-gui \
${PYTHON_SITELIBDIR}/PyQt4/QtDeclarative.so:${PORTSDIR}/devel/py-qt4-declarative \
${PYTHON_SITELIBDIR}/PyQt4/QtNetwork.so:${PORTSDIR}/net/py-qt4-network \
${PYTHON_SITELIBDIR}/PyQt4/QtSvg.so:${PORTSDIR}/graphics/py-qt4-svg \
${PYTHON_SITELIBDIR}/PyQt4/QtWebKit.so:${PORTSDIR}/www/py-qt4-webkit \
${PYTHON_SITELIBDIR}/PyQt4/QtXml.so:${PORTSDIR}/textproc/py-qt4-xml \
${PYTHON_SITELIBDIR}/PyQt4/phonon.so:${PORTSDIR}/multimedia/py-qt4-phonon
LIB_DEPENDS= okularcore.1:${PORTSDIR}/graphics/kdegraphics4 \
qwt.5:${PORTSDIR}/x11-toolkits/qwt5
RUN_DEPENDS:= ${BUILD_DEPENDS} \
${PYTHON_SITELIBDIR}/dbus/mainloop/qt.so:${PORTSDIR}/devel/py-qt4-dbus
BINDLANG= python
BINDMODULE= pykde4
USE_KDE4= akonadi kdelibs pimlibs
USE_PYTHON= 2.5+
CMAKE_ARGS+= -DWITH_PolkitQt:BOOL=FALSE
MAKE_JOBS_SAFE= yes
SUB_FILES= kdebindings4.pth
SUB_LIST= PYTHONPREFIX_SITELIBDIR=${PYTHONPREFIX_SITELIBDIR}
EXAMPLESDIR= ${PREFIX}/share/examples/pykde4
.include "${.CURDIR}/../../devel/kdebindings4/files/Makefile.kdebindings"
.include <bsd.port.pre.mk>
post-patch:
.if ${OSVERSION} < 800069
${REINPLACE_CMD} -e '/dlopen("kpythonpluginfactory.so"/s,RTLD_NOLOAD |,,' \
${PATCH_WRKSRC}/python/pykde4/kpythonpluginfactory/kpythonpluginfactory.cpp
.endif
${FIND} -d ${PATCH_WRKSRC}/python/pykde4/sip -name "*.orig" -delete
pre-configure:
${REINPLACE_CMD} -e 's,$${SIP_DEFAULT_SIP_DIR},${PREFIX}/${SIPDIR_REL},g' \
${BUILD_WRKSRC}/CMakeLists.txt
${REINPLACE_CMD} -e '/ADD_SUBDIRECTORY(examples)/d' \
-e '/ADD_SUBDIRECTORY(tools)/d' \
${BUILD_WRKSRC}/CMakeLists.txt
${RM} ${BUILD_WRKSRC}/examples/CMakeLists.txt
post-install:
.if !defined(NOPORTEXAMPLES)
${MKDIR} ${EXAMPLESDIR}
cd ${BUILD_WRKSRC}/examples && ${COPYTREE_SHARE} . ${EXAMPLESDIR}
.endif
${INSTALL_DATA} ${WRKDIR}/kdebindings4.pth ${PYTHON_SITELIBDIR}
.include <bsd.port.post.mk>
|