2007-03-27 10:05:12 +00:00
|
|
|
# New ports collection makefile for: py-qt4-test
|
|
|
|
# Date created: 2007-02-20
|
|
|
|
# Whom: Danny Pansters <danny@ricin.com>
|
|
|
|
#
|
|
|
|
# $FreeBSD$
|
|
|
|
|
|
|
|
PORTNAME= test
|
2008-03-20 12:40:00 +00:00
|
|
|
PORTVERSION= ${PYQT4_VERSION}
|
2008-07-25 22:24:16 +00:00
|
|
|
PORTEPOCH= 1
|
2007-03-27 10:05:12 +00:00
|
|
|
CATEGORIES= devel python
|
2008-03-20 12:40:00 +00:00
|
|
|
MASTER_SITES= ${MASTER_SITES_PYQT4}
|
2007-03-27 10:05:12 +00:00
|
|
|
PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX}qt4-
|
2008-03-20 12:40:00 +00:00
|
|
|
DISTNAME= ${PYQT4_DISTNAME}
|
2007-03-27 10:05:12 +00:00
|
|
|
|
2009-02-14 22:58:55 +00:00
|
|
|
MAINTAINER= kde@FreeBSD.org
|
2007-03-27 10:05:12 +00:00
|
|
|
COMMENT= Python bindings for the Qt4 toolkit, QtTest module
|
|
|
|
|
2008-03-20 12:40:00 +00:00
|
|
|
BUILD_DEPENDS= ${PYTHON_PKGNAMEPREFIX}sip>=${SIP_VERSION}:${PORTSDIR}/devel/py-sip
|
|
|
|
RUN_DEPENDS= ${PKGNAMEPREFIX}gui>=${PYQT4_VERSION}:${PORTSDIR}/x11-toolkits/py-qt4-gui
|
2007-03-27 10:05:12 +00:00
|
|
|
|
|
|
|
HAS_CONFIGURE= yes
|
2007-09-13 18:15:58 +00:00
|
|
|
USE_PYTHON= 2.5+
|
2007-03-27 10:05:12 +00:00
|
|
|
USE_QT_VER= 4
|
2009-02-14 22:58:55 +00:00
|
|
|
QT_COMPONENTS= qtestlib qmake_build
|
2007-03-27 10:05:12 +00:00
|
|
|
|
|
|
|
OPTIONS= API "Install QtTest API for QScintilla2" on \
|
|
|
|
DEBUG "Enable debugging in generated code" off \
|
|
|
|
SIPFILES "Install the QtTest SIP files" on \
|
|
|
|
TRACING "Enable tracing in generated code" off
|
|
|
|
|
2007-09-13 18:15:58 +00:00
|
|
|
PATCHDIR= ${PORTSDIR}/devel/py-qt4-core/files
|
2007-03-27 10:05:12 +00:00
|
|
|
OPTIONSFILE= ${PORT_DBDIR}/py-qt4-${PORTNAME}/options
|
|
|
|
SIPDIR= ${PREFIX}/share/py-sip
|
2009-02-14 22:58:55 +00:00
|
|
|
QSCIDIR= ${PREFIX}/share/qt4/qsci
|
2007-09-13 18:15:58 +00:00
|
|
|
CONFIGURE_ENV+= PYQT4_COMPONENT="${PORTNAME}"
|
|
|
|
ARGS= -b ${PREFIX}/bin\
|
2009-02-14 22:58:55 +00:00
|
|
|
-d ${PYTHONPREFIX_SITELIBDIR}\
|
|
|
|
-p ${PREFIX}/${QT_PLUGINDIR_REL}\
|
|
|
|
-q ${QMAKE}\
|
|
|
|
--confirm-license\
|
|
|
|
--enable QtTest
|
2007-03-27 10:05:12 +00:00
|
|
|
|
2008-03-20 12:40:00 +00:00
|
|
|
.include "../py-sip/files/bsd.pyqt.mk"
|
2007-03-27 10:05:12 +00:00
|
|
|
.include <bsd.port.pre.mk>
|
|
|
|
|
2007-09-13 18:15:58 +00:00
|
|
|
.if defined(WITH_DEBUG)
|
|
|
|
ARGS+= --debug
|
|
|
|
.endif
|
2007-03-27 10:05:12 +00:00
|
|
|
.if defined(WITHOUT_API)
|
2007-09-13 18:15:58 +00:00
|
|
|
ARGS+= --no-qsci-api
|
2007-03-27 10:05:12 +00:00
|
|
|
PLIST_SUB+= API="@comment "
|
|
|
|
.else
|
2009-02-14 22:58:55 +00:00
|
|
|
LIB_DEPENDS+= qscintilla2.5:${PORTSDIR}/devel/qscintilla2
|
|
|
|
ARGS+= --qsci-api --qsci-api-destdir=${QSCIDIR}
|
2007-03-27 10:05:12 +00:00
|
|
|
PLIST_SUB+= API=""
|
|
|
|
.endif
|
|
|
|
.if defined(WITHOUT_SIPFILES)
|
2007-09-13 18:15:58 +00:00
|
|
|
ARGS+= --no-sip-files
|
2009-02-14 22:58:55 +00:00
|
|
|
PLIST_SUB+= SIP="@comment "
|
2007-03-27 10:05:12 +00:00
|
|
|
.else
|
2007-09-13 18:15:58 +00:00
|
|
|
ARGS+= --sipdir ${SIPDIR}
|
2009-02-14 22:58:55 +00:00
|
|
|
PLIST_SUB+= SIP=""
|
2007-03-27 10:05:12 +00:00
|
|
|
.endif
|
|
|
|
.if defined(WITH_TRACING)
|
2007-09-13 18:15:58 +00:00
|
|
|
ARGS+= --trace
|
2007-03-27 10:05:12 +00:00
|
|
|
.endif
|
|
|
|
|
|
|
|
do-configure:
|
2007-09-13 18:15:58 +00:00
|
|
|
cd ${WRKSRC} && ${SETENV} ${CONFIGURE_ENV} \
|
|
|
|
${PYTHON_CMD} configure.py ${ARGS}
|
2007-03-27 10:05:12 +00:00
|
|
|
|
2007-09-13 18:15:58 +00:00
|
|
|
post-configure:
|
|
|
|
${REINPLACE_CMD} -e 's|mkspecs/freebsd-g++|share/qt4/mkspecs/freebsd-g++|'\
|
|
|
|
-e 's|CC = cc|CC = ${CC}|'\
|
|
|
|
-e 's|CXX = c++|CXX = ${CXX}|'\
|
|
|
|
-e 's|LINK = c++|LINK = ${CXX}|'\
|
|
|
|
${WRKSRC}/QtTest/Makefile
|
2007-03-27 10:05:12 +00:00
|
|
|
|
|
|
|
.include <bsd.port.post.mk>
|