comparison src/qt.mk @ 3293:cf6f40cededb

Support file list generation in packages. For the following modules: - arpack - blas - build-autoconf - build-automake - build-cmake - build-gperf - build-libtool - build-msvctools - build-pkg-config - build-texinfo - bzip2 - curl - dbus - expat - fftw - fltk - fontconfig - freetype - gettext - glpk - gmp - gnuplot - gnutls - graphicsmagick - hdf5 - jasper - jpeg - lapack - lcms - libgcrypt - libgpg_error - libiconv - libidn - libpng - libssh2 - libxml2 - ncurses - nettle - openssl - pcre - pstoedit - zlib - qhull - qrupdate - qscintilla - qt - readline - suitesparse - texinfo - tiff
author Michael Goffioul <michael.goffioul@gmail.com>
date Sat, 09 Nov 2013 23:28:04 -0500
parents 33ab5eb4fed6
children 7b9b5cf1fb92
comparison
equal deleted inserted replaced
3292:fda357ce9f64 3293:cf6f40cededb
150 150
151 # compilation under MSVC requires the use of NMAKE, which does not 151 # compilation under MSVC requires the use of NMAKE, which does not
152 # support the -j option flag and is perturbed by GNU make values for 152 # support the -j option flag and is perturbed by GNU make values for
153 # MAKE and MAKEFLAGS; also remove unnecessary DLL installed in lib/ 153 # MAKE and MAKEFLAGS; also remove unnecessary DLL installed in lib/
154 if test x$(MXE_SYSTEM) = xmsvc; then \ 154 if test x$(MXE_SYSTEM) = xmsvc; then \
155 mkdir -p '$(3)' && \
155 cd '$(1)' && \ 156 cd '$(1)' && \
156 env -u MAKE -u MAKEFLAGS PKG_CONFIG_PATH='$(HOST_PREFIX)/lib/pkgconfig' nmake && \ 157 env -u MAKE -u MAKEFLAGS PKG_CONFIG_PATH='$(HOST_PREFIX)/lib/pkgconfig' nmake && \
157 env -u MAKE -u MAKEFLAGS PKG_CONFIG_PATH='$(HOST_PREFIX)/lib/pkgconfig' nmake install && \ 158 env -u MAKE -u MAKEFLAGS PKG_CONFIG_PATH='$(HOST_PREFIX)/lib/pkgconfig' nmake \
158 rm -f $(HOST_PREFIX)/lib/$(LIBRARY_PREFIX)Qt*.dll; \ 159 INSTALL_ROOT=`cd $(3) && pwd -W | sed -e 's,^[a-zA-Z]:,,' -e 's,/,\\\\,g'` install && \
160 rm -f $(3)$(CMAKE_HOST_PREFIX)/lib/$(LIBRARY_PREFIX)Qt*.dll; \
159 else \ 161 else \
160 make -C '$(1)' -j '$(JOBS)' && \ 162 make -C '$(1)' -j '$(JOBS)' && \
161 make -C '$(1)' -j 1 install; \ 163 make -C '$(1)' -j 1 install DESTDIR='$(3)'; \
162 fi 164 fi
163 165
164 # native build doesnt seem to succeed with installing pkgconfig files to prefix 166 # native build doesnt seem to succeed with installing pkgconfig files to prefix
165 # in addition, .pc files have the wrong paths, mangled lib names 167 # in addition, .pc files have the wrong paths, mangled lib names
166 if [ "$(MXE_NATIVE_MINGW_BUILD)" = yes -a "$(MXE_SYSTEM)" != msvc ]; then \ 168 if [ "$(MXE_NATIVE_MINGW_BUILD)" = yes -a "$(MXE_SYSTEM)" != msvc ]; then \
167 find $(1)/lib/pkgconfig/*.pc -exec $(SED) -i \ 169 find $(1)/lib/pkgconfig/*.pc -exec $(SED) -i \
168 -e 's,\(.*\)_location=.*,\1_location=$${prefix}/bin/\1,g' \ 170 -e 's,\(.*\)_location=.*,\1_location=$${prefix}/bin/\1,g' \
169 -e 's,\(Libs:.* -l\).*[\\/]\([A-Za-z0-9]*\),\1\2,g' \ 171 -e 's,\(Libs:.* -l\).*[\\/]\([A-Za-z0-9]*\),\1\2,g' \
170 '{}' ';' ; \ 172 '{}' ';' ; \
171 cp -f '$(1)/lib/pkgconfig/'*.pc '$(HOST_LIBDIR)/pkgconfig/'; \ 173 cp -f '$(1)/lib/pkgconfig/'*.pc '$(3)$(HOST_LIBDIR)/pkgconfig/'; \
172 fi 174 fi
173 175
174 $(if $(filter-out msvc, $(MXE_SYSTEM)), 176 $(if $(filter-out msvc, $(MXE_SYSTEM)),
175 $(if $(filter-out yes, $(MXE_NATIVE_BUILD)), 177 $(if $(filter-out yes, $(MXE_NATIVE_BUILD)),
176 $(INSTALL) -m755 '$($(PKG)_PREFIX)/bin/moc' '$(BUILD_TOOLS_PREFIX)/bin/$(MXE_TOOL_PREFIX)moc' 178 $(INSTALL) -m755 '$(3)$($(PKG)_PREFIX)/bin/moc' '$(3)$(BUILD_TOOLS_PREFIX)/bin/$(MXE_TOOL_PREFIX)moc'
177 $(INSTALL) -m755 '$($(PKG)_PREFIX)/bin/rcc' '$(BUILD_TOOLS_PREFIX)/bin/$(MXE_TOOL_PREFIX)rcc' 179 $(INSTALL) -m755 '$(3)$($(PKG)_PREFIX)/bin/rcc' '$(3)$(BUILD_TOOLS_PREFIX)/bin/$(MXE_TOOL_PREFIX)rcc'
178 $(INSTALL) -m755 '$($(PKG)_PREFIX)/bin/uic' '$(BUILD_TOOLS_PREFIX)/bin/$(MXE_TOOL_PREFIX)uic' 180 $(INSTALL) -m755 '$(3)$($(PKG)_PREFIX)/bin/uic' '$(3)$(BUILD_TOOLS_PREFIX)/bin/$(MXE_TOOL_PREFIX)uic'
179 $(INSTALL) -m755 '$($(PKG)_PREFIX)/bin/qmake' '$(BUILD_TOOLS_PREFIX)/bin/$(MXE_TOOL_PREFIX)qmake' 181 $(INSTALL) -m755 '$(3)$($(PKG)_PREFIX)/bin/qmake' '$(3)$(BUILD_TOOLS_PREFIX)/bin/$(MXE_TOOL_PREFIX)qmake'
180 ) 182 )
181 183
182 # lrelease (from linguist) needed by octave for GUI build 184 # lrelease (from linguist) needed by octave for GUI build
183 $(MAKE) -C '$(1)/tools/linguist/lrelease' -j '$(JOBS)' install 185 $(MAKE) -C '$(1)/tools/linguist/lrelease' -j '$(JOBS)' install DESTDIR='$(3)'
184 $(if $(filter-out yes, $(MXE_NATIVE_BUILD)), 186 $(if $(filter-out yes, $(MXE_NATIVE_BUILD)),
185 $(INSTALL) -m755 '$($(PKG)_PREFIX)/bin/lrelease' '$(BUILD_TOOLS_PREFIX)/bin/$(MXE_TOOL_PREFIX)lrelease')) 187 $(INSTALL) -m755 '$(3)$($(PKG)_PREFIX)/bin/lrelease' '$(3)$(BUILD_TOOLS_PREFIX)/bin/$(MXE_TOOL_PREFIX)lrelease'))
186 endef 188 endef