1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-12-21 04:06:46 +00:00

- Fix Makefile in case the user has/wants no OpenGL support

Reported by Piotr Hlawski

Approved by:	Danny Pansters <danny@ricin.com> (maintainer)
This commit is contained in:
Martin Wilke 2007-09-20 00:25:17 +00:00
parent 70f38e3e5e
commit 8a47f7b2ac
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=199787

View File

@ -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)