| @@ -1,44 +1,44 @@ | | | @@ -1,44 +1,44 @@ |
1 | # $NetBSD: Makefile,v 1.9 2016/03/05 11:29:47 jperkin Exp $ | | 1 | # $NetBSD: Makefile,v 1.9.2.1 2016/05/07 19:02:17 bsiegert Exp $ |
2 | | | 2 | |
3 | DISTNAME= PyQt-gpl-${PYQT_VERSION} | | 3 | DISTNAME= PyQt-gpl-${PYQT_VERSION} |
4 | PKGNAME= ${PYPKGPREFIX}-qt5-${PYQT_VERSION} | | 4 | PKGNAME= ${PYPKGPREFIX}-qt5-${PYQT_VERSION} |
5 | PKGREVISION= 2 | | 5 | PKGREVISION= 4 |
6 | PYQT_VERSION= 5.5.1 | | 6 | PYQT_VERSION= 5.5.1 |
7 | CATEGORIES= x11 python | | 7 | CATEGORIES= x11 python |
8 | MASTER_SITES= ${MASTER_SITE_SOURCEFORGE:=pyqt/} | | 8 | MASTER_SITES= ${MASTER_SITE_SOURCEFORGE:=pyqt/} |
9 | | | 9 | |
10 | MAINTAINER= pkgsrc-users@NetBSD.org | | 10 | MAINTAINER= pkgsrc-users@NetBSD.org |
11 | COMMENT= Python binding for Qt5 | | 11 | COMMENT= Python binding for Qt5 |
12 | HOMEPAGE= http://www.riverbankcomputing.com/software/pyqt/intro | | 12 | HOMEPAGE= http://www.riverbankcomputing.com/software/pyqt/intro |
13 | | | 13 | |
14 | USE_LIBTOOL= yes | | 14 | USE_LIBTOOL= yes |
15 | USE_TOOLS+= gmake pkg-config | | 15 | USE_TOOLS+= gmake pkg-config |
16 | USE_LANGUAGES= c c++ | | 16 | USE_LANGUAGES= c c++ |
17 | | | 17 | |
18 | CONFIGURE_ARGS+= -b ${PREFIX}/bin | | 18 | CONFIGURE_ARGS+= -b ${PREFIX}/bin |
19 | CONFIGURE_ARGS+= -d ${PREFIX}/${PYSITELIB} | | 19 | CONFIGURE_ARGS+= -d ${PREFIX}/${PYSITELIB} |
20 | CONFIGURE_ARGS+= -q ${QTDIR}/bin/qmake | | 20 | CONFIGURE_ARGS+= -q ${QTDIR}/bin/qmake |
21 | CONFIGURE_ARGS+= --confirm-license | | 21 | CONFIGURE_ARGS+= --confirm-license |
22 | CONFIGURE_ARGS+= --qsci-api | | 22 | CONFIGURE_ARGS+= --qsci-api |
23 | CONFIGURE_ARGS+= --sip ${BUILDLINK_PREFIX.py-sip}/bin/sip${PYVERSSUFFIX} | | 23 | CONFIGURE_ARGS+= --sip ${BUILDLINK_PREFIX.py-sip}/bin/sip${PYVERSSUFFIX} |
24 | CONFIGURE_ARGS+= --verbose | | 24 | CONFIGURE_ARGS+= --verbose |
25 | | | 25 | |
26 | INSTALL_ENV+= INSTALL_ROOT=${DESTDIR} | | 26 | INSTALL_ENV+= INSTALL_ROOT=${DESTDIR} |
27 | | | 27 | |
28 | PY_PATCHPLIST= yes | | 28 | PY_PATCHPLIST= yes |
29 | PLIST_SUBST+= PYVERSSUFFIX=${PYVERSSUFFIX:Q} | | 29 | PLIST_SUBST+= PYVERSSUFFIX=${PYVERSSUFFIX:Q} |
30 | | | 30 | |
31 | SUBST_CLASSES+= install | | 31 | SUBST_CLASSES+= install x11lib |
32 | SUBST_STAGE.install= post-configure | | 32 | SUBST_STAGE.install= post-configure |
33 | SUBST_SED.install+= -e 's,INSTALL_FILE = ,INSTALL_FILE = libtool --mode=install ,' | | 33 | SUBST_SED.install+= -e 's,INSTALL_FILE = ,INSTALL_FILE = libtool --mode=install ,' |
34 | SUBST_SED.install+= -e 's,\(TARGET[A-Z ]*\)= lib,\1= ,' | | 34 | SUBST_SED.install+= -e 's,\(TARGET[A-Z ]*\)= lib,\1= ,' |
35 | SUBST_MESSAGE.install= Fixing installation target and file name. | | 35 | SUBST_MESSAGE.install= Fixing installation target and file name. |
36 | SUBST_FILES.install+= Qt/Makefile | | 36 | SUBST_FILES.install+= Qt/Makefile |
37 | SUBST_FILES.install+= QtCore/Makefile | | 37 | SUBST_FILES.install+= QtCore/Makefile |
38 | SUBST_FILES.install+= QtDBus/Makefile | | 38 | SUBST_FILES.install+= QtDBus/Makefile |
39 | SUBST_FILES.install+= QtDesigner/Makefile | | 39 | SUBST_FILES.install+= QtDesigner/Makefile |
40 | SUBST_FILES.install+= QtGui/Makefile | | 40 | SUBST_FILES.install+= QtGui/Makefile |
41 | SUBST_FILES.install+= QtHelp/Makefile | | 41 | SUBST_FILES.install+= QtHelp/Makefile |
42 | SUBST_FILES.install+= QtMultimedia/Makefile | | 42 | SUBST_FILES.install+= QtMultimedia/Makefile |
43 | SUBST_FILES.install+= QtMultimediaWidgets/Makefile | | 43 | SUBST_FILES.install+= QtMultimediaWidgets/Makefile |
44 | SUBST_FILES.install+= QtNetwork/Makefile | | 44 | SUBST_FILES.install+= QtNetwork/Makefile |
| @@ -47,26 +47,34 @@ SUBST_FILES.install+= QtPositioning/Make | | | @@ -47,26 +47,34 @@ SUBST_FILES.install+= QtPositioning/Make |
47 | SUBST_FILES.install+= QtPrintSupport/Makefile | | 47 | SUBST_FILES.install+= QtPrintSupport/Makefile |
48 | SUBST_FILES.install+= QtQml/Makefile | | 48 | SUBST_FILES.install+= QtQml/Makefile |
49 | SUBST_FILES.install+= QtQuick/Makefile | | 49 | SUBST_FILES.install+= QtQuick/Makefile |
50 | SUBST_FILES.install+= QtSensors/Makefile | | 50 | SUBST_FILES.install+= QtSensors/Makefile |
51 | SUBST_FILES.install+= QtSql/Makefile | | 51 | SUBST_FILES.install+= QtSql/Makefile |
52 | SUBST_FILES.install+= QtSvg/Makefile | | 52 | SUBST_FILES.install+= QtSvg/Makefile |
53 | SUBST_FILES.install+= QtTest/Makefile | | 53 | SUBST_FILES.install+= QtTest/Makefile |
54 | SUBST_FILES.install+= QtWebKit/Makefile | | 54 | SUBST_FILES.install+= QtWebKit/Makefile |
55 | SUBST_FILES.install+= QtWebKitWidgets/Makefile | | 55 | SUBST_FILES.install+= QtWebKitWidgets/Makefile |
56 | SUBST_FILES.install+= QtWidgets/Makefile | | 56 | SUBST_FILES.install+= QtWidgets/Makefile |
57 | SUBST_FILES.install+= QtXmlPatterns/Makefile | | 57 | SUBST_FILES.install+= QtXmlPatterns/Makefile |
58 | SUBST_FILES.install+= _QOpenGLFunctions_2_0/Makefile | | 58 | SUBST_FILES.install+= _QOpenGLFunctions_2_0/Makefile |
59 | | | 59 | |
| | | 60 | SUBST_STAGE.x11lib= post-patch |
| | | 61 | SUBST_SED.x11lib+= -e 's,@X11LIB@,${X11BASE}/lib,' |
| | | 62 | SUBST_SED.x11lib+= -e 's,@PREFIX@,${PREFIX},' |
| | | 63 | SUBST_MESSAGE.x11lib= Fixing rpath for X11 and pulseaudio libraries. |
| | | 64 | SUBST_FILES.x11lib+= configure.py |
| | | 65 | SUBST_FILES.x11lib+= designer/designer.pro-in |
| | | 66 | SUBST_FILES.x11lib+= qmlscene/qmlscene.pro-in |
| | | 67 | |
60 | do-configure: | | 68 | do-configure: |
61 | cd ${WRKSRC} && ${SETENV} ${MAKE_ENV} \ | | 69 | cd ${WRKSRC} && ${SETENV} ${MAKE_ENV} \ |
62 | ${PYTHONBIN} configure.py ${CONFIGURE_ARGS} | | 70 | ${PYTHONBIN} configure.py ${CONFIGURE_ARGS} |
63 | | | 71 | |
64 | .include "../../lang/python/extension.mk" | | 72 | .include "../../lang/python/extension.mk" |
65 | .include "../../sysutils/dbus-python-common/buildlink3.mk" | | 73 | .include "../../sysutils/dbus-python-common/buildlink3.mk" |
66 | BUILDLINK_API_DEPENDS.py-sip+= ${PYPKGPREFIX}-sip>=4.16.4 | | 74 | BUILDLINK_API_DEPENDS.py-sip+= ${PYPKGPREFIX}-sip>=4.16.4 |
67 | .include "../../x11/py-sip/buildlink3.mk" | | 75 | .include "../../x11/py-sip/buildlink3.mk" |
68 | .include "../../x11/qt5-qtbase/buildlink3.mk" | | 76 | .include "../../x11/qt5-qtbase/buildlink3.mk" |
69 | .include "../../x11/qt5-qtdeclarative/buildlink3.mk" | | 77 | .include "../../x11/qt5-qtdeclarative/buildlink3.mk" |
70 | .include "../../x11/qt5-qtlocation/buildlink3.mk" | | 78 | .include "../../x11/qt5-qtlocation/buildlink3.mk" |
71 | .include "../../x11/qt5-qtmultimedia/buildlink3.mk" | | 79 | .include "../../x11/qt5-qtmultimedia/buildlink3.mk" |
72 | .include "../../x11/qt5-qtsensors/buildlink3.mk" | | 80 | .include "../../x11/qt5-qtsensors/buildlink3.mk" |