mingw-cross-env-list
[Top][All Lists]
Advanced

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

[Mingw-cross-env-list] Qt on Debian/kFreeBSD


From: Tony Theodore
Subject: [Mingw-cross-env-list] Qt on Debian/kFreeBSD
Date: Sun, 20 Mar 2011 06:35:04 +1100

Hi Mark,

I've been working on getting Debian/kFreeBSD running and have a
question about ./configure in qt.

The Debian build system [1] copies 'mkspecs/linux-g++' to
'mkspecs/glibc-g++' and then deletes the include directory:

    # Remove include directory. Then ./configure will take care of calling
    # syncqt and regenerating it.
    rm -rf include

At the moment, I'm wrapping this in:

    [ `uname -s` = 'GNU/kFreeBSD' ] && \
    cp -a '$(1)/mkspecs/linux-g++' '$(1)/mkspecs/glibc-g++' && \
    rm -rf '$(1)/include'
    cd '$(1)' && \ ...etc

Do I need to worry about only doing this conditionally? The copy wont
affect any other systems, but will deleting and re-generating the
include directory have any impact?

If deleting the include dir isn't something we want to do across the
board, is the

[ `uname -s` = 'GNU/kFreeBSD' ] &&

test a good approach, or should I patch configure in some way to
delete it (I'm already patching it to detect the platform [2])?

Cheers,

Tony


[1] 
http://git.debian.org/?p=pkg-kde/qt/qt4-x11.git;a=blob_plain;f=debian/rules;hb=HEAD
[2]

+--- qt-everywhere-opensource-src-4.7.2/configure.orig  2011-03-16
18:27:09.000000000 +1100
++++ qt-everywhere-opensource-src-4.7.2/configure       2011-03-16
18:28:55.000000000 +1100
+@@ -2638,6 +2638,9 @@
+      GNU:*)
+         PLATFORM=hurd-g++
+         ;;
++     GNU/kFreeBSD:*)
++        PLATFORM=glibc-g++
++        ;;
+      dgux:*)
+         PLATFORM=dgux-g++
+         ;;



reply via email to

[Prev in Thread] Current Thread [Next in Thread]