193 mkspecs/qws/*/qmake.conf \ |
193 mkspecs/qws/*/qmake.conf \ |
194 mkspecs/*/*.conf |
194 mkspecs/*/*.conf |
195 %{l_shtool} subst \ |
195 %{l_shtool} subst \ |
196 -e 's;^\(QMAKE_LIBS +=.*\);\1 -liconv;' \ |
196 -e 's;^\(QMAKE_LIBS +=.*\);\1 -liconv;' \ |
197 src/corelib/corelib.pro |
197 src/corelib/corelib.pro |
|
198 %{l_shtool} subst \ |
|
199 -e 's;\(DESTDIR *=\) *\$\$JAVASCRIPTCORE_DESTDIR;\1 $$QMAKE_LIBDIR_QT;' \ |
|
200 src/3rdparty/webkit/JavaScriptCore/JavaScriptCore.pro |
|
201 %{l_shtool} subst \ |
|
202 -e 's;\(POST_TARGETDEPS *+\?=\) *\$\${pathToJavaScriptCoreOutput};\1 $$QMAKE_LIBDIR_QT;g' \ |
|
203 -e 's;\(pathToJavaScriptCoreOutput *=\) *\$\$ARGS/\$\$JAVASCRIPTCORE_DESTDIR;\1 $$QMAKE_LIBDIR_QT;g' \ |
|
204 src/3rdparty/webkit/JavaScriptCore/JavaScriptCore.pri |
198 %{l_shtool} subst \ |
205 %{l_shtool} subst \ |
199 -e "s;^\(QMAKE_INCDIR_X11[^=]*=\).*;\1 %{l_prefix}/include $x11_incdir;" \ |
206 -e "s;^\(QMAKE_INCDIR_X11[^=]*=\).*;\1 %{l_prefix}/include $x11_incdir;" \ |
200 -e "s;^\(QMAKE_LIBDIR_X11[^=]*=\).*;\1 %{l_prefix}/lib $x11_libdir;" \ |
207 -e "s;^\(QMAKE_LIBDIR_X11[^=]*=\).*;\1 %{l_prefix}/lib $x11_libdir;" \ |
201 mkspecs/qws/solaris*/qmake.conf \ |
208 mkspecs/qws/solaris*/qmake.conf \ |
202 mkspecs/solaris*/qmake.conf |
209 mkspecs/solaris*/qmake.conf |
470 %if "%{with_examples}" == "yes" |
477 %if "%{with_examples}" == "yes" |
471 targets="$targets sub-demos-install_subtargets-ordered sub-examples-install_subtargets-ordered install_htmldocs install_qchdocs install_docimages" |
478 targets="$targets sub-demos-install_subtargets-ordered sub-examples-install_subtargets-ordered install_htmldocs install_qchdocs install_docimages" |
472 %endif |
479 %endif |
473 targets="$targets install_qmake install_mkspecs" |
480 targets="$targets install_qmake install_mkspecs" |
474 %{l_make} %{l_mflags} $targets INSTALL_ROOT="$RPM_BUILD_ROOT" |
481 %{l_make} %{l_mflags} $targets INSTALL_ROOT="$RPM_BUILD_ROOT" |
475 |
482 %{l_shtool} install -c -m 644 \ |
476 # only install static or shared plugins according to user choice |
483 lib/libjscore.a lib/libjscore.prl \ |
|
484 $RPM_BUILD_ROOT%{l_prefix}/lib/ |
|
485 |
|
486 # correct paths in pkg-config(1) configuration files |
|
487 %{l_shtool} subst \ |
|
488 -e "s;-L[^\t ][^\t ]*qt-everywhere-opensource-src-%{version};-L%{l_prefix};g" \ |
|
489 $RPM_BUILD_ROOT%{l_prefix}/lib/pkgconfig/* |
|
490 |
|
491 # install static or shared plugins according to user choice |
477 %if "%{with_shared}" != "yes" |
492 %if "%{with_shared}" != "yes" |
478 %{l_make} %{l_mflags} sub-plugins-install_subtargets-ordered INSTALL_ROOT="$RPM_BUILD_ROOT" |
493 %{l_make} %{l_mflags} sub-plugins-install_subtargets-ordered INSTALL_ROOT="$RPM_BUILD_ROOT" |
479 %else |
494 %else |
480 %{l_tar} cf - -C sharbuild plugins | %{l_tar} xf - -C $RPM_BUILD_ROOT%{l_prefix}/lib/qt |
495 %{l_tar} cf - -C sharbuild plugins | %{l_tar} xf - -C $RPM_BUILD_ROOT%{l_prefix}/lib/qt |
481 %endif |
496 %endif |
482 |
497 |
483 %if "%{with_shared}" == "yes" |
498 %if "%{with_shared}" == "yes" |
484 # install shared libs and symlinks |
499 # install shared libs and symlinks |
485 %{l_shtool} mkdir -f -p -m 755 \ |
500 %{l_shtool} mkdir -f -p -m 755 \ |
486 $RPM_BUILD_ROOT%{l_prefix}/lib/qt |
501 $RPM_BUILD_ROOT%{l_prefix}/lib/qt |
487 %{l_tar} cf - -C sharbuild dynamic | %{l_tar} xf - -C $RPM_BUILD_ROOT%{l_prefix}/lib/qt |
502 %{l_tar} cf - -C sharbuild dynamic | %{l_tar} xf - -C $RPM_BUILD_ROOT%{l_prefix}/lib/qt |
488 |
503 |
489 # offer limited support of pkg-config(1) for shared libs |
504 # offer limited support of pkg-config(1) for shared libs |
490 # substitution unfortunately only handles paths with no whitespace |
505 # substitution unfortunately only handles paths with no whitespace |
491 %{l_shtool} subst \ |
506 %{l_shtool} subst \ |
|
507 -e "s;-L[^\t ][^\t ]*qt-everywhere-opensource-src-%{version}/lib;-L%{l_prefix}/lib/qt/dynamic;g" \ |
492 -e "s;-L[^\t ][^\t ]*qt-everywhere-opensource-src-%{version};-L%{l_prefix};g" \ |
508 -e "s;-L[^\t ][^\t ]*qt-everywhere-opensource-src-%{version};-L%{l_prefix};g" \ |
493 $RPM_BUILD_ROOT%{l_prefix}/lib/qt/dynamic/pkgconfig/* |
509 $RPM_BUILD_ROOT%{l_prefix}/lib/qt/dynamic/pkgconfig/* |
494 |
510 |
495 # explain nonstandard shared library placement |
511 # explain nonstandard shared library placement |
496 ( echo "This OpenPKG Qt build is using the with_shared option." |
512 ( echo "This OpenPKG Qt build is using the with_shared option." |