2009-06-03 14:22:28 -04:00
|
|
|
# $OpenBSD: Makefile,v 1.7 2009/06/03 18:22:28 jasper Exp $
|
2008-01-15 08:25:23 -05:00
|
|
|
|
|
|
|
SHARED_ONLY= Yes
|
|
|
|
|
|
|
|
COMMENT-main= python Qt4 bindings
|
|
|
|
COMMENT-docs= py-qt4 documentation
|
|
|
|
|
2009-06-03 14:22:28 -04:00
|
|
|
V= 4.4.4
|
2008-01-15 08:25:23 -05:00
|
|
|
DISTNAME= PyQt-x11-gpl-${V}
|
|
|
|
PKGNAME= py-qt4-${V}
|
2009-06-03 14:22:28 -04:00
|
|
|
PKGNAME-main= py-qt4-${V}
|
|
|
|
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
|
|
|
|
|
|
|
MAINTAINER= Lars Hansson <lars@unet.net.ph>
|
|
|
|
|
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
|
|
|
|
|
2009-06-03 14:22:28 -04:00
|
|
|
WANTLIB += GL GLU ICE SM X11 Xext Xi Xinerama Xrender c dbus-1
|
|
|
|
WANTLIB += expat fontconfig freetype glib-2.0 gobject-2.0 gthread-2.0
|
|
|
|
WANTLIB += intl m png pthread stdc++ z
|
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}
|
2009-06-03 14:22:28 -04:00
|
|
|
RUN_DEPENDS= :py-sip->=4.7.9:devel/py-sip \
|
2008-01-15 08:25:23 -05:00
|
|
|
::x11/dbus-python
|
2008-12-04 09:55:30 -05:00
|
|
|
LIB_DEPENDS= QtAssistantClient,QtDesigner,QtGui,QtNetwork,QtOpenGL,QtScript,QtSql,QtSvg,QtTest,QtXml::x11/qt4 \
|
|
|
|
${MODPY_LIB_DEPENDS}
|
2008-01-15 08:25:23 -05:00
|
|
|
|
|
|
|
NO_REGRESS= Yes
|
|
|
|
|
2009-06-02 01:20:51 -04:00
|
|
|
MASTER_SITES= http://www.riverbankcomputing.co.uk/static/Downloads/PyQt4/
|
2008-01-15 08:25:23 -05:00
|
|
|
|
2009-06-03 14:22:28 -04:00
|
|
|
MODULES= converters/libiconv \
|
|
|
|
lang/python \
|
|
|
|
x11/qt4
|
2008-01-15 08:25:23 -05:00
|
|
|
|
|
|
|
USE_X11= Yes
|
|
|
|
|
|
|
|
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}
|
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
|
|
|
|
|
|
|
|
post-install:
|
|
|
|
${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>
|