| @@ -1,14 +1,14 @@ | | | @@ -1,14 +1,14 @@ |
1 | # $NetBSD: Makefile,v 1.9 2009/06/17 07:57:49 hasso Exp $ | | 1 | # $NetBSD: Makefile,v 1.10 2009/06/30 15:33:06 wiz Exp $ |
2 | # | | 2 | # |
3 | | | 3 | |
4 | PKGNAME= ${PYPKGPREFIX}-qt4-${PYQT_VERSION} | | 4 | PKGNAME= ${PYPKGPREFIX}-qt4-${PYQT_VERSION} |
5 | PYQT_VERSION= 4.5.1 | | 5 | PYQT_VERSION= 4.5.1 |
6 | CATEGORIES= x11 python | | 6 | CATEGORIES= x11 python |
7 | MASTER_SITES= http://www.riverbankcomputing.com/static/Downloads/PyQt4/ | | 7 | MASTER_SITES= http://www.riverbankcomputing.com/static/Downloads/PyQt4/ |
8 | | | 8 | |
9 | MAINTAINER= pkgsrc-users@NetBSD.org | | 9 | MAINTAINER= pkgsrc-users@NetBSD.org |
10 | COMMENT= Python binding for Qt4 | | 10 | COMMENT= Python binding for Qt4 |
11 | HOMEPAGE= http://www.riverbankcomputing.com/software/pyqt/intro | | 11 | HOMEPAGE= http://www.riverbankcomputing.com/software/pyqt/intro |
12 | | | 12 | |
13 | USE_LIBTOOL= yes | | 13 | USE_LIBTOOL= yes |
14 | USE_TOOLS+= gmake pkg-config | | 14 | USE_TOOLS+= gmake pkg-config |
| @@ -18,26 +18,34 @@ PKG_DESTDIR_SUPPORT= user-destdir | | | @@ -18,26 +18,34 @@ PKG_DESTDIR_SUPPORT= user-destdir |
18 | | | 18 | |
19 | CONFIGURE_ARGS+= -b ${PREFIX}/bin | | 19 | CONFIGURE_ARGS+= -b ${PREFIX}/bin |
20 | CONFIGURE_ARGS+= -d ${PREFIX}/${PYSITELIB} | | 20 | CONFIGURE_ARGS+= -d ${PREFIX}/${PYSITELIB} |
21 | CONFIGURE_ARGS+= -v ${PREFIX}/share/sip${PYVERSSUFFIX} | | 21 | CONFIGURE_ARGS+= -v ${PREFIX}/share/sip${PYVERSSUFFIX} |
22 | CONFIGURE_ARGS+= -q ${QTDIR}/bin/qmake | | 22 | CONFIGURE_ARGS+= -q ${QTDIR}/bin/qmake |
23 | CONFIGURE_ARGS+= --confirm-license | | 23 | CONFIGURE_ARGS+= --confirm-license |
24 | | | 24 | |
25 | INSTALL_ENV+= INSTALL_ROOT=${DESTDIR:Q} | | 25 | INSTALL_ENV+= INSTALL_ROOT=${DESTDIR:Q} |
26 | | | 26 | |
27 | PYTHON_VERSIONS_ACCEPTED= 26 25 24 | | 27 | PYTHON_VERSIONS_ACCEPTED= 26 25 24 |
28 | PY_PATCHPLIST= yes | | 28 | PY_PATCHPLIST= yes |
29 | PLIST_SUBST+= PYVERSSUFFIX=${PYVERSSUFFIX:Q} | | 29 | PLIST_SUBST+= PYVERSSUFFIX=${PYVERSSUFFIX:Q} |
30 | | | 30 | |
| | | 31 | # This is a hack. CPPFLAGS and CXXFLAGS from the environment are ignored, |
| | | 32 | # however, so I don't know a better way to fix it. |
| | | 33 | SUBST_CLASSES+= PIC |
| | | 34 | SUBST_STAGE.PIC= post-configure |
| | | 35 | SUBST_FILES.PIC= qpy/QtCore/Makefile qpy/QtGui/Makefile |
| | | 36 | SUBST_SED.PIC= -e "s/CXXFLAGS =/CXXFLAGS = -fPIC/" |
| | | 37 | SUBST_MESSAGE.PIC= Adding -fPIC to CXXFLAGS. |
| | | 38 | |
31 | #SUBST_CLASSES+= pyversfx | | 39 | #SUBST_CLASSES+= pyversfx |
32 | #SUBST_STAGE.pyversfx= pre-configure | | 40 | #SUBST_STAGE.pyversfx= pre-configure |
33 | #SUBST_FILES.pyversfx= pyuic4/pyuic.sbf pylupdate4/pylupdate.sbf | | 41 | #SUBST_FILES.pyversfx= pyuic4/pyuic.sbf pylupdate4/pylupdate.sbf |
34 | #SUBST_SED.pyversfx= -e "s|@PYVERSSUFFIX@|${PYVERSSUFFIX}|g" | | 42 | #SUBST_SED.pyversfx= -e "s|@PYVERSSUFFIX@|${PYVERSSUFFIX}|g" |
35 | | | 43 | |
36 | .include "../../mk/bsd.prefs.mk" | | 44 | .include "../../mk/bsd.prefs.mk" |
37 | | | 45 | |
38 | PLIST_SRC= ${PKGDIR}/PLIST.common | | 46 | PLIST_SRC= ${PKGDIR}/PLIST.common |
39 | .if ${OPSYS} == "Darwin" | | 47 | .if ${OPSYS} == "Darwin" |
40 | DISTNAME= PyQt-mac-gpl-${PYQT_VERSION} | | 48 | DISTNAME= PyQt-mac-gpl-${PYQT_VERSION} |
41 | PLIST_SRC+= ${PKGDIR}/PLIST.Darwin | | 49 | PLIST_SRC+= ${PKGDIR}/PLIST.Darwin |
42 | .else | | 50 | .else |
43 | DISTNAME= PyQt-x11-gpl-${PYQT_VERSION} | | 51 | DISTNAME= PyQt-x11-gpl-${PYQT_VERSION} |