summaryrefslogtreecommitdiff
path: root/misc/py-qt4-demo/Makefile
blob: 8e55ff432c69264555dee912569530730d10e2ca (plain) (blame)
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
# New ports collection makefile for:	py-qt4-demo
# Date created:				2007-02-20
# Whom:					Danny Pansters <danny@ricin.com>
#
# $FreeBSD$

PORTNAME=	demo
PORTVERSION=	4.3.1
PORTREVISION=	# zero
CATEGORIES=	misc devel python
MASTER_SITES=	http://www.riverbankcomputing.com/Downloads/PyQt4/GPL/ \
		http://freebsd.ricin.com/ports/distfiles/
PKGNAMEPREFIX=	${PYTHON_PKGNAMEPREFIX}qt4-
DISTNAME=	PyQt-x11-gpl-${PORTVERSION}

MAINTAINER=	danny@ricin.com
COMMENT=	Python bindings for the Qt4 toolkit, demo and other examples

USE_PYTHON=	yes

OPTIONS=	PYQT4	"Install any missing PyQt4 components" on

OPTIONSFILE=	${PORT_DBDIR}/py-qt4-${PORTNAME}/options
EXAMPLESDIR=	${PREFIX}/share/examples/py-qt4

.include <bsd.port.pre.mk>

.if !defined(WITHOUT_PYQT4)
RUN_DEPENDS=	${PYTHON_SITELIBDIR}/PyQt4/QtCore.so:${PORTSDIR}/devel/py-qt4-core \
		${PYTHON_SITELIBDIR}/PyQt4/QtGui.so:${PORTSDIR}/x11-toolkits/py-qt4-gui \
		${PYTHON_SITELIBDIR}/PyQt4/QtNetwork.so:${PORTSDIR}/net/py-qt4-network \
		${PYTHON_SITELIBDIR}/PyQt4/QtXml.so:${PORTSDIR}/textproc/py-qt4-xml \
		${PYTHON_SITELIBDIR}/PyQt4/QtAssistant.so:${PORTSDIR}/devel/py-qt4-assistant \
		${PYTHON_SITELIBDIR}/PyQt4/QtOpenGL.so:${PORTSDIR}/x11/py-qt4-opengl \
		${PYTHON_SITELIBDIR}/PyQt4/QtScript.so:${PORTSDIR}/devel/py-qt4-script \
		${PYTHON_SITELIBDIR}/PyQt4/QtSql.so:${PORTSDIR}/databases/py-qt4-sql \
		${PYTHON_SITELIBDIR}/PyQt4/QtSvg.so:${PORTSDIR}/graphics/py-qt4-svg \
		${PYTHON_SITELIBDIR}/PyQt4/QtTest.so:${PORTSDIR}/devel/py-qt4-test \
		${PYTHON_SITELIBDIR}/PyQt4/QtDesigner.so:${PORTSDIR}/devel/py-qt4-designer \
		${LOCALBASE}/lib/qt4/plugins/designer/libpythonplugin.so:${PORTSDIR}/devel/py-qt4-designerplugin \
		${PYTHON_SITELIBDIR}/dbus/mainloop/qt.so:${PORTSDIR}/devel/py-qt4-dbus
.if !defined(NOPORTDOCS)
RUN_DEPENDS+=	${LOCALBASE}/share/doc/py-qt4/pyqt4ref.html:${PORTSDIR}/misc/py-qt4-doc
.endif
.endif

do-build:
.if !defined(NOPORTEXAMPLES)
	cd ${WRKSRC}/examples &&\
		${PYTHON_CMD} ${PYTHON_LIBDIR}/py_compile.py\
		`ls */*.py */*/*.py */*/*/*.py`
.endif

do-install:
.if !defined(NOPORTEXAMPLES)
	cd ${WRKSRC} &&\
		${RM} -f examples/designer/plugins/plugins.py.orig &&\
		${MKDIR} ${EXAMPLESDIR} &&\
		${CP} -R examples/ ${EXAMPLESDIR}
.else
	@${ECHO} "NOPORTEXAMPLES is set -- installing nothing."
.endif

.include <bsd.port.post.mk>