freebsd-ports/x11-toolkits/py-qt/Makefile
Michael Nottebrock b1b8b1ee2f Update to 3.14.1, add backup master site.
PR:	ports/79321
Submitted by:	maintainer
2005-04-11 18:12:06 +00:00

57 lines
1.5 KiB
Makefile

# New ports collection makefile for: PyQt
# Date created: Sun Oct 17 00:24:28 PDT 1999
# Whom: adsharma@sharmas.dhs.org
#
# $FreeBSD$
PORTNAME= qt
PORTVERSION= 3.14.1
PORTREVISION=
CATEGORIES= x11-toolkits python
MASTER_SITES= http://www.river-bank.demon.co.uk/download/PyQt/ \
http://freebsd.ricin.com/ports/distfiles/
PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX}
DISTNAME= PyQt-x11-gpl-${PORTVERSION}
MAINTAINER= danny@ricin.com
COMMENT= Python bindings for the Qt toolkit
LIB_DEPENDS= qscintilla.5:${PORTSDIR}/x11-toolkits/qscintilla
BUILD_DEPENDS= ${LOCALBASE}/bin/sip:${PORTSDIR}/devel/py-sip
RUN_DEPENDS= ${BUILD_DEPENDS}
USE_QT_VER= 3
USE_PYTHON= yes
USE_REINPLACE= yes
.include <bsd.port.pre.mk>
.if defined(WITHOUT_OPENGL)
PLIST_SUB+= GL="@comment "
.else
PLIST_SUB+= GL=""
.endif
do-configure:
@( cd ${WRKSRC} && ${ECHO} "yes" | ${PYTHON_CMD} configure.py \
-b ${PREFIX}/bin -d ${PYTHONPREFIX_SITELIBDIR} \
-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"
.include <bsd.port.post.mk>