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