aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorlofi <lofi@FreeBSD.org>2004-11-16 14:34:57 +0800
committerlofi <lofi@FreeBSD.org>2004-11-16 14:34:57 +0800
commite3e3005dc6d115a0b3b5d0820376872c1753aa94 (patch)
tree228243356de0e1024ccb2d8792d360a3b54241fa
parent4658d69aae8b68eb5d0fc740f792ba309e7594ca (diff)
downloadfreebsd-ports-gnome-e3e3005dc6d115a0b3b5d0820376872c1753aa94.tar.gz
freebsd-ports-gnome-e3e3005dc6d115a0b3b5d0820376872c1753aa94.tar.zst
freebsd-ports-gnome-e3e3005dc6d115a0b3b5d0820376872c1753aa94.zip
Fix build on 4.x.
-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"