pkgsrc/x11/py-qt4-qscintilla/Makefile

34 lines
1.1 KiB
Makefile

# $NetBSD: Makefile,v 1.45 2018/03/12 11:15:55 wiz Exp $
PKGREVISION= 2
.include "../../x11/qt4-qscintilla/Makefile.common"
PKGNAME= ${PYPKGPREFIX}-qt4-${DISTNAME:tl:S/-gpl-/-/}
COMMENT= QScintilla -- Python bindings
WRKSRC= ${WRKDIR}/${DISTNAME}/Python
PY_PATCHPLIST= yes
MAKE_FLAGS+= TARGET=Qsci.la TARGETD=Qsci.la TARGETL=Qsci.la
INSTALL_MAKE_FLAGS+= INSTALL_ROOT=${DESTDIR}
LIBS+= -lqscintilla2
MAKE_FLAGS+= LDFLAGS=${LDFLAGS:Q}\ ${LIBS:Q}
do-configure:
cd ${WRKSRC} && ${SETENV} ${MAKE_ENV} ${PYTHONBIN} configure.py \
--qmake=${QTDIR}/bin/qmake --sip=${PREFIX}/bin/sip${PYVERSSUFFIX} \
--pyqt-sipdir=${PREFIX}/share/sip${PYVERSSUFFIX} \
--qsci-sipdir=${PREFIX}/share/sip${PYVERSSUFFIX} \
--qsci-libdir=${QTDIR}/lib
post-install:
${LIBTOOL} --mode=install ${INSTALL_LIB} ${WRKSRC}/Qsci.la \
${DESTDIR}${PREFIX}/${PYSITELIB}/PyQt4/
.include "../../lang/python/extension.mk"
.include "../../x11/py-sip/buildlink3.mk"
.include "../../x11/py-qt4/buildlink3.mk"
BUILDLINK_API_DEPENDS.qt4-qscintilla+= qt4-qscintilla>=${PKGVERSION_NOREV}
.include "../../x11/qt4-qscintilla/buildlink3.mk"
.include "../../mk/bsd.pkg.mk"