diff options
author | Marco Pesenti Gritti <marco@localhost.localdomain> | 2008-08-04 07:44:10 (GMT) |
---|---|---|
committer | Marco Pesenti Gritti <marco@localhost.localdomain> | 2008-08-04 07:44:10 (GMT) |
commit | 291cb2763d3e6adf9343f565045417ae2b9805ff (patch) | |
tree | 4d8469735e6bcab67cf2e3217e809b16274de571 /configure.ac | |
parent | 5b69cdc1111bdae1fd2d6dc31d446ee2caa03cc5 (diff) |
Trac #7641: Install GTK compatibility symlinks using icon-naming-utils package.
The GTK stock icons use pre-standardized icon names. The sugar theme uses
icon names from
http://www.freedesktop.org/wiki/Specifications/icon-naming-spec
but GTK still uses its internal names for stock icons. In order for
stock buttons, icons, and existing GTK applications to be themed correctly,
we need to install symlinks.
This commit adds a build dependency on the icon-naming-utils package,
available in both Fedora and Debian. Packagers, take note.
Patch by C. Scott Ananian <cscott@laptop.org>
Minor cleanups by me
Diffstat (limited to 'configure.ac')
-rw-r--r-- | configure.ac | 22 |
1 files changed, 21 insertions, 1 deletions
diff --git a/configure.ac b/configure.ac index 3a5f752..9f040aa 100644 --- a/configure.ac +++ b/configure.ac @@ -1,3 +1,5 @@ +AC_PREREQ(2.53) + AC_INIT([sugar-artwork],[0.81.3],[],[sugar-artwork]) AM_CONFIG_HEADER(config.h) @@ -5,7 +7,9 @@ AM_CONFIG_HEADER(config.h) AM_INIT_AUTOMAKE([1.9 foreign dist-bzip2 no-dist-gzip]) AM_DISABLE_STATIC - + +PKG_PROG_PKG_CONFIG([0.19]) + AC_PROG_CC AC_HEADER_STDC AC_PROG_LIBTOOL @@ -23,6 +27,22 @@ PKG_CHECK_MODULES(ENGINE, gtk+-2.0 >= 2.0 gobject-2.0 >= 2.0 cairo >= 0.1.1) GTK_VERSION=`$PKG_CONFIG --variable=gtk_binary_version gtk+-2.0` AC_SUBST(GTK_VERSION) +ICON_NAMING_UTILS_REQUIRED=0.8.2 + +AC_MSG_CHECKING([icon-naming-utils >= $ICON_NAMING_UTILS_REQUIRED]) +PKG_CHECK_EXISTS(icon-naming-utils >= $ICON_NAMING_UTILS_REQUIRED, + have_utils=yes, have_utils=no) +if test "x$have_utils" = "xyes"; then + UTILS_PATH="`$PKG_CONFIG --variable=program_path icon-naming-utils`" + ICONMAP="$UTILS_PATH/icon-name-mapping" + AC_SUBST(ICONMAP) + AC_MSG_RESULT([yes]) +else + AC_MSG_RESULT([no]) + AC_MSG_ERROR([icon-naming-utils >= $ICON_NAMING_UTILS_REQUIRED is required to build + and install the icon theme]) +fi + AC_OUTPUT([ Makefile cursor/Makefile |