38661f2e32
PORTVERSION. After that the PORTVERSION became 4.foo. Because this is numerically lower than before, the PORTEPOCH should have been bumped. Poked by: kris@ PR: 125814 Submitted by: Danny Pansters <danny@ricin.com> (maintainer)
66 lines
2.2 KiB
Makefile
66 lines
2.2 KiB
Makefile
# New ports collection makefile for: py-qt4-demo
|
|
# Date created: 2007-02-20
|
|
# Whom: Danny Pansters <danny@ricin.com>
|
|
#
|
|
# $FreeBSD$
|
|
|
|
PORTNAME= demo
|
|
PORTVERSION= ${PYQT4_VERSION}
|
|
PORTREVISION= 2
|
|
PORTEPOCH= 1
|
|
|
|
CATEGORIES= misc devel python
|
|
MASTER_SITES= ${MASTER_SITES_PYQT4}
|
|
PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX}qt4-
|
|
DISTNAME= ${PYQT4_DISTNAME}
|
|
|
|
MAINTAINER= ${PYQT_MAINTAINER}
|
|
COMMENT= Python bindings for the Qt4 toolkit, Qt demo and 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 "../../devel/py-sip/files/bsd.pyqt.mk"
|
|
.include <bsd.port.pre.mk>
|
|
|
|
.if !defined(WITHOUT_PYQT4)
|
|
RUN_DEPENDS= ${PKGNAMEPREFIX}core>=${PYQT4_VERSION}:${PORTSDIR}/devel/py-qt4-core \
|
|
${PKGNAMEPREFIX}gui>=${PYQT4_VERSION}:${PORTSDIR}/x11-toolkits/py-qt4-gui \
|
|
${PKGNAMEPREFIX}network>=${PYQT4_VERSION}:${PORTSDIR}/net/py-qt4-network \
|
|
${PKGNAMEPREFIX}xml>=${PYQT4_VERSION}:${PORTSDIR}/textproc/py-qt4-xml \
|
|
${PKGNAMEPREFIX}assistant>=${PYQT4_VERSION}:${PORTSDIR}/devel/py-qt4-assistant \
|
|
${PKGNAMEPREFIX}opengl>=${PYQT4_VERSION}:${PORTSDIR}/x11/py-qt4-opengl \
|
|
${PKGNAMEPREFIX}script>=${PYQT4_VERSION}:${PORTSDIR}/devel/py-qt4-script \
|
|
${PKGNAMEPREFIX}sql>=${PYQT4_VERSION}:${PORTSDIR}/databases/py-qt4-sql \
|
|
${PKGNAMEPREFIX}svg>=${PYQT4_VERSION}:${PORTSDIR}/graphics/py-qt4-svg \
|
|
${PKGNAMEPREFIX}test>=${PYQT4_VERSION}:${PORTSDIR}/devel/py-qt4-test \
|
|
${PKGNAMEPREFIX}designer>=${PYQT4_VERSION}:${PORTSDIR}/devel/py-qt4-designer \
|
|
${PKGNAMEPREFIX}designerplugin>=${PYQT4_VERSION}:${PORTSDIR}/devel/py-qt4-designerplugin \
|
|
${PKGNAMEPREFIX}dbus>=${PYQT4_VERSION}:${PORTSDIR}/devel/py-qt4-dbus
|
|
.if !defined(NOPORTDOCS)
|
|
RUN_DEPENDS+= ${PKGNAMEPREFIX}doc>=${PYQT4_VERSION}:${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>
|