pkgsrc-Users archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
cmake doesn't find qmake
Hi.
I am having a hard time with pkgsrc again.
I wane build a pkg for qlandkartegt. It uses cmake and this in turn
searches qmake. But I can't cmake find qmake. What black-magic
pkgsrc-variables need to be set in what way to make cmake happy?
I tried several different variations, but can't get it wo work.
(This is in the pkgsrc-2009Q2 tree.)
Error:
-- Check if the system is big endian - little endian
CMake Error at /usr/pkg/share/cmake-2.6/Modules/FindQt4.cmake:1625 (MESSAGE):
Qt qmake not found!
Call Stack (most recent call first):
3rdparty/SerialPort/CMakeLists.txt:9 (find_package)
-- Configuring incomplete, errors occurred!
*** Error code 1
My Makefile, up to now:
# $NetBSD$
#
DISTNAME= qlandkartegt-0.17.1
CATEGORIES= geography
MASTER_SITES= ${MASTER_SITE_SOURCEFORGE:=qlandkartegt/}
MAINTAINER= jkunz@
HOMEPAGE= http://www.qlandkarte.org/
COMMENT= GPS visualisation and mapping tool, supports Garmin devices
LICENSE= gnu-gpl-v2
PKG_DESTDIR_SUPPORT= user-destdir
WRKSRC= ${WRKDIR}/qlandkartegt-0.17.1
USE_LANGUAGES= c c++
USE_CMAKE= yes
QMAKE= ${PREFIX}${QTDIR}/bin/qmake
CMAKE_ENV+= PATH="$$PATH":${PREFIX}${QTDIR}/bin
CONFIGURE_ENV+= PATH="$$PATH":${PREFIX}${QTDIR}/bin
CONFIGURE_ENV+= QMAKE=${QMAKE}
CMAKE_ENV+= QMAKE=${QMAKE}
CMAKE_ARGS+= -D QMAKE:PATH=${QMAKE}
CMAKE_ARGS+= -D PATH:STRING="$$PATH":${PREFIX}${QTDIR}/bin
CONFIGURE_ARGS+= QMAKE=${QMAKE}
test:
echo ${QMAKE}
.include "../../mk/bsd.pkg.mk"
.include "../../misc/proj/buildlink3.mk"
.include "../../x11/qt4-libs/buildlink3.mk"
.include "../../x11/qt4-tools/buildlink3.mk"
.include "../../geography/gdal-lib/buildlink3.mk"
.include "../../devel/cmake/buildlink3.mk"
--
tschüß,
Jochen
Homepage: http://www.unixag-kl.fh-kl.de/~jkunz/
Home |
Main Index |
Thread Index |
Old Index