[BACK]Return to Makefile CVS log [TXT][DIR] Up to [cvs.NetBSD.org] / pkgsrc / x11 / py-kde4

File: [cvs.NetBSD.org] / pkgsrc / x11 / py-kde4 / Makefile (download)

Revision 1.21, Wed Feb 6 23:24:16 2013 UTC (6 years, 2 months ago) by jperkin
Branch: MAIN
Changes since 1.20: +2 -2 lines

PKGREVISION bumps for the security/openssl 1.0.1d update.

# $NetBSD: Makefile,v 1.21 2013/02/06 23:24:16 jperkin Exp $

PKGNAME=	${PYPKGPREFIX}-kde4-${_KDE_VERSION}
DISTNAME=	pykde4-${_KDE_VERSION}
PKGREVISION=	9
CATEGORIES=	misc
COMMENT=	Python bindings for the KDE integrated X11 desktop

.include "../../meta-pkgs/kde4/Makefile.kde4"

# BUILD_MAKE_FLAGS+= VERBOSE=1

CMAKE_ARGS+=	-DPYTHON_EXECUTABLE:FILEPATH=${PYTHONBIN}

PY_PATCHPLIST=			yes
PLIST_SUBST+=			PYVERSSUFFIX=${PYVERSSUFFIX:Q}

REPLACE_PYTHON+= \
	tools/pykdeuic4/*.py \
	examples/*.py \
	examples/*/*.py \
	docs/html/tutorials/started/*.py

# We need to replace the embedded interpreter
SUBST_CLASSES+=	pykdeuic4
SUBST_STAGE.pykdeuic4=	post-build
SUBST_FILES.pykdeuic4=	tools/pykdeuic4/pykdeuic4.py
SUBST_SED.pykdeuic4=	-e 's:/usr/bin/env python$$:${PYTHONBIN}:'

#post-extract:
#	${CP} ${FILESDIR}/FindPolkitQt.cmake ${WRKSRC}/cmake/modules

# remove when file not patched any longer
post-install:
	${RM} -f ${DESTDIR}${PREFIX}/share/sip${PYVERSSUFFIX}/PyKDE4/kdecore/typedefs.sip.orig

.include "../../meta-pkgs/kde4/kde4.mk"

.include "../../lang/python/application.mk"
.include "../../lang/python/extension.mk"
.include "../../misc/kdepimlibs4/buildlink3.mk"
.include "../../security/polkit-qt/buildlink3.mk"
.include "../../x11/kdelibs4/buildlink3.mk"
BUILDLINK_API_DEPENDS.py-sip+=	${PYPKGPREFIX}-sip>=4.10
.include "../../x11/py-sip/buildlink3.mk"
.include "../../x11/py-qt4/buildlink3.mk"
BUILDLINK_DEPMETHOD.qt4-tools=		full
.include "../../x11/qt4-tools/buildlink3.mk"

.include "../../mk/bsd.pkg.mk"