[CMake] kdesvn make problem

Yuan, Jue yuanjue02 at gmail.com
Sun Sep 17 08:08:28 EDT 2006


Hi all,

I am the maintainer of kdesvn for FreeBSD. As kdesvn has changed its
make system to CMake, I think it is time to change the port of kdesvn
according to this. I'm not familiar with CMake before, and I end up
with some errors when trying to apply the change.

The error occurs after configuring:

...
-- Configuring done
-- Generating done
-- Build files have been written to:
/usr/home/maver/Develop/SVN_work/kdesvn/work/kdesvn-0.9.3-build
===>  Building for kdesvn-0.9.3
src/CMakeFiles/kdesvn.dir/flags.make:5: *** missing separator.  Stop.
gmake[1]: *** [src/CMakeFiles/kdesvn.dir/all] Error 2
gmake: *** [all] Error 2
*** Error code 2

Stop in /usr/home/maver/Develop/SVN_work/kdesvn.

Could anyone enlighten me on this? Any ideas would be very appreciated. :-)

//////////////////////////////////////////////////////////////////////////////////////////
The corresponding file flags.make is:
# CMAKE generated file: DO NOT EDIT!
# Generated by "Unix Makefiles" Generator, CMake Version 2.4

CXX_FLAGS = -O2 -fno-strict-aliasing -pipe -I/usr/X11R6/include
-I/usr/local/include -Wnon-virtual-dtor -Wno-long-long -Wundef
-Wcast-align -Wconversion -Wchar-subscripts -Wall -W -Wpointer-arith
-Wwrite-strings -O2 -Wformat-security -Wmissing-format-attribute
-fno-exceptions -fno-check-new -fno-common -fexceptions -O3 -DNDEBUG
-I/usr/local/include -I/usr/X11R6/include -I/usr/local/include/apr-1
-I/usr/local/include/subversion-1
-I/usr/home/maver/Develop/SVN_work/kdesvn/work/kdesvn-0.9.3/src
-I/usr/home/maver/Develop/SVN_work/kdesvn/work/kdesvn-0.9.3/src/svnfrontend
-I/usr/home/maver/Develop/SVN_work/kdesvn/work/kdesvn-0.9.3
-I/usr/home/maver/Develop/SVN_work/kdesvn/work/kdesvn-0.9.3-build/src
-I/usr/home/maver/Develop/SVN_work/kdesvn/work/kdesvn-0.9.3-build/src/svnfrontend
-I/usr/home/maver/Develop/SVN_work/kdesvn/work/kdesvn-0.9.3-build
-DQT_CLEAN_NAMESPACE -D_GNU_SOURCE
 -DQT_SHARED -DQT_NO_DEBUG -DQT_THREAD_SUPPORT -D_REENTRANT

//////////////////////////////////////////////////////////////////////////////////////////
The Makefile for port I use is as follows(snippet):

WRKSRC=		${WRKDIR}/${DISTNAME}-build
PATCH_WRKSRC=	${WRKDIR}/${DISTNAME}

BUILD_DEPENDS=	cmake:${PORTSDIR}/devel/cmake

CMAKE_ARGS=	-DCMAKE_BUILD_TYPE:STRING=Release \
		-DCMAKE_INSTALL_PREFIX:PATH=${PREFIX} \
		-DCMAKE_CXX_FLAGS="${CXXFLAGS} -I${X11BASE}/include -I${LOCALBASE}/include"

LIB_DEPENDS+=	apr-1:${PORTSDIR}/devel/apr-svn \
		svn_client-1:${PORTSDIR}/devel/subversion \
		neon:${PORTSDIR}/www/neon

USE_BZIP2=	yes
USE_KDELIBS_VER=3
USE_GMAKE=	yes
INSTALLS_SHLIB=	yes

.include <bsd.port.pre.mk>

.if ${OSVERSION} < 500000
BROKEN=		Does not compile on 4.x
.endif

post-extract:
	${MKDIR} ${WRKSRC}

do-configure:
	@(cd ${WRKSRC}; \
	${LOCALBASE}/bin/cmake ${CMAKE_ARGS} ${PATCH_WRKSRC})

.include <bsd.port.post.mk>

-- 
Best Regards
Yuan, Jue @ http://www.yuanjue.net


More information about the CMake mailing list