2013-02-03 19:16:07 +01:00
|
|
|
# Created by: Danny Pansters <danny@ricin.com>
|
2007-03-27 11:59:53 +02:00
|
|
|
# $FreeBSD$
|
|
|
|
|
|
|
|
PORTNAME= xml
|
2008-03-20 13:40:00 +01:00
|
|
|
PORTVERSION= ${PYQT4_VERSION}
|
2008-07-26 00:24:16 +02:00
|
|
|
PORTEPOCH= 1
|
2007-03-27 11:59:53 +02:00
|
|
|
CATEGORIES= textproc devel python
|
2008-03-20 13:40:00 +01:00
|
|
|
MASTER_SITES= ${MASTER_SITES_PYQT4}
|
2007-03-27 11:59:53 +02:00
|
|
|
PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX}qt4-
|
2008-03-20 13:40:00 +01:00
|
|
|
DISTNAME= ${PYQT4_DISTNAME}
|
2007-03-27 11:59:53 +02:00
|
|
|
|
2009-02-14 23:58:55 +01:00
|
|
|
MAINTAINER= kde@FreeBSD.org
|
2007-03-27 11:59:53 +02:00
|
|
|
COMMENT= Python bindings for the Qt4 toolkit, QtXml module
|
|
|
|
|
2008-03-20 13:40:00 +01:00
|
|
|
BUILD_DEPENDS= ${PYTHON_PKGNAMEPREFIX}sip>=${SIP_VERSION}:${PORTSDIR}/devel/py-sip
|
|
|
|
RUN_DEPENDS= ${PKGNAMEPREFIX}core>=${PYQT4_VERSION}:${PORTSDIR}/devel/py-qt4-core
|
2007-03-27 11:59:53 +02:00
|
|
|
|
2011-10-17 00:50:48 +02:00
|
|
|
DISTINFO_FILE= ${PYQT4_DISTINFO_FILE}
|
2007-03-27 11:59:53 +02:00
|
|
|
HAS_CONFIGURE= yes
|
2014-01-13 22:00:02 +01:00
|
|
|
USE_PYTHON= yes
|
2012-06-06 08:44:37 +02:00
|
|
|
USE_QT4= xml qmake_build moc_build
|
2007-03-27 11:59:53 +02:00
|
|
|
|
2013-02-03 19:16:07 +01:00
|
|
|
OPTIONS_DEFINE= API
|
|
|
|
OPTIONS_DEFAULT=API
|
|
|
|
API_DESC= Install QtXml API for QScintilla2
|
2007-03-27 11:59:53 +02:00
|
|
|
|
2013-02-03 19:16:07 +01:00
|
|
|
PATCHDIR= ${.CURDIR}/../../devel/py-qt4-core/files
|
2012-01-25 00:40:21 +01:00
|
|
|
OPTIONSFILE?= ${PORT_DBDIR}/py-qt4-${PORTNAME}/options
|
2007-03-27 11:59:53 +02:00
|
|
|
SIPDIR= ${PREFIX}/share/py-sip
|
2009-02-14 23:58:55 +01:00
|
|
|
QSCIDIR= ${PREFIX}/share/qt4/qsci
|
2012-06-09 02:41:21 +02:00
|
|
|
ARGS= -b ${PREFIX}/bin \
|
|
|
|
-d ${PYTHONPREFIX_SITELIBDIR} \
|
|
|
|
-p ${PREFIX}/${QT_PLUGINDIR_REL} \
|
|
|
|
-q ${QMAKE} \
|
|
|
|
--confirm-license \
|
|
|
|
--sipdir ${SIPDIR} \
|
2013-02-03 19:16:07 +01:00
|
|
|
--enable QtXml \
|
|
|
|
CC="${CC}" CXX="${CXX}" LINK="${CXX}" LINK_SHLIB="${CXX}" \
|
|
|
|
CFLAGS="${CFLAGS}" CXXFLAGS="${CXXFLAGS}"
|
2007-03-27 11:59:53 +02:00
|
|
|
|
2013-02-03 19:16:07 +01:00
|
|
|
.include "${.CURDIR}/../../devel/py-qt4/bsd.pyqt.mk"
|
2010-05-11 12:43:10 +02:00
|
|
|
.include <bsd.port.options.mk>
|
2007-03-27 11:59:53 +02:00
|
|
|
|
2013-02-03 19:16:07 +01:00
|
|
|
.if empty(PORT_OPTIONS:MAPI)
|
2007-09-13 20:15:58 +02:00
|
|
|
ARGS+= --no-qsci-api
|
2007-03-27 11:59:53 +02:00
|
|
|
PLIST_SUB+= API="@comment "
|
|
|
|
.else
|
2014-07-14 20:42:04 +02:00
|
|
|
LIB_DEPENDS+= libqscintilla2.so:${PORTSDIR}/devel/qscintilla2
|
2009-02-14 23:58:55 +01:00
|
|
|
ARGS+= --qsci-api --qsci-api-destdir=${QSCIDIR}
|
2007-03-27 11:59:53 +02:00
|
|
|
PLIST_SUB+= API=""
|
|
|
|
.endif
|
|
|
|
|
2013-02-03 19:16:07 +01:00
|
|
|
.if defined(WITH_DEBUG)
|
|
|
|
ARGS+= --debug --trace
|
|
|
|
.endif
|
|
|
|
|
2007-03-27 11:59:53 +02:00
|
|
|
do-configure:
|
2007-09-13 20:15:58 +02:00
|
|
|
cd ${WRKSRC} && ${SETENV} ${CONFIGURE_ENV}\
|
|
|
|
${PYTHON_CMD} configure.py ${ARGS}
|
2007-03-27 11:59:53 +02:00
|
|
|
|
2010-05-11 12:43:10 +02:00
|
|
|
.include <bsd.port.mk>
|