|
|
4c0036 |
%if "%{name}" == "gtk3-private"
|
|
|
4c0036 |
function prepend_buildroot_include_path_to_compiler_flags() {
|
|
|
4c0036 |
export CFLAGS="-I%{_buildrootdir}%{gtk3_install_path}/$@ $CFLAGS" \
|
|
|
4c0036 |
export CXXFLAGS="-I%{_buildrootdir}%{gtk3_install_path}/$@ $CXXFLAGS"
|
|
|
4c0036 |
}
|
|
|
4c0036 |
|
|
|
4c0036 |
prepend_buildroot_include_path_to_compiler_flags include
|
|
|
4c0036 |
prepend_buildroot_include_path_to_compiler_flags include/glib-2.0
|
|
|
4c0036 |
prepend_buildroot_include_path_to_compiler_flags include/glib-2.0
|
|
|
4c0036 |
prepend_buildroot_include_path_to_compiler_flags include/gio-unix-2.0
|
|
|
4c0036 |
prepend_buildroot_include_path_to_compiler_flags %{_lib}/glib-2.0/include
|
|
|
4c0036 |
prepend_buildroot_include_path_to_compiler_flags include/freetype2
|
|
|
4c0036 |
prepend_buildroot_include_path_to_compiler_flags include/fontconfig
|
|
|
4c0036 |
prepend_buildroot_include_path_to_compiler_flags include/harfbuzz
|
|
|
4c0036 |
prepend_buildroot_include_path_to_compiler_flags include/gdk-pixbuf-2.0
|
|
|
4c0036 |
prepend_buildroot_include_path_to_compiler_flags include/atk-1.0
|
|
|
4c0036 |
prepend_buildroot_include_path_to_compiler_flags include/at-spi-2.0
|
|
|
4c0036 |
prepend_buildroot_include_path_to_compiler_flags include/at-spi2-atk/2.0
|
|
|
4c0036 |
prepend_buildroot_include_path_to_compiler_flags include/cairo
|
|
|
4c0036 |
prepend_buildroot_include_path_to_compiler_flags include/pango-1.0
|
|
|
4c0036 |
prepend_buildroot_include_path_to_compiler_flags include/librsvg-2.0
|
|
|
4c0036 |
prepend_buildroot_include_path_to_compiler_flags include/cairo
|
|
|
4c0036 |
prepend_buildroot_include_path_to_compiler_flags include/gtk-3.0
|
|
|
4c0036 |
prepend_buildroot_include_path_to_compiler_flags include/gtk-3.0/unix-print
|
|
|
4c0036 |
prepend_buildroot_include_path_to_compiler_flags include/librsvg-2.0
|
|
|
4c0036 |
%else
|
|
|
4c0036 |
sed -i 's@%{gtk3_install_path}@%{_buildrootdir}%{gtk3_install_path}@g' %{_buildrootdir}%{gtk3_install_path}/%{_lib}/pkgconfig/*.pc
|
|
|
4c0036 |
%endif
|
|
|
4c0036 |
|
|
|
4c0036 |
export LDFLAGS="-L%{_buildrootdir}%{gtk3_install_path}/%{_lib} $LDFLAGS"
|
|
|
4c0036 |
export LDFLAGS="-Wl,-rpath,%{gtk3_install_path}/%{_lib} $LDFLAGS"
|
|
|
4c0036 |
export LDFLAGS="-Wl,-rpath-link,%{_buildrootdir}%{gtk3_install_path}/%{_lib} $LDFLAGS"
|
|
|
4c0036 |
|
|
|
4c0036 |
export PKG_CONFIG_PATH=%{_buildrootdir}%{gtk3_install_path}/%{_lib}/pkgconfig
|