blob: 7a79955492a0edbd2ba9d571fca875fce9929236 (
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
|
# $NetBSD: Makefile,v 1.12 2009/07/29 19:47:24 drochner Exp $
#
PKGNAME= ${PYPKGPREFIX}-qt4-${PYQT_VERSION}
PYQT_VERSION= 4.5.4
CATEGORIES= x11 python
MASTER_SITES= http://www.riverbankcomputing.com/static/Downloads/PyQt4/
MAINTAINER= pkgsrc-users@NetBSD.org
COMMENT= Python binding for Qt4
HOMEPAGE= http://www.riverbankcomputing.com/software/pyqt/intro
USE_LIBTOOL= yes
USE_TOOLS+= gmake pkg-config
USE_LANGUAGES= c c++
PKG_DESTDIR_SUPPORT= user-destdir
CONFIGURE_ARGS+= -b ${PREFIX}/bin
CONFIGURE_ARGS+= -d ${PREFIX}/${PYSITELIB}
CONFIGURE_ARGS+= -v ${PREFIX}/share/sip${PYVERSSUFFIX}
CONFIGURE_ARGS+= -q ${QTDIR}/bin/qmake
CONFIGURE_ARGS+= --confirm-license
INSTALL_ENV+= INSTALL_ROOT=${DESTDIR:Q}
PYTHON_VERSIONS_ACCEPTED= 26 25 24
PY_PATCHPLIST= yes
PLIST_SUBST+= PYVERSSUFFIX=${PYVERSSUFFIX:Q}
# This is a hack. CPPFLAGS and CXXFLAGS from the environment are ignored,
# however, so I don't know a better way to fix it.
SUBST_CLASSES+= PIC
SUBST_STAGE.PIC= post-configure
SUBST_FILES.PIC= qpy/QtCore/Makefile qpy/QtGui/Makefile
SUBST_SED.PIC= -e "s/CXXFLAGS =/CXXFLAGS = -fPIC/"
SUBST_MESSAGE.PIC= Adding -fPIC to CXXFLAGS.
#SUBST_CLASSES+= pyversfx
#SUBST_STAGE.pyversfx= pre-configure
#SUBST_FILES.pyversfx= pyuic4/pyuic.sbf pylupdate4/pylupdate.sbf
#SUBST_SED.pyversfx= -e "s|@PYVERSSUFFIX@|${PYVERSSUFFIX}|g"
.include "../../mk/bsd.prefs.mk"
PLIST_SRC= ${PKGDIR}/PLIST.common
.if ${OPSYS} == "Darwin"
DISTNAME= PyQt-mac-gpl-${PYQT_VERSION}
PLIST_SRC+= ${PKGDIR}/PLIST.Darwin
.else
DISTNAME= PyQt-x11-gpl-${PYQT_VERSION}
PLIST_SRC+= ${PKGDIR}/PLIST.X11
.endif
.include "../../lang/python/extension.mk"
.if ${PYPKGPREFIX} == "py24"
PLIST_SRC+= ${PKGDIR}/PLIST.elementtree
.endif
CONFIGURE_ARGS+= --verbose
do-configure:
(cd ${WRKSRC} && ${SETENV} ${MAKE_ENV} \
${PYTHONBIN} configure.py ${CONFIGURE_ARGS})
BUILDLINK_API_DEPENDS.py-sip+= ${PYPKGPREFIX}-sip>=4.8.1
.include "../../x11/py-sip/buildlink3.mk"
.include "../../sysutils/dbus/buildlink3.mk"
.include "../../sysutils/py-dbus/buildlink3.mk"
.include "../../textproc/py-elementtree/buildlink3.mk"
.include "../../x11/qt4-libs/buildlink3.mk"
BUILDLINK_API_DEPENDS.qt4-tools+= qt4-tools>=4.4.0nb1
.include "../../x11/qt4-tools/buildlink3.mk"
# ${PYSITELIB}/qt.so depends on libqassistantclient.so
# which is part of qt4-tools, so we need a runtime dependency
# XXX split this pkg?
BUILDLINK_DEPMETHOD.qt4-tools= full
.include "../../mk/bsd.pkg.mk"
|