1
0
mirror of https://git.FreeBSD.org/ports.git synced 2025-01-29 10:18:30 +00:00
freebsd-ports/devel/py-pykde4/Makefile
Max Brazhnikov cb8b1428c6 KDE/FreeBSD team presents KDE SC 4.9.5 ports!
- kdebindings ports have been renamed to match upstream.
- kdemultimedia and kdenetwork have been split.
- New port games/pairs added.
- Trim Makefile header
- Convert to new option framework
- New USE_KDE4 components: libkcddb, libkcompactdisc
- Update:
	databases/akonadi to 1.9.0
	devel/grantlee to 0.3.0
	textproc/rasqal to 0.9.30
	textproc/redland-bindings to 1.0.16.1
	textproc/soprano to 2.9.0
	x11-toolkits/attica to 0.4.1

The area51 repository features commits by Schaich Alonso, avilla, dbn,
jhale, makc and rakuco.

Contributors:
- Oleg Sidorkin
- Tobias Berner
- Kurt Jaeger
2013-02-03 20:10:37 +00:00

66 lines
2.3 KiB
Makefile

# $FreeBSD$
PORTNAME= pykde4
PORTVERSION= ${KDE4_VERSION}
CATEGORIES= devel kde python
MASTER_SITES= ${MASTER_SITE_KDE}
MASTER_SITE_SUBDIR= ${KDE4_BRANCH}/${PORTVERSION}/src
PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX}
DIST_SUBDIR= KDE
MAINTAINER= kde@FreeBSD.org
COMMENT= Python bindings for KDE
LIB_DEPENDS= qwt.5:${PORTSDIR}/x11-toolkits/qwt5
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/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-dbussupport
USE_KDE4= kdehier kdelibs kdeprefix okular pimlibs \
akonadi automoc4 soprano
USE_PYTHON= 2.5+
USE_QT4= corelib qmake_build moc_build uic_build rcc_build
USE_XZ= yes
USE_CMAKE= yes
CMAKE_ARGS+= -DWITH_PolkitQt:BOOL=FALSE
MAKE_JOBS_SAFE= yes
SUB_FILES= kdebindings4.pth
SUB_LIST= PYTHONPREFIX_SITELIBDIR=${PYTHONPREFIX_SITELIBDIR}
.include <bsd.port.pre.mk>
post-patch:
.if ${OSVERSION} < 800069
${REINPLACE_CMD} -e '/dlopen("kpythonpluginfactory.so"/ s,RTLD_NOLOAD |,,' \
${PATCH_WRKSRC}/kpythonpluginfactory/kpythonpluginfactory.cpp
.endif
${FIND} -d ${PATCH_WRKSRC}/sip -name "*.orig" -delete
pre-configure:
${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' \
${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>