1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-11-20 00:21:35 +00:00

Fix build on 4.x.

This commit is contained in:
Michael Nottebrock 2004-11-16 06:34:57 +00:00
parent 818d3c9094
commit 15e8ee830a
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=121733

View File

@ -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"