blob: 030b51b216a054ac80834ddc77e27ab723c0eac2 (
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
|
# $NetBSD: Makefile,v 1.2 2003/08/19 04:35:03 jmc Exp $
#
DISTNAME= PyQt-x11-gpl-3.7
PKGNAME= ${PYPKGPREFIX}-qt3-base-3.7
PKGREVISION= 1
CATEGORIES= x11
MASTER_SITES= http://www.river-bank.demon.co.uk/download/PyQt/
MAINTAINER= tech-pkg@netbsd.org
HOMEPAGE= http://www.riverbankcomputing.co.uk/pyqt/
COMMENT= Python binding for qt3
USE_BUILDLINK2= yes
USE_X11= yes
USE_LIBTOOL= yes
USE_GMAKE= yes
BUILDLINK_DEPENDS.qt3-tools= qt3-tools>=3.1.2nb2
CONFIGURE_ARGS= -q ${QTDIR} -m ${GMAKE} -p ${SIPBIN} -b ""
PYTHON_VERSIONS_ACCEPTED= 22pth 21pth
PY_PATCHPLIST= yes
QTLIBDIR= ${QTDIR:S/${BUILDLINK_PREFIX.qt3-libs}\///}/lib
PLIST_SUBST+= PYVERSSUFFIX=${PYVERSSUFFIX} QTLIBDIR=${QTLIBDIR}
MAKE_ENV+= QTPREFIX=${QTDIR}
do-configure:
(cd ${WRKSRC} && ${SETENV} ${MAKE_ENV} \
${PYTHONBIN} build.py ${CONFIGURE_ARGS})
# XXX - hack. Shouldn't need the symlinks as qmake should let us build
# proper libraries that install outside of QTDIR more easily.
do-install:
(cd ${WRKSRC}/qt && ${INSTALL_DATA} qt.py ${PREFIX}/${PYSITELIB})
(cd ${WRKSRC}/qt && ${LIBTOOL} --mode=install ${INSTALL_DATA} \
libqtcmodule.la ${PREFIX}/${PYSITELIB})
(cd ${PREFIX}/${PYSITELIB}; for i in libqtcmodule.*; do \
${LN} -sf ${PREFIX}/${PYSITELIB}/$$i \
${PREFIX}/${QTLIBDIR}/$$i; done)
(cd ${WRKSRC}/pylupdate3 && ${INSTALL_PROGRAM} pylupdate \
${PREFIX}/bin/pylupdate${PYVERSSUFFIX})
(cd ${WRKSRC}/pyuic3 && ${INSTALL_PROGRAM} pyuic \
${PREFIX}/bin/pyuic${PYVERSSUFFIX})
.include "../../lang/python/extension.mk"
.include "../../x11/py-qt3-sip/buildlink2.mk"
.include "../../x11/qt3-libs/buildlink2.mk"
.include "../../x11/qt3-tools/buildlink2.mk"
.include "../../mk/bsd.pkg.mk"
|