1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182
|
# Process this file with autoconf to produce a configure script.
AC_PREREQ(2.53)
AC_INIT([human-icon-theme], [0.20])
AC_CONFIG_SRCDIR(index.theme.in)
AM_INIT_AUTOMAKE([1.9 tar-ustar])
AC_PROG_INTLTOOL([0.33])
PKG_PROG_PKG_CONFIG([0.19])
GETTEXT_PACKAGE="${PACKAGE}"
AC_SUBST(GETTEXT_PACKAGE)
ALL_LINGUAS="fr it pt_BR"
AM_GLIB_GNU_GETTEXT
# AM_GLIB_GNU_GETTEXT above subst. $DATADIRNAME
# this is the directory where the *.{mo,gmo} files are installed
localedir='${prefix}/${DATADIRNAME}/locale'
AC_SUBST(localedir)
# Workaround to make aclocal get the right flags
AC_SUBST(ACLOCAL_AMFLAGS, "\${ACLOCAL_FLAGS}")
# Define the toplevel path here
AC_SUBST(themedir, "\${datadir}/icons/Human")
UTILS_REQUIRED=0.7.0
AC_MSG_CHECKING([icon-naming-utils >= $UTILS_REQUIRED])
PKG_CHECK_EXISTS(icon-naming-utils >= $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 >= $UTILS_REQUIRED is required to build
and install human-icon-theme])
fi
# Check for convert from ImageMagick to add the 1x1 frame to 22x22 icons
AC_ARG_ENABLE(icon-framing,
AC_HELP_STRING([--disable-icon-framing],
[disable creation of 24x24 icons [default=enabled]]),
enable_framing=$enableval,
enable_framing=yes)
AM_CONDITIONAL(ENABLE_ICON_FRAMING, test x$enable_framing = xyes)
if test "x$enable_framing" = "xyes"; then
PKG_CHECK_EXISTS([ImageMagick >= 5.5.7],
[enable_framing=yes], [enable_framing=no])
if test "x$enable_framing" = "xyes"; then
AC_PATH_PROG(CONVERT, convert)
if test -z "$CONVERT"; then
AC_MSG_ERROR([ImageMagick is required to build human-icon-theme])
fi
# Add the command line options we need here
CONVERT="$CONVERT -bordercolor Transparent -border 1x1"
AC_SUBST(CONVERT)
else
AC_MSG_ERROR([ImageMagick is required to build human-icon-theme])
fi
fi
# Check for rsvg or ksvgtopng for creating large scale bitmaps from svg
AC_ARG_ENABLE(png-creation,
AC_HELP_STRING([--enable-png-creation],
[enable creating png images from svg [default=disabled]]),
enable_large_bitmaps=$enableval,
enable_large_bitmaps=no)
SVGCONVERT=""
AC_MSG_CHECKING([SVG to PNG conversion method])
if test "x$enable_large_bitmaps" = "xyes"; then
PKG_CHECK_EXISTS([librsvg-2.0 >= 2.12.3],
[enable_large_bitmaps=yes], [enable_large_bitmaps=no])
if test "x$enable_large_bitmaps" = "xyes"; then
svgconvert_prog="rsvg"
else
svgconvert_prog="ksvgtopng"
fi
AC_MSG_RESULT([$svgconvert_prog])
AC_PATH_PROG(SVGCONVERT, $svgconvert_prog)
if test -z "$SVGCONVERT"; then
AC_MSG_ERROR([You need librsvg >= 2.12.3 or ksvgtopng installed to create large scale bitmaps])
else
enable_large_bitmaps=yes
fi
else
AC_MSG_RESULT([none])
fi
AC_SUBST(SVGCONVERT)
AM_CONDITIONAL(ENABLE_LARGE_BITMAPS, test x$enable_large_bitmaps = xyes)
AC_CONFIG_FILES([
Makefile
8x8/stock/generic/Makefile
8x8/stock/Makefile
8x8/Makefile
12x12/Makefile
12x12/stock/Makefile
12x12/stock/generic/Makefile
16x16/Makefile
16x16/apps/Makefile
16x16/devices/Makefile
16x16/filesystems/Makefile
16x16/media/Makefile
16x16/navigation/Makefile
16x16/actions/Makefile
16x16/places/Makefile
16x16/status/Makefile
16x16/categories/Makefile
16x16/emotes/Makefile
16x16/emblems/Makefile
16x16/animations/Makefile
16x16/mimetypes/Makefile
16x16/stock/generic/Makefile
16x16/stock/Makefile
22x22/apps/Makefile
22x22/devices/Makefile
22x22/filesystems/Makefile
22x22/categories/Makefile
22x22/actions/Makefile
22x22/status/Makefile
22x22/places/Makefile
22x22/Makefile
22x22/stock/generic/Makefile
22x22/stock/Makefile
22x22/emblems/Makefile
24x24/apps/Makefile
24x24/devices/Makefile
24x24/filesystems/Makefile
24x24/categories/Makefile
24x24/actions/Makefile
24x24/status/Makefile
24x24/places/Makefile
24x24/Makefile
24x24/stock/generic/Makefile
24x24/stock/Makefile
24x24/emblems/Makefile
32x32/apps/Makefile
32x32/actions/Makefile
32x32/categories/Makefile
32x32/Makefile
32x32/places/Makefile
32x32/devices/Makefile
32x32/status/Makefile
48x48/apps/Makefile
48x48/devices/Makefile
48x48/filesystems/Makefile
48x48/mimetypes/Makefile
48x48/categories/Makefile
48x48/actions/Makefile
48x48/places/Makefile
48x48/status/Makefile
48x48/Makefile
48x48/emblems/Makefile
48x48/stock/generic/Makefile
48x48/stock/Makefile
scalable/categories/Makefile
scalable/status/Makefile
scalable/emotes/Makefile
scalable/actions/Makefile
scalable/apps/Makefile
scalable/emblems/Makefile
scalable/Makefile
scalable/places/Makefile
scalable/mimetypes/Makefile
scalable/devices/Makefile
scalable/filesystems/Makefile
po/Makefile.in
svg2png.sh
])
AC_OUTPUT
chmod +x svg2png.sh
|