diff options
Diffstat (limited to 'x11-toolkits/py-qt/Makefile')
-rw-r--r-- | x11-toolkits/py-qt/Makefile | 84 |
1 files changed, 40 insertions, 44 deletions
diff --git a/x11-toolkits/py-qt/Makefile b/x11-toolkits/py-qt/Makefile index 91cfbfe0676d..a93482baf98d 100644 --- a/x11-toolkits/py-qt/Makefile +++ b/x11-toolkits/py-qt/Makefile @@ -5,8 +5,8 @@ # $FreeBSD$ PORTNAME= qt -PORTVERSION= 3.17.2 -PORTREVISION= 2 +PORTVERSION= 3.17.3 +PORTREVISION= # zero PORTEPOCH= 1 CATEGORIES= x11-toolkits python MASTER_SITES= http://www.riverbankcomputing.com/Downloads/PyQt3/GPL/ \ @@ -18,16 +18,14 @@ MAINTAINER= danny@ricin.com COMMENT= Python bindings for the Qt toolkit LIB_DEPENDS= qscintilla.7:${PORTSDIR}/x11-toolkits/qscintilla -RUN_DEPENDS= ${LOCALBASE}/bin/sip:${PORTSDIR}/devel/py-sip -BUILD_DEPENDS= ${RUN_DEPENDS} \ +BUILD_DEPENDS= ${LOCALBASE}/bin/sip:${PORTSDIR}/devel/py-sip \ qmake:${PORTSDIR}/devel/qmake +RUN_DEPENDS= ${LOCALBASE}/bin/sip:${PORTSDIR}/devel/py-sip USE_QT_VER= 3 -USE_PYTHON= 2.3+ +USE_PYTHON= 2.5+ OPTIONS= DEBUG "Enable debugging symbols" off \ - DOCS "Install documentation" on \ - EXAMPLES "Install examples" on \ OPENGL "Enable OpenGL support" on \ TRACING "Enable tracing in generated code" off @@ -36,65 +34,63 @@ DOCSDIR= ${PREFIX}/share/doc/py-${PORTNAME} EXAMPLESDIR= ${PREFIX}/share/examples/py-${PORTNAME} OPTIONSFILE= ${PORT_DBDIR}/py-${PORTNAME}/options SPEC= ${LOCALBASE}/share/qt/mkspecs/freebsd-g++ -ARGS= -b ${PREFIX}/bin -d ${PYTHONPREFIX_SITELIBDIR} \ - -o ${X11BASE}/lib -v ${DATADIR} +ARGS= -b ${PREFIX}/bin -d ${PYTHON_SITELIBDIR}\ + -o ${LOCALBASE}/lib -v ${DATADIR} .include <bsd.port.pre.mk> .if defined(WITH_DEBUG) ARGS+= -u .endif -.if defined(NOPORTDOCS) || defined(WITHOUT_DOCS) -PLIST_SUB+= DOCS="@comment " -.else -PLIST_SUB+= DOCS="" -.endif -.if defined(WITHOUT_EXAMPLES) -PLIST_SUB+= EXAMPLES="@comment " -.else -PLIST_SUB+= EXAMPLES="" -.endif -.if exists(${X11BASE}/include/qgl.h) && !defined(WITHOUT_OPENGL) +.if exists(${LOCALBASE}/include/qgl.h) && !defined(WITHOUT_OPENGL) PLIST_SUB+= OPENGL="" .else PLIST_SUB+= OPENGL="@comment " pre-configure: - @( ${RM} -r ${WRKSRC}/sip/qtgl && ${ECHO} "OpenGL support is disabled" ) + @${RM} -r ${WRKSRC}/sip/qtgl && ${ECHO} "OpenGL support is disabled" .endif .if defined(WITH_TRACING) ARGS+= -r .endif do-configure: - ( cd ${WRKSRC} && ${ECHO} "yes" | \ - ${SETENV} QTDIR=${QT_PREFIX} QMAKESPEC=${SPEC} \ - ${PYTHON_CMD} configure.py ${ARGS} ) + cd ${WRKSRC} && ${ECHO} "yes" |\ + ${SETENV} QTDIR=${QT_PREFIX} QMAKESPEC=${SPEC}\ + ${PYTHON_CMD} configure.py ${ARGS} + +post-configure: + for item in qt qtcanvas qtnetwork qttable qtxml qtgl qtui qtsql qtext ; do\ + ${REINPLACE_CMD} -e 's|mkspecs/freebsd-g++|share/qt/mkspecs/freebsd-g++|'\ + -e 's|CC = cc|CC = ${CC}|'\ + -e 's|CXX = c++|CXX = ${CXX}|'\ + -e 's|LINK = c++|LINK = ${CXX}|'\ + ${WRKSRC}/$${item}/Makefile ; done post-build: -.if !defined(WITHOUT_EXAMPLES) - ( cd ${WRKSRC} && \ - ${PYTHON_CMD} ${PYTHON_LIBDIR}/compileall.py examples3 ) +.if !defined(NOPORTEXAMPLES) + cd ${WRKSRC} &&\ + ${PYTHON_CMD} ${PYTHON_LIBDIR}/compileall.py examples3 .endif post-install: - ( cd ${PYTHONPREFIX_SITELIBDIR} && \ - ${PYTHON_CMD} -c "import pyqtconfig" && \ - ${PYTHON_CMD} -O -c "import pyqtconfig" ) -.if !defined(NOPORTDOCS) && !defined(WITHOUT_DOCS) - ( cd ${WRKSRC} && \ - ${MKDIR} -m 0755 ${DOCSDIR} && \ - ${INSTALL_DATA} ChangeLog NEWS README doc/* ${DOCSDIR} ) + cd ${PYTHON_SITELIBDIR} &&\ + ${PYTHON_CMD} -c "import pyqtconfig" &&\ + ${PYTHON_CMD} -O -c "import pyqtconfig" +.if !defined(NOPORTDOCS) + cd ${WRKSRC} &&\ + ${MKDIR} ${DOCSDIR} &&\ + ${INSTALL_DATA} ChangeLog NEWS README doc/* ${DOCSDIR} .endif -.if !defined(WITHOUT_EXAMPLES) - ( cd ${WRKSRC}/examples3 && \ - ${MKDIR} -m 0755 ${EXAMPLESDIR}/SQL ${EXAMPLESDIR}/canvas \ - ${EXAMPLESDIR}/i18n ${EXAMPLESDIR}/webbrowser && \ - ${INSTALL_DATA} README *.py *.pyc *.png *.gif *.bmp *.xpm \ - ${EXAMPLESDIR} && \ - ${INSTALL_DATA} SQL/* ${EXAMPLESDIR}/SQL && \ - ${INSTALL_DATA} canvas/* ${EXAMPLESDIR}/canvas && \ - ${INSTALL_DATA} i18n/* ${EXAMPLESDIR}/i18n && \ - ${INSTALL_DATA} webbrowser/* ${EXAMPLESDIR}/webbrowser ) +.if !defined(NOPORTEXAMPLES) + cd ${WRKSRC}/examples3 &&\ + ${MKDIR} ${EXAMPLESDIR}/SQL ${EXAMPLESDIR}/canvas\ + ${EXAMPLESDIR}/i18n ${EXAMPLESDIR}/webbrowser &&\ + ${INSTALL_DATA} README *.py *.pyc *.png *.gif *.bmp *.xpm\ + ${EXAMPLESDIR} &&\ + ${INSTALL_DATA} SQL/* ${EXAMPLESDIR}/SQL &&\ + ${INSTALL_DATA} canvas/* ${EXAMPLESDIR}/canvas &&\ + ${INSTALL_DATA} i18n/* ${EXAMPLESDIR}/i18n &&\ + ${INSTALL_DATA} webbrowser/* ${EXAMPLESDIR}/webbrowser .endif .include <bsd.port.post.mk> |