blob: 504b447dedbc90ba919e20aad029c61b8db62279 (
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
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
|
# $NetBSD: Makefile,v 1.5 2015/04/25 14:25:15 tnn Exp $
DISTNAME= PyQt-gpl-${PYQT_VERSION}
PKGNAME= ${PYPKGPREFIX}-qt5-${PYQT_VERSION}
PKGREVISION= 4
PYQT_VERSION= 5.4
CATEGORIES= x11 python
MASTER_SITES= ${MASTER_SITE_SOURCEFORGE:=pyqt/}
MAINTAINER= pkgsrc-users@NetBSD.org
COMMENT= Python binding for Qt5
HOMEPAGE= http://www.riverbankcomputing.com/software/pyqt/intro
USE_LIBTOOL= yes
USE_TOOLS+= gmake pkg-config
USE_LANGUAGES= c c++
CONFIGURE_ARGS+= -b ${PREFIX}/bin
CONFIGURE_ARGS+= -d ${PREFIX}/${PYSITELIB}
CONFIGURE_ARGS+= -q ${QTDIR}/bin/qmake
CONFIGURE_ARGS+= --confirm-license
CONFIGURE_ARGS+= --qsci-api
CONFIGURE_ARGS+= --sip ${BUILDLINK_PREFIX.py-sip}/bin/sip${PYVERSSUFFIX}
CONFIGURE_ARGS+= --verbose
INSTALL_ENV+= INSTALL_ROOT=${DESTDIR}
PY_PATCHPLIST= yes
PLIST_SUBST+= PYVERSSUFFIX=${PYVERSSUFFIX:Q}
SUBST_CLASSES+= install
SUBST_STAGE.install= post-configure
SUBST_SED.install+= -e 's,INSTALL_FILE = ,INSTALL_FILE = libtool --mode=install ,'
SUBST_SED.install+= -e 's,\(TARGET[A-Z ]*\)= lib,\1= ,'
SUBST_MESSAGE.install= Fixing installation target and file name.
SUBST_FILES.install+= Qt/Makefile
SUBST_FILES.install+= QtCore/Makefile
SUBST_FILES.install+= QtDBus/Makefile
SUBST_FILES.install+= QtDesigner/Makefile
SUBST_FILES.install+= QtGui/Makefile
SUBST_FILES.install+= QtHelp/Makefile
SUBST_FILES.install+= QtMultimedia/Makefile
SUBST_FILES.install+= QtMultimediaWidgets/Makefile
SUBST_FILES.install+= QtNetwork/Makefile
SUBST_FILES.install+= QtOpenGL/Makefile
SUBST_FILES.install+= QtPositioning/Makefile
SUBST_FILES.install+= QtPrintSupport/Makefile
SUBST_FILES.install+= QtQml/Makefile
SUBST_FILES.install+= QtQuick/Makefile
SUBST_FILES.install+= QtSensors/Makefile
SUBST_FILES.install+= QtSql/Makefile
SUBST_FILES.install+= QtSvg/Makefile
SUBST_FILES.install+= QtTest/Makefile
SUBST_FILES.install+= QtWebKit/Makefile
SUBST_FILES.install+= QtWebKitWidgets/Makefile
SUBST_FILES.install+= QtWidgets/Makefile
SUBST_FILES.install+= QtXmlPatterns/Makefile
SUBST_FILES.install+= _QOpenGLFunctions_2_0/Makefile
do-configure:
cd ${WRKSRC} && ${SETENV} ${MAKE_ENV} \
${PYTHONBIN} configure.py ${CONFIGURE_ARGS}
.include "../../lang/python/extension.mk"
.include "../../sysutils/dbus-python-common/buildlink3.mk"
BUILDLINK_API_DEPENDS.py-sip+= ${PYPKGPREFIX}-sip>=4.16.4
.include "../../x11/py-sip/buildlink3.mk"
.include "../../x11/qt5-dbus/buildlink3.mk"
.include "../../x11/qt5-qtbase/buildlink3.mk"
.include "../../x11/qt5-qtdeclarative/buildlink3.mk"
.include "../../x11/qt5-qtlocation/buildlink3.mk"
.include "../../x11/qt5-qtmultimedia/buildlink3.mk"
.include "../../x11/qt5-qtsensors/buildlink3.mk"
.include "../../x11/qt5-qtsvg/buildlink3.mk"
.include "../../x11/qt5-qttools/buildlink3.mk"
.include "../../x11/qt5-qtwebkit/buildlink3.mk"
.include "../../x11/qt5-qtxmlpatterns/buildlink3.mk"
.include "../../mk/bsd.pkg.mk"
|