aboutsummaryrefslogtreecommitdiff
path: root/databases/py-qt4-sql/Makefile
diff options
context:
space:
mode:
authorMartin Wilke <miwi@FreeBSD.org>2007-09-13 18:15:58 +0000
committerMartin Wilke <miwi@FreeBSD.org>2007-09-13 18:15:58 +0000
commit71fee7a28f398a2397323d85043fe27f64592ff3 (patch)
tree1bd1d6b6cd839caa689ea882fe31da6bd8c7ae79 /databases/py-qt4-sql/Makefile
parent3a031558959ee2330ba8253b9752de0ea489d195 (diff)
downloadports-71fee7a28f398a2397323d85043fe27f64592ff3.tar.gz
ports-71fee7a28f398a2397323d85043fe27f64592ff3.zip
Notes
Diffstat (limited to 'databases/py-qt4-sql/Makefile')
-rw-r--r--databases/py-qt4-sql/Makefile49
1 files changed, 28 insertions, 21 deletions
diff --git a/databases/py-qt4-sql/Makefile b/databases/py-qt4-sql/Makefile
index 50da5e080026..e0fe59da7b61 100644
--- a/databases/py-qt4-sql/Makefile
+++ b/databases/py-qt4-sql/Makefile
@@ -5,8 +5,8 @@
# $FreeBSD$
PORTNAME= sql
-PORTVERSION= 4.2
-PORTREVISION= 1
+PORTVERSION= 4.3
+PORTREVISION= # zero
CATEGORIES= databases devel python
MASTER_SITES= http://www.riverbankcomputing.com/Downloads/PyQt4/GPL/ \
http://freebsd.ricin.com/ports/distfiles/
@@ -16,11 +16,11 @@ DISTNAME= PyQt-x11-gpl-${PORTVERSION}
MAINTAINER= danny@ricin.com
COMMENT= Python bindings for the Qt4 toolkit, QtSql module
-BUILD_DEPENDS= ${PYTHON_SITELIBDIR}/PyQt4/QtGui.so:${PORTSDIR}/x11-toolkits/py-qt4-gui
-RUN_DEPENDS= ${BUILD_DEPENDS}
+BUILD_DEPENDS= ${LOCALBASE}/bin/sip:${PORTSDIR}/devel/py-sip
+RUN_DEPENDS= ${PYTHON_SITELIBDIR}/PyQt4/QtGui.so:${PORTSDIR}/x11-toolkits/py-qt4-gui
HAS_CONFIGURE= yes
-USE_PYTHON= 2.3+
+USE_PYTHON= 2.5+
USE_QT_VER= 4
QT_COMPONENTS= sql qmake
@@ -29,45 +29,52 @@ OPTIONS= API "Install QtSql API for QScintilla2" on \
SIPFILES "Install the QtSql SIP files" on \
TRACING "Enable tracing in generated code" off
+PATCHDIR= ${PORTSDIR}/devel/py-qt4-core/files
OPTIONSFILE= ${PORT_DBDIR}/py-qt4-${PORTNAME}/options
-APIFILE= ${QT_PREFIX}/share/qt4/qsci/api/python/QtSql.api
SIPDIR= ${PREFIX}/share/py-sip
-ARGS= -b ${PREFIX}/bin -c -j 2 -d ${PYTHONPREFIX_SITELIBDIR}/PyQt4 \
- -q ${QT_PREFIX}/bin/qmake-qt4 -a
+CONFIGURE_ENV+= PYQT4_COMPONENT="${PORTNAME}"
+ARGS= -b ${PREFIX}/bin\
+ -d ${PYTHON_SITELIBDIR}\
+ -q ${QT_PREFIX}/bin/qmake-qt4
.include <bsd.port.pre.mk>
+.if defined(WITH_DEBUG)
+ARGS+= --debug
+.endif
.if defined(WITHOUT_API)
+ARGS+= --no-qsci-api
PLIST_SUB+= API="@comment "
PLIST_SUB+= APIFILE="@comment "
.else
-LIB_DEPENDS+= qscintilla2.1:${PORTSDIR}/devel/qscintilla2
+LIB_DEPENDS+= qscintilla2.2:${PORTSDIR}/devel/qscintilla2
+ARGS+= --qsci-api
PLIST_SUB+= API=""
PLIST_SUB+= APIFILE="share/qt4/qsci/api/python/QtSql.api"
.endif
-.if defined(WITH_DEBUG)
-ARGS+= -u
-.endif
.if defined(WITHOUT_SIPFILES)
-ARGS+= -v /dev/null
+ARGS+= --no-sip-files
PLIST_SUB+= SIPFILES="@comment "
PLIST_SUB+= SIPDIR="@comment "
.else
-ARGS+= -v ${SIPDIR}
+ARGS+= --sipdir ${SIPDIR}
PLIST_SUB+= SIPFILES=""
PLIST_SUB+= SIPDIR="share/py-sip"
.endif
.if defined(WITH_TRACING)
-ARGS+= -r
+ARGS+= --trace
.endif
+ARGS+= --enable QtSql
do-configure:
- ( cd ${WRKSRC} && ${SETENV} ${CONFIGURE_ENV} \
- ${PYTHON_CMD} configure.py ${ARGS} )
+ cd ${WRKSRC} && ${SETENV} ${CONFIGURE_ENV}\
+ ${PYTHON_CMD} configure.py ${ARGS}
-post-install:
-.if defined(WITHOUT_API)
- ( ${RM} ${APIFILE} )
-.endif
+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}/QtSql/Makefile
.include <bsd.port.post.mk>