]> git.donarmstrong.com Git - debhelper.git/commitdiff
update from Kel
authorJoey Hess <joey@gnu.kitenet.net>
Thu, 28 Jan 2010 05:48:26 +0000 (00:48 -0500)
committerJoey Hess <joey@gnu.kitenet.net>
Thu, 28 Jan 2010 05:48:26 +0000 (00:48 -0500)
Here is yet another revision which sets the PREFIX variable to '/usr' which
seems commonly used by Qt projects. Also removed the -e test discussed
previously.

Debian/Debhelper/Buildsystem/qmake.pm

index 823a70e385d180e7bbe8687f711b3badd52d89ac..4e67f918e780561d586a67de0713ac32331a85ae 100644 (file)
@@ -20,7 +20,7 @@ sub check_auto_buildable {
        my @projects=glob($this->get_sourcepath('*.pro'));
        my $ret=0;
 
-       if (@projects > 0 && -e $projects[0]) {
+       if (@projects > 0) {
                $ret=1;
                # Existence of a Makefile generated by qmake indicates qmake
                # class has already been used by a prior build step, so should
@@ -64,6 +64,7 @@ sub configure {
                push @flags, "QMAKE_LFLAGS_DEBUG=$ENV{LDFLAGS}";
        }
        push @flags, "QMAKE_STRIP=:";
+       push @flags, "PREFIX=/usr";
 
        $this->doit_in_builddir('qmake', @options, @flags, @_);
 }
@@ -77,4 +78,4 @@ sub install {
        $this->SUPER::install($destdir, "INSTALL_ROOT=$destdir", @_);
 }
 
-1;
+1