mirror of
https://git.FreeBSD.org/ports.git
synced 2025-01-16 07:58:04 +00:00
7d5e6b666c
Mk/Uses/qmake.mk: - Add support for out-of-source builds - Add support for Qt 5 ports - Respect WITH_DEBUG Mk/bsd.qt.mk: - Massive rework for Qt 5 ports - Remove '-phonon' from global configure args, thus allow qt4-designer and qt4-qtconfig to be built without Phonon support [1] devel/qmake4: - Improve mkspecs for gcc (mainly sync with linux version) and clang devel/qt4-corelib: - Convert to USES=iconv - Remove ancient patch devel/qt4-designer: - Remove reference to WRKSRC from installed pkgconfig files [2] - Don't build Qt Designer plugin for Phonon from outdated Qt sources. Separate port for plugin will be committed later devel/qt4-assistant-adp, devel/qt4-libqtassistantclient: - Convert to USES=qmake Clean up Qt4 ports: - Update comments - Update description; use common description - Consistently use QT_INCDIR, QT_LIBDIR, etc. - Use options helpers - Convert to new LIB_DEPENDS syntax - Update DESKTOP_ENTRIES to avoid conflicts with Qt 5 ports - Rename/move several ports for unification with Qt 5 ports PR: ports/184620 [1] Reported by: Kevin Zheng <kevinz5000@gmail.com> PR: ports/181141 [2] Reported by: thierry PR: ports/185101 Exp-run by: bdrewery This is mostly solely avilla's work in area51, kudos to him! And a couple commits from myself, so you know who's collecting pointyhats :)
48 lines
1.6 KiB
Makefile
48 lines
1.6 KiB
Makefile
# $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>
|