1
# Process this file with autoconf to produce a configure script.
4
AC_INIT([ubuntustudio-icon-theme], [0.1])
5
AC_CONFIG_SRCDIR(index.theme.in)
7
AM_INIT_AUTOMAKE([1.9 tar-ustar])
9
AC_PROG_INTLTOOL([0.33])
10
PKG_PROG_PKG_CONFIG([0.19])
12
GETTEXT_PACKAGE="${PACKAGE}"
13
AC_SUBST(GETTEXT_PACKAGE)
18
# AM_GLIB_GNU_GETTEXT above subst. $DATADIRNAME
19
# this is the directory where the *.{mo,gmo} files are installed
20
localedir='${prefix}/${DATADIRNAME}/locale'
23
# Workaround to make aclocal get the right flags
24
AC_SUBST(ACLOCAL_AMFLAGS, "\${ACLOCAL_FLAGS}")
26
# Define the toplevel path here
27
AC_SUBST(themedir, "\${datadir}/icons/UbuntuStudio")
31
AC_MSG_CHECKING([icon-naming-utils >= $UTILS_REQUIRED])
32
PKG_CHECK_EXISTS(icon-naming-utils >= $UTILS_REQUIRED,
33
have_utils=yes, have_utils=no)
34
if test "x$have_utils" = "xyes"; then
35
UTILS_PATH="`$PKG_CONFIG --variable=program_path icon-naming-utils`"
36
ICONMAP="$UTILS_PATH/icon-name-mapping"
41
AC_MSG_ERROR([icon-naming-utils >= $UTILS_REQUIRED is required to build
42
and install ubuntustudio-icon-theme])
45
# Check for convert from ImageMagick to add the 1x1 frame to 22x22 icons
46
AC_ARG_ENABLE(icon-framing,
47
AC_HELP_STRING([--disable-icon-framing],
48
[disable creation of 24x24 icons [default=enabled]]),
49
enable_framing=$enableval,
51
AM_CONDITIONAL(ENABLE_ICON_FRAMING, test x$enable_framing = xyes)
53
if test "x$enable_framing" = "xyes"; then
54
PKG_CHECK_EXISTS([ImageMagick >= 5.5.7],
55
[enable_framing=yes], [enable_framing=no])
56
if test "x$enable_framing" = "xyes"; then
57
AC_PATH_PROG(CONVERT, convert)
58
if test -z "$CONVERT"; then
59
AC_MSG_ERROR([ImageMagick is required to build ubuntustudio-icon-theme])
62
# Add the command line options we need here
63
CONVERT="$CONVERT -bordercolor Transparent -border 1x1"
66
AC_MSG_ERROR([ImageMagick is required to build ubuntustudio-icon-theme])
70
# Check for rsvg or ksvgtopng for creating large scale bitmaps from svg
71
AC_ARG_ENABLE(png-creation,
72
AC_HELP_STRING([--enable-png-creation],
73
[enable creating png images from svg [default=disabled]]),
74
enable_large_bitmaps=$enableval,
75
enable_large_bitmaps=no)
78
AC_MSG_CHECKING([SVG to PNG conversion method])
79
if test "x$enable_large_bitmaps" = "xyes"; then
80
PKG_CHECK_EXISTS([librsvg-2.0 >= 2.12.3],
81
[enable_large_bitmaps=yes], [enable_large_bitmaps=no])
82
if test "x$enable_large_bitmaps" = "xyes"; then
83
svgconvert_prog="rsvg"
85
svgconvert_prog="ksvgtopng"
87
AC_MSG_RESULT([$svgconvert_prog])
88
AC_PATH_PROG(SVGCONVERT, $svgconvert_prog)
89
if test -z "$SVGCONVERT"; then
90
AC_MSG_ERROR([You need librsvg >= 2.12.3 or ksvgtopng installed to create large scale bitmaps])
92
enable_large_bitmaps=yes
98
AM_CONDITIONAL(ENABLE_LARGE_BITMAPS, test x$enable_large_bitmaps = xyes)
103
16x16/actions/Makefile
104
16x16/devices/Makefile
105
16x16/places/Makefile
106
16x16/status/Makefile
108
16x16/animations/Makefile
110
24x24/devices/Makefile
111
24x24/actions/Makefile
112
24x24/status/Makefile
113
24x24/mimetypes/Makefile
115
24x24/places/Makefile
117
22x22/places/Makefile
118
22x22/animations/Makefile
119
22x22/status/Makefile
121
22x22/actions/Makefile
122
22x22/devices/Makefile
124
scalable/actions/Makefile
125
scalable/devices/Makefile
126
scalable/mimetypes/Makefile
127
scalable/status/Makefile
128
scalable/places/Makefile
129
scalable/apps/Makefile
130
scalable/emblems/Makefile