[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: [RFH] migrating to cmake



#include <hallo.h>
* Bastian Venthur [Wed, Dec 06 2006, 12:56:37PM]:
> Hi,
> 
> one of my packages moved to cmake and I wonder how the classic
> 
> ./configure --host=$(DEB_HOST_GNU_TYPE) --build=$(DEB_BUILD_GNU_TYPE)
> --prefix=/usr --mandir=\$${prefix}/share/man
> --infodir=\$${prefix}/share/info CFLAGS="$(CFLAGS)" LDFLAGS="-Wl,-z,defs"
> 
> -line in debian/rules translates to cmake. The environment variables
> CFLAGS and LDFLAGS shouldn't be a problem, but how do I set the --host,
> --build, --prefix, --mandir and --infodir parameters?

You could rip some examples from 

http://svn.debian.org/wsvn/debburn/cdrkit/trunk/Makefile?op=file&rev=0&sc=0

Note that this is for an out-of-source build, in the "build" directory.

I don't know your package but you maybe could just throw this Makefile
into your directory and use it as-is... Maybe with reenabling the
wrapper rule (see below). Or just applying those cmake commands in
debian/rules.

AFAIK --host and --build are autoconfisms, do you really need them?

Eduard.

-- 
<HE> Ich bin verwirrt, wenn ich tippe während meine Freundin mich knutscht.



Reply to: