2010-11-22 03:36:47 -05:00
|
|
|
# $OpenBSD: Makefile,v 1.26 2010/11/22 08:37:04 espie Exp $
|
2008-01-15 08:25:23 -05:00
|
|
|
|
|
|
|
SHARED_ONLY= Yes
|
|
|
|
|
|
|
|
COMMENT-main= python Qt4 bindings
|
|
|
|
COMMENT-docs= py-qt4 documentation
|
|
|
|
|
2010-08-30 06:17:14 -04:00
|
|
|
# XXX: Upstream doesn't keep old files; if updating please mirror or ask sthen@
|
2010-11-10 17:12:40 -05:00
|
|
|
V= 4.8.1
|
2008-01-15 08:25:23 -05:00
|
|
|
DISTNAME= PyQt-x11-gpl-${V}
|
|
|
|
PKGNAME= py-qt4-${V}
|
2010-04-19 05:51:30 -04:00
|
|
|
PKGNAME-main= py-qt4-${V}
|
2009-06-03 14:22:28 -04:00
|
|
|
PKGNAME-docs= py-qt4-docs-${V}
|
2008-01-15 08:25:23 -05:00
|
|
|
|
|
|
|
CATEGORIES= x11 devel
|
|
|
|
|
2009-06-02 01:20:51 -04:00
|
|
|
HOMEPAGE= http://www.riverbankcomputing.co.uk/software/pyqt/intro
|
2008-01-15 08:25:23 -05:00
|
|
|
|
2009-01-05 10:47:55 -05:00
|
|
|
# GPLv2
|
2008-01-15 08:25:23 -05:00
|
|
|
PERMIT_PACKAGE_CDROM= Yes
|
|
|
|
PERMIT_PACKAGE_FTP= Yes
|
|
|
|
PERMIT_DISTFILES_CDROM= Yes
|
|
|
|
PERMIT_DISTFILES_FTP= Yes
|
|
|
|
|
2010-09-07 04:58:16 -04:00
|
|
|
WANTLIB += GL GLU X11 Xext c dbus-1 m pthread stdc++
|
2010-10-28 10:56:24 -04:00
|
|
|
WANTLIB += QtDesigner QtGui QtNetwork QtOpenGL
|
2010-09-07 04:58:16 -04:00
|
|
|
WANTLIB += QtScript QtSql QtSvg QtTest QtXml
|
2010-10-24 11:53:55 -04:00
|
|
|
WANTLIB += ${MODPY_WANTLIB}
|
2008-01-15 08:25:23 -05:00
|
|
|
|
|
|
|
MULTI_PACKAGES= -main -docs
|
|
|
|
|
|
|
|
WANTLIB-docs=
|
|
|
|
LIB_DEPENDS-docs=
|
|
|
|
RUN_DEPENDS-docs=
|
|
|
|
PKG_ARCH-docs= *
|
|
|
|
|
|
|
|
BUILD_DEPENDS= ${RUN_DEPENDS}
|
2010-11-22 03:36:47 -05:00
|
|
|
RUN_DEPENDS= devel/py-sip>=4.11.2 \
|
|
|
|
x11/dbus-python
|
|
|
|
LIB_DEPENDS= x11/qt4>=4.7.0 \
|
2008-12-04 09:55:30 -05:00
|
|
|
${MODPY_LIB_DEPENDS}
|
2008-01-15 08:25:23 -05:00
|
|
|
|
|
|
|
NO_REGRESS= Yes
|
|
|
|
|
2010-08-30 06:17:14 -04:00
|
|
|
MASTER_SITES= http://www.riverbankcomputing.co.uk/static/Downloads/PyQt4/ \
|
2010-11-01 06:39:40 -04:00
|
|
|
http://spacehopper.org/mirrors/ \
|
|
|
|
http://distfiles.nl/
|
2008-01-15 08:25:23 -05:00
|
|
|
|
2010-09-07 04:58:16 -04:00
|
|
|
MODULES= devel/gettext \
|
2009-06-03 14:22:28 -04:00
|
|
|
lang/python \
|
|
|
|
x11/qt4
|
2008-01-15 08:25:23 -05:00
|
|
|
|
|
|
|
CONFIGURE_STYLE=simple
|
|
|
|
CONFIGURE_SCRIPT=${MODPY_BIN} configure.py
|
2009-01-05 10:47:55 -05:00
|
|
|
CONFIGURE_ARGS= --verbose \
|
2009-06-03 14:22:28 -04:00
|
|
|
--qmake="${LOCALBASE}/bin/qmake4" \
|
|
|
|
--bindir="${PREFIX}/bin" \
|
|
|
|
--destdir="${MODPY_SITEPKG}" \
|
|
|
|
--sipdir="${PREFIX}/share/sip" \
|
|
|
|
--vendorid-incdir="${MODPY_INCDIR}" \
|
|
|
|
--vendorid-libdir="${MODPY_LIBDIR}" \
|
2008-01-15 08:25:23 -05:00
|
|
|
--no-qsci-api \
|
|
|
|
INCDIR_QT=${MODQT_INCDIR} \
|
2009-01-05 10:47:55 -05:00
|
|
|
LIBDIR="${X11BASE}/lib ${LOCALBASE}/lib" \
|
2008-01-15 08:25:23 -05:00
|
|
|
LIBDIR_QT=${MODQT_LIBDIR} \
|
|
|
|
CC=${CC} \
|
|
|
|
CXX=${CXX} \
|
|
|
|
CFLAGS="${CFLAGS}" \
|
|
|
|
CXXFLAGS="${CXXFLAGS}"
|
2008-06-24 14:44:42 -04:00
|
|
|
FAKE_FLAGS= INSTALL_ROOT=${DESTDIR}
|
2010-04-19 05:51:30 -04:00
|
|
|
CONFIGURE_ENV= LOCALBASE=${LOCALBASE}
|
2008-01-15 08:25:23 -05:00
|
|
|
|
|
|
|
PYQTMODS= QtCore QtGui QtNetwork QtOpenGL QtScript QtSql QtSvg \
|
|
|
|
QtTest QtXml QtAssistant QtDesigner
|
|
|
|
|
|
|
|
.for i in ${PYQTMODS}
|
|
|
|
CONFIGURE_ARGS+=--enable=${i}
|
|
|
|
.endfor
|
|
|
|
|
2009-09-05 12:18:43 -04:00
|
|
|
MODPY_MAJOR=${MODPY_VERSION:C/\..*//}
|
|
|
|
# the distfile has pyuic for both python 2 and 3, normally both are
|
|
|
|
# installed and they're selected at runtime. this breaks bytecode
|
|
|
|
# compilation for package generation, so just rm the wrong files.
|
|
|
|
pre-configure:
|
|
|
|
.if ${MODPY_MAJOR} == "2"
|
|
|
|
rm -r ${WRKSRC}/pyuic/uic/port_v2
|
|
|
|
.else
|
|
|
|
rm -rf ${WRKSRC}/pyuic/uic/port_v3
|
|
|
|
.endif
|
|
|
|
|
2008-01-15 08:25:23 -05:00
|
|
|
post-install:
|
2009-07-24 06:23:47 -04:00
|
|
|
${MODPY_BIN} ${MODPY_LIBDIR}/compileall.py ${WRKINST}/${MODPY_SITEPKG}
|
2008-01-15 08:25:23 -05:00
|
|
|
${INSTALL_DATA_DIR} ${PREFIX}/share/doc/py-qt4
|
|
|
|
cp -R ${WRKSRC}/doc/* ${PREFIX}/share/doc/py-qt4
|
|
|
|
chown -R ${SHAREOWN}:${SHAREGRP} ${PREFIX}/share/doc/py-qt4/*
|
|
|
|
|
|
|
|
.include <bsd.port.mk>
|