summaryrefslogtreecommitdiff
path: root/x11/py-qt3-modules/Makefile
blob: 82ff729415cadf756ca83962b4466203713a0c37 (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
# $NetBSD: Makefile,v 1.3 2003/08/23 15:02:27 drochner Exp $
#

DISTNAME=		PyQt-x11-gpl-3.8
PKGNAME=		${PYPKGPREFIX}-qt3-modules-3.8
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

CONFIGURE_ARGS=		-q ${QTDIR} -m ${GMAKE} -p ${SIPBIN}

PYTHON_VERSIONS_ACCEPTED=	22pth 21pth
PY_PATCHPLIST=	yes
QTLIBDIR=	${QTDIR:S/${BUILDLINK_PREFIX.qt3-libs}\///}/lib
PLIST_SUBST+=	QTLIBDIR=${QTLIBDIR}

MAKE_ENV+=	QTPREFIX=${QTDIR}

do-configure:
	(cd ${WRKSRC} && ${SETENV} ${MAKE_ENV} \
		${PYTHONBIN} build.py ${CONFIGURE_ARGS})

PYQTMODULES=	qtcanvas qtgl qtnetwork qtsql qttable qtui qtxml

# XXX - hack. Shouldn't need the symlinks as qmake should let us build
# proper libraries that install outside of QTDIR more easily.
do-install:
	(for f in ${PYQTMODULES}; do \
		(cd ${WRKSRC}/$${f} && ( \
			${INSTALL_DATA} $${f}.py ${PREFIX}/${PYSITELIB}; \
			${LIBTOOL} --mode=install ${INSTALL_DATA} \
				lib$${f}cmodule.la ${PREFIX}/${PYSITELIB} \
			) \
		); \
	 done)
	(for f in ${PYQTMODULES}; do \
		(cd ${PREFIX}/${PYSITELIB}; for i in lib$${f}cmodule.*; do \
			${LN} -sf ${PREFIX}/${PYSITELIB}/$$i \
				${PREFIX}/${QTLIBDIR}/$$i; done \
		); \
	done)

.include "../../lang/python/extension.mk"
.include "../../x11/py-qt3-base/buildlink2.mk"
.include "../../mk/bsd.pkg.mk"