diff options
author | lofi <lofi@FreeBSD.org> | 2007-08-04 03:11:00 +0800 |
---|---|---|
committer | lofi <lofi@FreeBSD.org> | 2007-08-04 03:11:00 +0800 |
commit | 4c1a32ee349744502fc285d0893dd968eb6affac (patch) | |
tree | e685f45d12789c6ad9bbfb8b88f67760e8adf761 /Mk | |
parent | 30e9778faf807f59142bb0eeb807d4957645e7db (diff) | |
download | freebsd-ports-gnome-4c1a32ee349744502fc285d0893dd968eb6affac.tar.gz freebsd-ports-gnome-4c1a32ee349744502fc285d0893dd968eb6affac.tar.zst freebsd-ports-gnome-4c1a32ee349744502fc285d0893dd968eb6affac.zip |
Add a QMAKEFLAGS variable that contains some useful mappings of
standard make and environment variables to their qmake counterparts:
QMAKE_CC="${CC}" QMAKE_CXX="${CXX}" QMAKE_LINK_SHLIB="${CXX}"
QMAKE_LINK="${CXX}" QMAKE_CFLAGS="${CFLAGS}"
QMAKE_CXXFLAGS="${CXXFLAGS}" QMAKE_CFLAGS_THREAD="${PTHREAD_CFLAGS}"
QMAKE_LFLAGS_THREAD="${PTHREAD_LIBS}"
This is mostly useful for ports which call ${QMAKE} directly in some
target and want to override some of the defaults in qmake.conf.
Diffstat (limited to 'Mk')
-rw-r--r-- | Mk/bsd.qt.mk | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/Mk/bsd.qt.mk b/Mk/bsd.qt.mk index bd216d8df552..99011b34980d 100644 --- a/Mk/bsd.qt.mk +++ b/Mk/bsd.qt.mk @@ -51,6 +51,11 @@ MOC?= ${QT_PREFIX}/bin/moc-qt4 UIC?= ${QT_PREFIX}/bin/uic-qt4 QMAKE?= ${QT_PREFIX}/bin/qmake-qt4 QMAKESPEC?= ${QT_PREFIX}/share/qt4/mkspecs/freebsd-g++ +QMAKEFLAGS+= QMAKE_CC="${CC}" QMAKE_CXX="${CXX}" QMAKE_LINK_SHLIB="${CXX}" \ + QMAKE_LINK="${CXX}" QMAKE_CFLAGS="${CFLAGS}" \ + QMAKE_CXXFLAGS="${CXXFLAGS}" \ + QMAKE_CFLAGS_THREAD="${PTHREAD_CFLAGS}" \ + QMAKE_LFLAGS_THREAD="${PTHREAD_LIBS}" .if ${OSVERSION} < 700042 && ${ARCH} == "amd64" QTCPPFLAGS?= -fno-gcse |