blob: 6a767fee617b04805cb4667040d873303372db64 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
|
# $NetBSD: Makefile,v 1.40 2014/12/30 14:40:30 wiz Exp $
.include "../../x11/qt4-qscintilla/Makefile.common"
PKGNAME= ${PYPKGPREFIX}-qt4-${DISTNAME:tl:S/-gpl-/-/}
COMMENT= QScintilla -- Python bindings
WRKSRC= ${WRKDIR}/${DISTNAME}/Python
PY_PATCHPLIST= yes
PLIST_SUBST+= PYVERSSUFFIX=${PYVERSSUFFIX}
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"
|