2009-05-09 21:38:16 +02:00
|
|
|
# $FreeBSD$
|
|
|
|
|
2011-10-17 02:03:42 +02:00
|
|
|
PORTNAME= pykde4
|
2009-05-09 21:38:16 +02:00
|
|
|
PORTVERSION= ${KDE4_VERSION}
|
|
|
|
CATEGORIES= devel kde python
|
2014-02-18 15:23:03 +01:00
|
|
|
MASTER_SITES= KDE/${KDE4_BRANCH}/${PORTVERSION}/src
|
2013-02-03 21:10:37 +01:00
|
|
|
PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX}
|
2013-03-27 12:55:25 +01:00
|
|
|
DIST_SUBDIR= KDE/${PORTVERSION}
|
2009-05-09 21:38:16 +02:00
|
|
|
|
|
|
|
MAINTAINER= kde@FreeBSD.org
|
|
|
|
COMMENT= Python bindings for KDE
|
|
|
|
|
2014-02-18 15:23:03 +01:00
|
|
|
LIB_DEPENDS= libqwt.so:${PORTSDIR}/x11-toolkits/qwt5
|
2011-10-17 02:03:42 +02:00
|
|
|
|
|
|
|
BUILD_DEPENDS= ${PYTHON_SITELIBDIR}/PyQt4/QtDesigner.so:${PORTSDIR}/devel/py-qt4-designer \
|
|
|
|
${PYTHON_SITELIBDIR}/PyQt4/QtGui.so:${PORTSDIR}/x11-toolkits/py-qt4-gui \
|
2009-05-09 21:38:16 +02:00
|
|
|
${PYTHON_SITELIBDIR}/PyQt4/QtNetwork.so:${PORTSDIR}/net/py-qt4-network \
|
2011-10-17 02:03:42 +02:00
|
|
|
${PYTHON_SITELIBDIR}/PyQt4/QtOpenGL.so:${PORTSDIR}/x11/py-qt4-opengl \
|
|
|
|
${PYTHON_SITELIBDIR}/PyQt4/QtSql.so:${PORTSDIR}/databases/py-qt4-sql \
|
|
|
|
${PYTHON_SITELIBDIR}/PyQt4/QtXml.so:${PORTSDIR}/textproc/py-qt4-xml \
|
2009-05-09 21:38:16 +02:00
|
|
|
${PYTHON_SITELIBDIR}/PyQt4/QtSvg.so:${PORTSDIR}/graphics/py-qt4-svg \
|
|
|
|
${PYTHON_SITELIBDIR}/PyQt4/QtWebKit.so:${PORTSDIR}/www/py-qt4-webkit \
|
2011-10-17 02:03:42 +02:00
|
|
|
${PYTHON_SITELIBDIR}/PyQt4/phonon.so:${PORTSDIR}/multimedia/py-qt4-phonon \
|
|
|
|
${PYTHON_SITELIBDIR}/PyQt4/QtDeclarative.so:${PORTSDIR}/devel/py-qt4-declarative
|
2010-05-11 16:21:05 +02:00
|
|
|
RUN_DEPENDS:= ${BUILD_DEPENDS} \
|
2013-02-03 21:10:37 +01:00
|
|
|
${PYTHON_SITELIBDIR}/dbus/mainloop/qt.so:${PORTSDIR}/devel/py-qt4-dbussupport
|
2009-05-09 21:38:16 +02:00
|
|
|
|
2012-05-25 04:15:20 +02:00
|
|
|
USE_KDE4= kdehier kdelibs kdeprefix okular pimlibs \
|
|
|
|
akonadi automoc4 soprano
|
2014-02-18 15:23:03 +01:00
|
|
|
USE_PYTHON= 2
|
2013-03-27 12:55:25 +01:00
|
|
|
USE_QT4= corelib dbus designer_build gui network xml \
|
|
|
|
qmake_build moc_build uic_build rcc_build
|
2014-04-03 11:49:10 +02:00
|
|
|
USES= cmake:outsource tar:xz
|
2011-03-25 11:33:51 +01:00
|
|
|
CMAKE_ARGS+= -DWITH_PolkitQt:BOOL=FALSE
|
2009-05-09 21:38:16 +02:00
|
|
|
|
|
|
|
SUB_FILES= kdebindings4.pth
|
|
|
|
SUB_LIST= PYTHONPREFIX_SITELIBDIR=${PYTHONPREFIX_SITELIBDIR}
|
|
|
|
|
2013-05-18 22:34:41 +02:00
|
|
|
PLIST_SUB+= SIPDIR=share/sip
|
|
|
|
|
2013-03-27 12:55:25 +01:00
|
|
|
OPTIONS_DEFINE= EXAMPLES
|
|
|
|
|
2010-09-02 23:06:27 +02:00
|
|
|
post-patch:
|
2011-10-17 02:03:42 +02:00
|
|
|
${FIND} -d ${PATCH_WRKSRC}/sip -name "*.orig" -delete
|
2009-12-01 17:34:53 +01:00
|
|
|
|
2009-05-09 21:38:16 +02:00
|
|
|
pre-configure:
|
2013-03-27 12:55:25 +01:00
|
|
|
${REINPLACE_CMD} -e '/add_subdirectory(examples)/ d' \
|
|
|
|
-e '/add_subdirectory(tools)/ d' \
|
|
|
|
${WRKSRC}/CMakeLists.txt
|
|
|
|
${RM} ${WRKSRC}/examples/CMakeLists.txt
|
2009-05-09 21:38:16 +02:00
|
|
|
|
|
|
|
post-install:
|
2014-02-18 15:23:03 +01:00
|
|
|
${MKDIR} ${STAGEDIR}${EXAMPLESDIR}
|
|
|
|
cd ${WRKSRC}/examples && ${COPYTREE_SHARE} . ${STAGEDIR}${EXAMPLESDIR}
|
|
|
|
${MKDIR} ${STAGEDIR}${PYTHON_SITELIBDIR}
|
|
|
|
${INSTALL_DATA} ${WRKDIR}/kdebindings4.pth ${STAGEDIR}${PYTHON_SITELIBDIR}
|
2009-05-09 21:38:16 +02:00
|
|
|
|
2013-03-27 12:55:25 +01:00
|
|
|
.include <bsd.port.mk>
|