aboutsummaryrefslogtreecommitdiff
path: root/x11-toolkits/py-qt
diff options
context:
space:
mode:
authorMichael Nottebrock <lofi@FreeBSD.org>2004-11-16 06:34:57 +0000
committerMichael Nottebrock <lofi@FreeBSD.org>2004-11-16 06:34:57 +0000
commit15e8ee830aea911b2f66ac889172971878abafc0 (patch)
treec165b7792f9f158d3c0b03d30b730ba0a6de9d86 /x11-toolkits/py-qt
parent818d3c90940e44da344dcb6a1c66749e866c621f (diff)
downloadports-15e8ee830aea911b2f66ac889172971878abafc0.tar.gz
ports-15e8ee830aea911b2f66ac889172971878abafc0.zip
Notes
Diffstat (limited to 'x11-toolkits/py-qt')
-rw-r--r--x11-toolkits/py-qt/Makefile13
1 files changed, 13 insertions, 0 deletions
diff --git a/x11-toolkits/py-qt/Makefile b/x11-toolkits/py-qt/Makefile
index 004086c16929..b8d412320286 100644
--- a/x11-toolkits/py-qt/Makefile
+++ b/x11-toolkits/py-qt/Makefile
@@ -20,6 +20,7 @@ RUN_DEPENDS= ${BUILD_DEPENDS}
USE_QT_VER= 3
USE_PYTHON= yes
+USE_REINPLACE= yes
.include <bsd.port.pre.mk>
@@ -35,6 +36,18 @@ do-configure:
-n ${X11BASE}/include -o ${X11BASE}/lib \
-v ${PREFIX}/share/sip)
+.if ${OSVERSION} < 500000
+post-configure:
+ @${REINPLACE_CMD} -e \
+ 's|static_cast<sipQTable::sipEditMode>(QTable::editMode())|\
+ (sipQTable::sipEditMode) QTable::editMode()|' \
+ ${WRKSRC}/qttable/sipqttableQTable.cpp
+ @${REINPLACE_CMD} -e \
+ 's|static_cast<sipQDataTable::sipEditMode>(QTable::editMode())|\
+ (sipQDataTable::sipEditMode) QTable::editMode()|' \
+ ${WRKSRC}/qtsql/sipqtsqlQDataTable.cpp
+.endif
+
post-install:
@${PYTHON_CMD} -c "import pyqtconfig"
@${PYTHON_CMD} -O -c "import pyqtconfig"