annotate src/qt.mk @ 3057:7ed3b62fa3ae

qt.mk: always set configure include and lib path options
author John W. Eaton <jwe@octave.org>
date Mon, 17 Jun 2013 19:12:46 -0400
parents b10e80dfcd3d
children 59401c8d25f8
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
2333
f653602a0500 Rebrand to new project name MXE
Volker Grabsch <vog@notjusthosting.com>
parents: 2179
diff changeset
1 # This file is part of MXE.
2353
99516e73b368 Move doc/index.html -> index.html
Volker Grabsch <vog@notjusthosting.com>
parents: 2349
diff changeset
2 # See index.html for further information.
452
ade2c475c772 new package: qt (by Mark Brand)
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
3
ade2c475c772 new package: qt (by Mark Brand)
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
4 PKG := qt
ade2c475c772 new package: qt (by Mark Brand)
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
5 $(PKG)_IGNORE :=
2734
ffdcd0f515bc update package qt
Mark Brand <mabrand@mabrand.nl>
parents: 2541
diff changeset
6 $(PKG)_CHECKSUM := bc352a283610e0cd2fe0dbedbc45613844090fcb
452
ade2c475c772 new package: qt (by Mark Brand)
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
7 $(PKG)_SUBDIR := $(PKG)-everywhere-opensource-src-$($(PKG)_VERSION)
2179
e1d7c2b4f285 update packages: lcms libpng qt suitesparse
Mark Brand <mabrand@mabrand.nl>
parents: 2170
diff changeset
8 $(PKG)_FILE := $(PKG)-everywhere-opensource-src-$($(PKG)_VERSION).tar.gz
2541
be6a32dfbaea update package qt
Mark Brand <mabrand@mabrand.nl>
parents: 2525
diff changeset
9 $(PKG)_URL := http://releases.qt-project.org/qt4/source/$($(PKG)_FILE)
3047
e7b7b0f663d3 Update qt.mk for native mingw buiild
John Donoghue <john.donoghue@ieee.org>
parents: 3041
diff changeset
10
2997
4f9b72cf7ee7 allow native builds too
John W. Eaton <jwe@octave.org>
parents: 2988
diff changeset
11 ifeq ($(MXE_SYSTEM),mingw)
3047
e7b7b0f663d3 Update qt.mk for native mingw buiild
John Donoghue <john.donoghue@ieee.org>
parents: 3041
diff changeset
12 ifeq ($(MXE_NATIVE_BUILD),yes)
3048
5ef49fb3299d treat gcc and binutils as build tools
John W. Eaton <jwe@octave.org>
parents: 3047
diff changeset
13 $(PKG)_DEPS := freetds openssl zlib libpng jpeg libmng tiff dbus
3047
e7b7b0f663d3 Update qt.mk for native mingw buiild
John Donoghue <john.donoghue@ieee.org>
parents: 3041
diff changeset
14
e7b7b0f663d3 Update qt.mk for native mingw buiild
John Donoghue <john.donoghue@ieee.org>
parents: 3041
diff changeset
15 $(PKG)_CONFIGURE_ENV := \
e7b7b0f663d3 Update qt.mk for native mingw buiild
John Donoghue <john.donoghue@ieee.org>
parents: 3041
diff changeset
16 OPENSSL_LIBS="`'$(MXE_PKG_CONFIG)' --libs-only-l openssl`" \
e7b7b0f663d3 Update qt.mk for native mingw buiild
John Donoghue <john.donoghue@ieee.org>
parents: 3041
diff changeset
17 QTDIR='$(HOST_PREFIX)'
2997
4f9b72cf7ee7 allow native builds too
John W. Eaton <jwe@octave.org>
parents: 2988
diff changeset
18
3047
e7b7b0f663d3 Update qt.mk for native mingw buiild
John Donoghue <john.donoghue@ieee.org>
parents: 3041
diff changeset
19 else
3048
5ef49fb3299d treat gcc and binutils as build tools
John W. Eaton <jwe@octave.org>
parents: 3047
diff changeset
20 $(PKG)_DEPS := libodbc++ postgresql freetds openssl zlib libpng jpeg libmng tiff sqlite dbus
3047
e7b7b0f663d3 Update qt.mk for native mingw buiild
John Donoghue <john.donoghue@ieee.org>
parents: 3041
diff changeset
21
e7b7b0f663d3 Update qt.mk for native mingw buiild
John Donoghue <john.donoghue@ieee.org>
parents: 3041
diff changeset
22 $(PKG)_CONFIGURE_ENV := \
e7b7b0f663d3 Update qt.mk for native mingw buiild
John Donoghue <john.donoghue@ieee.org>
parents: 3041
diff changeset
23 OPENSSL_LIBS="`'$(MXE_PKG_CONFIG)' --libs-only-l openssl`" \
e7b7b0f663d3 Update qt.mk for native mingw buiild
John Donoghue <john.donoghue@ieee.org>
parents: 3041
diff changeset
24 PSQL_LIBS="-lpq -lsecur32 `'$(MXE_PKG_CONFIG)' --libs-only-l openssl` -lws2_32" \
e7b7b0f663d3 Update qt.mk for native mingw buiild
John Donoghue <john.donoghue@ieee.org>
parents: 3041
diff changeset
25 SYBASE_LIBS="-lsybdb `'$(MXE_PKG_CONFIG)' --libs-only-l gnutls` -liconv -lws2_32"
e7b7b0f663d3 Update qt.mk for native mingw buiild
John Donoghue <john.donoghue@ieee.org>
parents: 3041
diff changeset
26
e7b7b0f663d3 Update qt.mk for native mingw buiild
John Donoghue <john.donoghue@ieee.org>
parents: 3041
diff changeset
27 endif
e7b7b0f663d3 Update qt.mk for native mingw buiild
John Donoghue <john.donoghue@ieee.org>
parents: 3041
diff changeset
28
2997
4f9b72cf7ee7 allow native builds too
John W. Eaton <jwe@octave.org>
parents: 2988
diff changeset
29 else
3048
5ef49fb3299d treat gcc and binutils as build tools
John W. Eaton <jwe@octave.org>
parents: 3047
diff changeset
30 $(PKG)_DEPS := postgresql freetds openssl zlib libpng jpeg libmng tiff sqlite dbus
2997
4f9b72cf7ee7 allow native builds too
John W. Eaton <jwe@octave.org>
parents: 2988
diff changeset
31
4f9b72cf7ee7 allow native builds too
John W. Eaton <jwe@octave.org>
parents: 2988
diff changeset
32 $(PKG)_CONFIGURE_ENV := \
3014
b6c7244a2f66 Use HOST_BINDIR, HOST_LIBDIR, and HOST_INCDIR instead of MXE_BINDIR, MXE_LIBDIR, and MXE_INCDIR. Attempt to use these variables consistently instead of using $(HOST_PREFIX)/bin, $(HOST_PREFIX)/lib, and $(HOST_PREFIX)/include
John W. Eaton <jwe@octave.org>
parents: 3012
diff changeset
33 CPPFLAGS='$(HOST_INCDIR)/dbus-1.0' \
b6c7244a2f66 Use HOST_BINDIR, HOST_LIBDIR, and HOST_INCDIR instead of MXE_BINDIR, MXE_LIBDIR, and MXE_INCDIR. Attempt to use these variables consistently instead of using $(HOST_PREFIX)/bin, $(HOST_PREFIX)/lib, and $(HOST_PREFIX)/include
John W. Eaton <jwe@octave.org>
parents: 3012
diff changeset
34 LDFLAGS='-Wl,-rpath-link,$(HOST_LIBDIR) -L$(HOST_LIBDIR)'
2997
4f9b72cf7ee7 allow native builds too
John W. Eaton <jwe@octave.org>
parents: 2988
diff changeset
35 endif
4f9b72cf7ee7 allow native builds too
John W. Eaton <jwe@octave.org>
parents: 2988
diff changeset
36
3057
7ed3b62fa3ae qt.mk: always set configure include and lib path options
John W. Eaton <jwe@octave.org>
parents: 3055
diff changeset
37 $(PKG)_CONFIGURE_INCLUDE_OPTION := -I '$(HOST_INCDIR)'
7ed3b62fa3ae qt.mk: always set configure include and lib path options
John W. Eaton <jwe@octave.org>
parents: 3055
diff changeset
38 $(PKG)_CONFIGURE_LIBPATH_OPTION := -L '$(HOST_LIBDIR)'
7ed3b62fa3ae qt.mk: always set configure include and lib path options
John W. Eaton <jwe@octave.org>
parents: 3055
diff changeset
39
3047
e7b7b0f663d3 Update qt.mk for native mingw buiild
John Donoghue <john.donoghue@ieee.org>
parents: 3041
diff changeset
40 ifeq ($(MXE_NATIVE_MINGW_BUILD),yes)
e7b7b0f663d3 Update qt.mk for native mingw buiild
John Donoghue <john.donoghue@ieee.org>
parents: 3041
diff changeset
41 $(PKG)_CONFIGURE_CMD := configure.exe
e7b7b0f663d3 Update qt.mk for native mingw buiild
John Donoghue <john.donoghue@ieee.org>
parents: 3041
diff changeset
42 $(PKG)_CONFIGURE_DATABASE_OPTION :=
e7b7b0f663d3 Update qt.mk for native mingw buiild
John Donoghue <john.donoghue@ieee.org>
parents: 3041
diff changeset
43 $(PKG)_CONFIGURE_PLATFORM_OPTION := -platform win32-g++
e7b7b0f663d3 Update qt.mk for native mingw buiild
John Donoghue <john.donoghue@ieee.org>
parents: 3041
diff changeset
44 $(PKG)_CONFIGURE_EXTRA_OPTION :=
2997
4f9b72cf7ee7 allow native builds too
John W. Eaton <jwe@octave.org>
parents: 2988
diff changeset
45 else
3047
e7b7b0f663d3 Update qt.mk for native mingw buiild
John Donoghue <john.donoghue@ieee.org>
parents: 3041
diff changeset
46 $(PKG)_CONFIGURE_CMD := configure
e7b7b0f663d3 Update qt.mk for native mingw buiild
John Donoghue <john.donoghue@ieee.org>
parents: 3041
diff changeset
47 $(PKG)_CONFIGURE_EXTRA_OPTION := \
e7b7b0f663d3 Update qt.mk for native mingw buiild
John Donoghue <john.donoghue@ieee.org>
parents: 3041
diff changeset
48 -prefix-install \
e7b7b0f663d3 Update qt.mk for native mingw buiild
John Donoghue <john.donoghue@ieee.org>
parents: 3041
diff changeset
49 -make libs \
e7b7b0f663d3 Update qt.mk for native mingw buiild
John Donoghue <john.donoghue@ieee.org>
parents: 3041
diff changeset
50 -openssl-linked \
e7b7b0f663d3 Update qt.mk for native mingw buiild
John Donoghue <john.donoghue@ieee.org>
parents: 3041
diff changeset
51 -no-glib \
e7b7b0f663d3 Update qt.mk for native mingw buiild
John Donoghue <john.donoghue@ieee.org>
parents: 3041
diff changeset
52 -no-gstreamer \
e7b7b0f663d3 Update qt.mk for native mingw buiild
John Donoghue <john.donoghue@ieee.org>
parents: 3041
diff changeset
53 -no-reduce-exports \
e7b7b0f663d3 Update qt.mk for native mingw buiild
John Donoghue <john.donoghue@ieee.org>
parents: 3041
diff changeset
54 -no-ssse3 \
e7b7b0f663d3 Update qt.mk for native mingw buiild
John Donoghue <john.donoghue@ieee.org>
parents: 3041
diff changeset
55 -no-rpath \
e7b7b0f663d3 Update qt.mk for native mingw buiild
John Donoghue <john.donoghue@ieee.org>
parents: 3041
diff changeset
56 -system-sqlite \
e7b7b0f663d3 Update qt.mk for native mingw buiild
John Donoghue <john.donoghue@ieee.org>
parents: 3041
diff changeset
57 -device-option PKG_CONFIG='$(MXE_PKG_CONFIG)' \
e7b7b0f663d3 Update qt.mk for native mingw buiild
John Donoghue <john.donoghue@ieee.org>
parents: 3041
diff changeset
58 -force-pkg-config \
e7b7b0f663d3 Update qt.mk for native mingw buiild
John Donoghue <john.donoghue@ieee.org>
parents: 3041
diff changeset
59 -dbus-linked \
e7b7b0f663d3 Update qt.mk for native mingw buiild
John Donoghue <john.donoghue@ieee.org>
parents: 3041
diff changeset
60 -v
e7b7b0f663d3 Update qt.mk for native mingw buiild
John Donoghue <john.donoghue@ieee.org>
parents: 3041
diff changeset
61
2997
4f9b72cf7ee7 allow native builds too
John W. Eaton <jwe@octave.org>
parents: 2988
diff changeset
62 ifeq ($(MXE_SYSTEM),mingw)
3041
622b49d8b178 don't set qt CROSS_COMPILE device option for native builds
John W. Eaton <jwe@octave.org>
parents: 3031
diff changeset
63 $(PKG)_CONFIGURE_CROSS_COMPILE_OPTION := \
622b49d8b178 don't set qt CROSS_COMPILE device option for native builds
John W. Eaton <jwe@octave.org>
parents: 3031
diff changeset
64 -device-option CROSS_COMPILE=$(MXE_TOOL_PREFIX)
2997
4f9b72cf7ee7 allow native builds too
John W. Eaton <jwe@octave.org>
parents: 2988
diff changeset
65 $(PKG)_CONFIGURE_PLATFORM_OPTION := -xplatform win32-g++-4.6
4f9b72cf7ee7 allow native builds too
John W. Eaton <jwe@octave.org>
parents: 2988
diff changeset
66 $(PKG)_CONFIGURE_DATABASE_OPTION := \
4f9b72cf7ee7 allow native builds too
John W. Eaton <jwe@octave.org>
parents: 2988
diff changeset
67 -qt-sql-sqlite -qt-sql-odbc -qt-sql-psql -qt-sql-tds -D Q_USE_SYBASE
4f9b72cf7ee7 allow native builds too
John W. Eaton <jwe@octave.org>
parents: 2988
diff changeset
68 endif
4f9b72cf7ee7 allow native builds too
John W. Eaton <jwe@octave.org>
parents: 2988
diff changeset
69 endif
452
ade2c475c772 new package: qt (by Mark Brand)
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
70
ade2c475c772 new package: qt (by Mark Brand)
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
71 define $(PKG)_UPDATE
2525
4d0f3a9da57e all packages: use $(WGET) portability variable
Tony Theodore <tonyt@logyst.com>
parents: 2446
diff changeset
72 $(WGET) -q -O- 'http://qt.gitorious.org/qt/qt/commits' | \
452
ade2c475c772 new package: qt (by Mark Brand)
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
73 grep '<li><a href="/qt/qt/commit/' | \
840
77ecd36317c2 corrected version recognition regexes of many packages
Volker Grabsch <vog@notjusthosting.com>
parents: 822
diff changeset
74 $(SED) -n 's,.*<a[^>]*>v\([0-9][^<-]*\)<.*,\1,p' | \
452
ade2c475c772 new package: qt (by Mark Brand)
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
75 tail -1
ade2c475c772 new package: qt (by Mark Brand)
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
76 endef
ade2c475c772 new package: qt (by Mark Brand)
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
77
ade2c475c772 new package: qt (by Mark Brand)
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
78 define $(PKG)_BUILD
3047
e7b7b0f663d3 Update qt.mk for native mingw buiild
John Donoghue <john.donoghue@ieee.org>
parents: 3041
diff changeset
79 ## syncqt needs QTDIR set to find the sources
2013
378b4cabcda2 update package qt
Mark Brand <mabrand@mabrand.nl>
parents: 1988
diff changeset
80 cd '$(1)' && QTDIR='$(1)' ./bin/syncqt
791
4d838a936a8f fixed compile tests in ./configure of package qt
Mark Brand <mabrand@mabrand.nl>
parents: 789
diff changeset
81 cd '$(1)' && \
2997
4f9b72cf7ee7 allow native builds too
John W. Eaton <jwe@octave.org>
parents: 2988
diff changeset
82 $($(PKG)_CONFIGURE_ENV) \
3047
e7b7b0f663d3 Update qt.mk for native mingw buiild
John Donoghue <john.donoghue@ieee.org>
parents: 3041
diff changeset
83 ./$($(PKG)_CONFIGURE_CMD) \
2997
4f9b72cf7ee7 allow native builds too
John W. Eaton <jwe@octave.org>
parents: 2988
diff changeset
84 $($(PKG)_CONFIGURE_INCLUDE_OPTION) \
3047
e7b7b0f663d3 Update qt.mk for native mingw buiild
John Donoghue <john.donoghue@ieee.org>
parents: 3041
diff changeset
85 $($(PKG)_CONFIGURE_LIBPATH_OPTION) \
452
ade2c475c772 new package: qt (by Mark Brand)
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
86 -opensource \
ade2c475c772 new package: qt (by Mark Brand)
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
87 -confirm-license \
1015
7997c04d4bef upgrade package qt to 4.7.0-beta1 (by Mark Brand)
Volker Grabsch <vog@notjusthosting.com>
parents: 990
diff changeset
88 -fast \
2997
4f9b72cf7ee7 allow native builds too
John W. Eaton <jwe@octave.org>
parents: 2988
diff changeset
89 $($(PKG)_CONFIGURE_PLATFORM_OPTION) \
3041
622b49d8b178 don't set qt CROSS_COMPILE device option for native builds
John W. Eaton <jwe@octave.org>
parents: 3031
diff changeset
90 $($(PKG)_CONFIGURE_CROSS_COMPILE_OPTION) \
3047
e7b7b0f663d3 Update qt.mk for native mingw buiild
John Donoghue <john.donoghue@ieee.org>
parents: 3041
diff changeset
91 $($(PKG)_CONFIGURE_EXTRA_OPTION) \
486
8eda0b6ec42a disable debug information for package qt
Volker Grabsch <vog@notjusthosting.com>
parents: 485
diff changeset
92 -release \
452
ade2c475c772 new package: qt (by Mark Brand)
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
93 -exceptions \
2927
ee20182f07d4 shared libraries for qt
John W. Eaton <jwe@octave.org>
parents: 2745
diff changeset
94 -shared \
3012
100e618349f7 Improve handling of prefix directories by defining HOST_PREFIX and
John W. Eaton <jwe@octave.org>
parents: 3006
diff changeset
95 -prefix '$(HOST_PREFIX)' \
452
ade2c475c772 new package: qt (by Mark Brand)
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
96 -script \
1910
ce3b84b9514f package qt: build with -no-iconv
Nikos Chantziaras <realnc@arcor.de>
parents: 1909
diff changeset
97 -no-iconv \
470
a07d9f69e2ee add OpenGL support to package qt (by Martin Lambers)
Volker Grabsch <vog@notjusthosting.com>
parents: 468
diff changeset
98 -opengl desktop \
2445
328cf3f5c63c package qt: stop building static qtwebkit
Mark Brand <mabrand@mabrand.nl>
parents: 2428
diff changeset
99 -no-webkit \
509
e97947e7d45e update version of package qt (by Mark Brand)
Volker Grabsch <vog@notjusthosting.com>
parents: 497
diff changeset
100 -no-phonon \
452
ade2c475c772 new package: qt (by Mark Brand)
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
101 -no-phonon-backend \
ade2c475c772 new package: qt (by Mark Brand)
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
102 -accessibility \
ade2c475c772 new package: qt (by Mark Brand)
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
103 -nomake demos \
ade2c475c772 new package: qt (by Mark Brand)
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
104 -nomake docs \
ade2c475c772 new package: qt (by Mark Brand)
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
105 -nomake examples \
2997
4f9b72cf7ee7 allow native builds too
John W. Eaton <jwe@octave.org>
parents: 2988
diff changeset
106 $($(PKG)_CONFIGURE_DATABASE_OPTION) \
548
08b6c299a522 several improvements to package qt (by Mark Brand)
Volker Grabsch <vog@notjusthosting.com>
parents: 520
diff changeset
107 -system-zlib \
578
41c0ac9326f2 improvements for package qt (by Mark Brand)
Volker Grabsch <vog@notjusthosting.com>
parents: 576
diff changeset
108 -system-libpng \
41c0ac9326f2 improvements for package qt (by Mark Brand)
Volker Grabsch <vog@notjusthosting.com>
parents: 576
diff changeset
109 -system-libjpeg \
573
57166e6490d2 use more external libraries in package qt (by Mark Brand)
Volker Grabsch <vog@notjusthosting.com>
parents: 570
diff changeset
110 -system-libtiff \
1380
a21aabc31b87 package qt: improved handling of liblcms dependency
Mark Brand <mabrand@mabrand.nl>
parents: 1363
diff changeset
111 -system-libmng \
3047
e7b7b0f663d3 Update qt.mk for native mingw buiild
John Donoghue <john.donoghue@ieee.org>
parents: 3041
diff changeset
112 -no-sse2
452
ade2c475c772 new package: qt (by Mark Brand)
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
113
3047
e7b7b0f663d3 Update qt.mk for native mingw buiild
John Donoghue <john.donoghue@ieee.org>
parents: 3041
diff changeset
114 # need to 'install' mkspecs for the native mingw to build during its build
e7b7b0f663d3 Update qt.mk for native mingw buiild
John Donoghue <john.donoghue@ieee.org>
parents: 3041
diff changeset
115 if [ "$(MXE_NATIVE_MINGW_BUILD)" = yes ]; then \
e7b7b0f663d3 Update qt.mk for native mingw buiild
John Donoghue <john.donoghue@ieee.org>
parents: 3041
diff changeset
116 cp -r '$(1)/mkspecs' '$(HOST_PREFIX)/'; \
e7b7b0f663d3 Update qt.mk for native mingw buiild
John Donoghue <john.donoghue@ieee.org>
parents: 3041
diff changeset
117 fi
e7b7b0f663d3 Update qt.mk for native mingw buiild
John Donoghue <john.donoghue@ieee.org>
parents: 3041
diff changeset
118
e7b7b0f663d3 Update qt.mk for native mingw buiild
John Donoghue <john.donoghue@ieee.org>
parents: 3041
diff changeset
119 $(MAKE) -C '$(1)' -j '$(JOBS)'
659
c96eeb56f5de improved escaping in the build rules of package qt
Volker Grabsch <vog@notjusthosting.com>
parents: 648
diff changeset
120 $(MAKE) -C '$(1)' -j 1 install
3051
9cb1ce8082a4 Update qt.mk to install .pc files in native mingw
John Donoghue <john.donoghue@ieee.org>
parents: 3048
diff changeset
121
9cb1ce8082a4 Update qt.mk to install .pc files in native mingw
John Donoghue <john.donoghue@ieee.org>
parents: 3048
diff changeset
122 # native build doesnt seem to succeed with installing pkgconfig files to prefix
9cb1ce8082a4 Update qt.mk to install .pc files in native mingw
John Donoghue <john.donoghue@ieee.org>
parents: 3048
diff changeset
123 # in addition, .pc files have the wrong paths, mangled lib names
9cb1ce8082a4 Update qt.mk to install .pc files in native mingw
John Donoghue <john.donoghue@ieee.org>
parents: 3048
diff changeset
124 if [ "$(MXE_NATIVE_MINGW_BUILD)" = yes ]; then \
9cb1ce8082a4 Update qt.mk to install .pc files in native mingw
John Donoghue <john.donoghue@ieee.org>
parents: 3048
diff changeset
125 find $(1)/lib/pkgconfig/*.pc -exec $(SED) -i \
9cb1ce8082a4 Update qt.mk to install .pc files in native mingw
John Donoghue <john.donoghue@ieee.org>
parents: 3048
diff changeset
126 -e 's,\(.*\)_location=.*,\1_location=$(HOST_BINDIR)/\1,g' \
9cb1ce8082a4 Update qt.mk to install .pc files in native mingw
John Donoghue <john.donoghue@ieee.org>
parents: 3048
diff changeset
127 -e 's,\(Libs:.* -l\).*[\\/]\([A-Za-z0-9]*\),\1\2,g' \
9cb1ce8082a4 Update qt.mk to install .pc files in native mingw
John Donoghue <john.donoghue@ieee.org>
parents: 3048
diff changeset
128 '{}' ';' ; \
3052
0a5631d32cd9 Update copy of native mingw .pc files to cp -f
John Donoghue <john.donoghue@ieee.org>
parents: 3051
diff changeset
129 cp -f '$(1)/lib/pkgconfig/'*.pc '$(HOST_LIBDIR)/pkgconfig/'; \
3051
9cb1ce8082a4 Update qt.mk to install .pc files in native mingw
John Donoghue <john.donoghue@ieee.org>
parents: 3048
diff changeset
130 fi
9cb1ce8082a4 Update qt.mk to install .pc files in native mingw
John Donoghue <john.donoghue@ieee.org>
parents: 3048
diff changeset
131
3031
951da75fd09c improve handling of cross tool prefix
John W. Eaton <jwe@octave.org>
parents: 3014
diff changeset
132 $(LN_SF) '$(HOST_BINDIR)/moc' '$(BUILD_TOOLS_PREFIX)/bin/$(MXE_TOOL_PREFIX)moc'
3055
b10e80dfcd3d qt.mk: fix typo in command to make rcc link
John W. Eaton <jwe@octave.org>
parents: 3052
diff changeset
133 $(LN_SF) '$(HOST_BINDIR)/rcc' '$(BUILD_TOOLS_PREFIX)/bin/$(MXE_TOOL_PREFIX)rcc'
3031
951da75fd09c improve handling of cross tool prefix
John W. Eaton <jwe@octave.org>
parents: 3014
diff changeset
134 $(LN_SF) '$(HOST_BINDIR)/uic' '$(BUILD_TOOLS_PREFIX)/bin/$(MXE_TOOL_PREFIX)uic'
951da75fd09c improve handling of cross tool prefix
John W. Eaton <jwe@octave.org>
parents: 3014
diff changeset
135 $(LN_SF) '$(HOST_BINDIR)/qmake' '$(BUILD_TOOLS_PREFIX)/bin/$(MXE_TOOL_PREFIX)qmake'
660
f77810598227 test program for package qt
Volker Grabsch <vog@notjusthosting.com>
parents: 659
diff changeset
136
2927
ee20182f07d4 shared libraries for qt
John W. Eaton <jwe@octave.org>
parents: 2745
diff changeset
137 # cd '$(1)/tools/assistant' && '$(1)/bin/qmake' assistant.pro
ee20182f07d4 shared libraries for qt
John W. Eaton <jwe@octave.org>
parents: 2745
diff changeset
138 # $(MAKE) -C '$(1)/tools/assistant' -j '$(JOBS)' install
2446
42295c6227c2 package qt: build more tools
Mark Brand <mabrand@mabrand.nl>
parents: 2445
diff changeset
139
2927
ee20182f07d4 shared libraries for qt
John W. Eaton <jwe@octave.org>
parents: 2745
diff changeset
140 # cd '$(1)/tools/designer' && '$(1)/bin/qmake' designer.pro
ee20182f07d4 shared libraries for qt
John W. Eaton <jwe@octave.org>
parents: 2745
diff changeset
141 # $(MAKE) -C '$(1)/tools/designer' -j '$(JOBS)' install
2446
42295c6227c2 package qt: build more tools
Mark Brand <mabrand@mabrand.nl>
parents: 2445
diff changeset
142
2927
ee20182f07d4 shared libraries for qt
John W. Eaton <jwe@octave.org>
parents: 2745
diff changeset
143 # # at least some of the qdbus tools are useful on target
ee20182f07d4 shared libraries for qt
John W. Eaton <jwe@octave.org>
parents: 2745
diff changeset
144 # cd '$(1)/tools/qdbus' && '$(1)/bin/qmake' qdbus.pro
ee20182f07d4 shared libraries for qt
John W. Eaton <jwe@octave.org>
parents: 2745
diff changeset
145 # $(MAKE) -C '$(1)/tools/qdbus' -j '$(JOBS)' install
2997
4f9b72cf7ee7 allow native builds too
John W. Eaton <jwe@octave.org>
parents: 2988
diff changeset
146
2985
e6ba75a96089 Fix to install lrelease from the linquist tools.
John Donoghue <john.onoghue@ieee.org>
parents: 2927
diff changeset
147 # lrelease (from linguist) needed by octave for GUI build
e6ba75a96089 Fix to install lrelease from the linquist tools.
John Donoghue <john.onoghue@ieee.org>
parents: 2927
diff changeset
148 $(MAKE) -C '$(1)/tools/linguist/lrelease' -j '$(JOBS)' install
3031
951da75fd09c improve handling of cross tool prefix
John W. Eaton <jwe@octave.org>
parents: 3014
diff changeset
149 $(LN_SF) '$(HOST_BINDIR)/lrelease' '$(BUILD_TOOLS_PREFIX)/bin/$(MXE_TOOL_PREFIX)lrelease'
1538
c6b5e37cf4cb package qt: build and install qdbus tools
Mark Brand <mabrand@mabrand.nl>
parents: 1532
diff changeset
150
2927
ee20182f07d4 shared libraries for qt
John W. Eaton <jwe@octave.org>
parents: 2745
diff changeset
151 # mkdir '$(1)/test-qt'
3031
951da75fd09c improve handling of cross tool prefix
John W. Eaton <jwe@octave.org>
parents: 3014
diff changeset
152 # cd '$(1)/test-qt' && '$(MXE_QMAKE)' '$(PWD)/$(2).pro'
2927
ee20182f07d4 shared libraries for qt
John W. Eaton <jwe@octave.org>
parents: 2745
diff changeset
153 # $(MAKE) -C '$(1)/test-qt' -j '$(JOBS)'
3014
b6c7244a2f66 Use HOST_BINDIR, HOST_LIBDIR, and HOST_INCDIR instead of MXE_BINDIR, MXE_LIBDIR, and MXE_INCDIR. Attempt to use these variables consistently instead of using $(HOST_PREFIX)/bin, $(HOST_PREFIX)/lib, and $(HOST_PREFIX)/include
John W. Eaton <jwe@octave.org>
parents: 3012
diff changeset
154 # $(INSTALL) -m755 '$(1)/test-qt/release/test-qt.exe' '$(HOST_BINDIR)'
452
ade2c475c772 new package: qt (by Mark Brand)
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
155 endef