aboutsummaryrefslogtreecommitdiff
path: root/x11-toolkits/py-qt
diff options
context:
space:
mode:
authorMartin Wilke <miwi@FreeBSD.org>2007-09-20 00:25:17 +0000
committerMartin Wilke <miwi@FreeBSD.org>2007-09-20 00:25:17 +0000
commit8a47f7b2acb4bd0e0d24419c57dd430269a12b14 (patch)
tree3f1c24448cf4c1d0d57b57aa043a93c4a4fc9296 /x11-toolkits/py-qt
parent70f38e3e5eed493c155b0fc15c7a42cd38d9a90d (diff)
downloadports-8a47f7b2acb4bd0e0d24419c57dd430269a12b14.tar.gz
ports-8a47f7b2acb4bd0e0d24419c57dd430269a12b14.zip
Notes
Diffstat (limited to 'x11-toolkits/py-qt')
-rw-r--r--x11-toolkits/py-qt/Makefile19
1 files changed, 12 insertions, 7 deletions
diff --git a/x11-toolkits/py-qt/Makefile b/x11-toolkits/py-qt/Makefile
index a93482baf98d..f079247dbec0 100644
--- a/x11-toolkits/py-qt/Makefile
+++ b/x11-toolkits/py-qt/Makefile
@@ -36,6 +36,7 @@ OPTIONSFILE= ${PORT_DBDIR}/py-${PORTNAME}/options
SPEC= ${LOCALBASE}/share/qt/mkspecs/freebsd-g++
ARGS= -b ${PREFIX}/bin -d ${PYTHON_SITELIBDIR}\
-o ${LOCALBASE}/lib -v ${DATADIR}
+MODULES= qt qtcanvas qtnetwork qttable qtxml qtui qtsql qtext
.include <bsd.port.pre.mk>
@@ -44,10 +45,13 @@ ARGS+= -u
.endif
.if exists(${LOCALBASE}/include/qgl.h) && !defined(WITHOUT_OPENGL)
PLIST_SUB+= OPENGL=""
+MODULES+= qtgl
.else
PLIST_SUB+= OPENGL="@comment "
pre-configure:
- @${RM} -r ${WRKSRC}/sip/qtgl && ${ECHO} "OpenGL support is disabled"
+ @${RM} -r ${WRKSRC}/sip/qtgl && ${ECHO_CMD} && ${ECHO_CMD}\
+ "** OpenGL is disabled (chosen here or your Qt3 has no OpenGL support) **"\
+ && ${ECHO_CMD}
.endif
.if defined(WITH_TRACING)
ARGS+= -r
@@ -59,12 +63,13 @@ do-configure:
${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
+.for item in ${MODULES}
+ ${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
+.endfor
post-build:
.if !defined(NOPORTEXAMPLES)