1 ################################################################################
3 # qt4-qconf.cygclass - functions for building QConf-based Qt4 packages
5 # Part of cygport - Cygwin packaging application
6 # Copyright (C) 2006-2020 Cygport authors
7 # Provided by the Cygwin project <https://cygwin.com/>
9 # cygport is free software: you can redistribute it and/or modify
10 # it under the terms of the GNU General Public License as published by
11 # the Free Software Foundation, either version 3 of the License, or
12 # (at your option) any later version.
14 # cygport is distributed in the hope that it will be useful,
15 # but WITHOUT ANY WARRANTY; without even the implied warranty of
16 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
17 # GNU General Public License for more details.
19 # You should have received a copy of the GNU General Public License
20 # along with cygport. If not, see <https://www.gnu.org/licenses/>.
22 ################################################################################
24 #****ih* Cygclasses/qt4-qconf.cygclass
28 # This cygclass builds Qt4-based packages which use the QConf configuration
29 # system together with qmake project files.
31 # qt4.cygclass, qt4-qmake.cygclass
36 #****iC* qt4-qconf.cygclass/cygqconf4
40 # Generates a QConf configure script based on the .qc file in the same directory.
43 if ! find . -maxdepth 1 -name '*.qc'
45 error "cygqconf4: could not find .qc file"
49 qconf || error "qconf failed"
52 #****iC* qt4-qconf.cygclass/qt4_qconf_compile
55 # qt4_qconf_compile [OPTIONS]
57 # Runs the configure script, passing any options received, then calls cygmake
58 # to compile the package.
63 error "qt4_qconf_compile: could not find configure file"
66 ./configure --prefix=$(__host_prefix) --qtdir=${QT4_QTDIR} ${@} || error "qconf configure failed"
71 #****io* qt4-qconf.cygclass/src_compile (qt4-qconf)
81 readonly -f cygqconf4 qt4_qconf_compile