f3c180c343
* Update Qt5 to 5.7.1 * Move Qt4 binaries to lib/qt4/bin * Move Qt5 libraries to lib/qt5/lib By moving the libraries we should finally be able to get rid of the inplace upgrade bug (see ports bugs 194088, 195105 and 198720): when Qt5's libraries were lying in /usr/local/lib, which would often get added by pkgconfig to the linker paths via dependencies, the already installed libraries were linked against, instead of the ones that were being built. This forced us to make sure, that -L${WRKSRC}/lib was always coming before -L/usr/local/lib in the linker flags. With this change this should no longer be the case. * Rename some ports to match the rest (foo-qtX -> qtX-foo) * Depend on new port misc/qtchooser [see UPDATING & CHANGES] There are several new Qt5 ports which all have been created by Marie Loise Nolden <nolden@kde.org>. Thanks again. PR: 216797 Exp-Run by: antoine Reviewed by: rakuco, mat, groot_kde.org Approved by: rakuco (mentor) Differential Revision: https://reviews.freebsd.org/D9213
47 lines
1.6 KiB
Text
47 lines
1.6 KiB
Text
# $FreeBSD$
|
|
|
|
_OBJS!= ${MAKE} -f Makefile.unix -V OBJS -V QOBJS
|
|
# We'd like to avoid using qconfig.cpp, but can't -- see the comment
|
|
# next to -DHAVE_CONFIG_CPP below:
|
|
#_OBJS:= ${_OBJS:S/qconfig.o//}
|
|
SRCS:= ${_OBJS:.o=.cpp}
|
|
NO_MAN= true # qmake.1 anyone?
|
|
|
|
.PATH: ${.CURDIR} ${.CURDIR:H}/src/corelib/tools ${.CURDIR:H}/src/corelib/io \
|
|
${.CURDIR:H}/src/corelib/global ${.CURDIR:H}/src/corelib/plugin \
|
|
${.CURDIR:H}/src/corelib/kernel ${.CURDIR:H}/src/corelib/codecs \
|
|
${.CURDIR:H}/src/corelib/xml ${.CURDIR:H}/src/3rdparty/md4 \
|
|
${.CURDIR:H}/src/3rdparty/md5 ${.CURDIR:H}/src/3rdparty/sha1 \
|
|
${.CURDIR:H}/tools/shared/symbian ${.CURDIR:H}/tools/shared/windows
|
|
|
|
CXXFLAGS+=-I${.CURDIR:H}/mkspecs/freebsd-${QMAKE_COMPILER}
|
|
|
|
.for s in src/corelib/arch/generic src/corelib/global src/corelib/tools \
|
|
src/corelib/kernel src/corelib/codecs \
|
|
src/3rdparty/md5 src/3rdparty/md4 src/3rdparty/sha1 \
|
|
tools/shared include/QtCore include
|
|
CXXFLAGS+=-I${.CURDIR:H}/$s
|
|
.endfor
|
|
|
|
.for g in /. /unix /win32 /mac /symbian /integrity
|
|
.PATH: ${.CURDIR}/generators$g
|
|
CXXFLAGS+=-I${.CURDIR}/generators$g
|
|
.endfor
|
|
|
|
CXXFLAGS+=-I. -I"${FILESDIR}"
|
|
|
|
CXXFLAGS+=-DQT_NO_TEXTCODEC -DQT_NO_UNICODETABLES -DQT_NO_COMPONENT \
|
|
-DQT_NO_STL -DQT_BUILD_QMAKE -DQT_NO_COMPRESS -DHAVE_QCONFIG_CPP \
|
|
-DQT_NO_THREAD -DQT_NO_QOBJECT -DQT_NO_GEOM_VARIANT \
|
|
-DQT_BOOTSTRAPPED -DQMAKE_OPENSOURCE_EDITION
|
|
|
|
# I guess, qconfig.cpp used to be optional, but no longer is -- due to
|
|
# bit-rot in Qt sources. So we still have to compile it, but, by not
|
|
# adding the following define, we reduce the seemingly needless usage of
|
|
# it:
|
|
# -DHAVE_QCONFIG_CPP
|
|
|
|
PROG_CXX=${QMAKE:T}
|
|
BINDIR= ${PREFIX}/${QT_BINDIR_REL}
|
|
|
|
.include <bsd.prog.mk>
|