summaryrefslogtreecommitdiff
path: root/devel/kdebindings4-python-pykde4/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'devel/kdebindings4-python-pykde4/Makefile')
-rw-r--r--devel/kdebindings4-python-pykde4/Makefile49
1 files changed, 28 insertions, 21 deletions
diff --git a/devel/kdebindings4-python-pykde4/Makefile b/devel/kdebindings4-python-pykde4/Makefile
index 5c8cd8c2b586..d6679fb8d22c 100644
--- a/devel/kdebindings4-python-pykde4/Makefile
+++ b/devel/kdebindings4-python-pykde4/Makefile
@@ -5,54 +5,61 @@
# $FreeBSD$
#
-PORTNAME= kdebindings
+PORTNAME= pykde4
PORTVERSION= ${KDE4_VERSION}
CATEGORIES= devel kde python
-PKGNAMESUFFIX= -kde
+MASTER_SITES= ${MASTER_SITE_KDE}
+MASTER_SITE_SUBDIR= ${KDE4_BRANCH}/${PORTVERSION}/src
+PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX}kdebindings-
+DIST_SUBDIR= 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 \
+LIB_DEPENDS= okularcore.1:${PORTSDIR}/graphics/okular \
+ qwt.5:${PORTSDIR}/x11-toolkits/qwt5 \
+ soprano.4:${PORTSDIR}/textproc/soprano
+
+BUILD_DEPENDS= ${PYTHON_SITELIBDIR}/PyQt4/QtDesigner.so:${PORTSDIR}/devel/py-qt4-designer \
+ ${PYTHON_SITELIBDIR}/PyQt4/QtGui.so:${PORTSDIR}/x11-toolkits/py-qt4-gui \
${PYTHON_SITELIBDIR}/PyQt4/QtNetwork.so:${PORTSDIR}/net/py-qt4-network \
+ ${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 \
${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
+ ${PYTHON_SITELIBDIR}/PyQt4/phonon.so:${PORTSDIR}/multimedia/py-qt4-phonon \
+ ${PYTHON_SITELIBDIR}/PyQt4/QtDeclarative.so:${PORTSDIR}/devel/py-qt4-declarative
+
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_KDE4= kdehier kdelibs kdeprefix pimlibs akonadi automoc4
USE_PYTHON= 2.5+
+USE_QT_VER= 4
+QT_COMPONENTS= corelib qmake_build moc_build uic_build rcc_build
+USE_BZIP2= yes
+USE_CMAKE= yes
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
+ ${REINPLACE_CMD} -e '/dlopen("kpythonpluginfactory.so"/ s,RTLD_NOLOAD |,,' \
+ ${PATCH_WRKSRC}/kpythonpluginfactory/kpythonpluginfactory.cpp
.endif
- ${FIND} -d ${PATCH_WRKSRC}/python/pykde4/sip -name "*.orig" -delete
+ ${FIND} -d ${PATCH_WRKSRC}/sip -name "*.orig" -delete
pre-configure:
- ${REINPLACE_CMD} -e 's,$${SIP_DEFAULT_SIP_DIR},${PREFIX}/${SIPDIR_REL},g' \
+ ${REINPLACE_CMD} -e 's,$${SIP_DEFAULT_SIP_DIR},${PREFIX}/share/py-sip,g' \
${BUILD_WRKSRC}/CMakeLists.txt
- ${REINPLACE_CMD} -e '/ADD_SUBDIRECTORY(examples)/d' \
- -e '/ADD_SUBDIRECTORY(tools)/d' \
+ ${REINPLACE_CMD} -e '/ADD_SUBDIRECTORY(examples)/ d' \
+ -e '/ADD_SUBDIRECTORY(tools)/ d' \
${BUILD_WRKSRC}/CMakeLists.txt
${RM} ${BUILD_WRKSRC}/examples/CMakeLists.txt