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