~ubuntu-branches/ubuntu/precise/ubuntustudio-icon-theme/precise

« back to all changes in this revision

Viewing changes to configure.ac

  • Committer: Bazaar Package Importer
  • Author(s): Janne Jokitalo (AstralJava)
  • Date: 2007-04-04 13:06:22 UTC
  • Revision ID: james.westby@ubuntu.com-20070404130622-5a6eai22f6n681hv
Tags: 0.1
Initial release.

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
# Process this file with autoconf to produce a configure script.
 
2
AC_PREREQ(2.53)
 
3
 
 
4
AC_INIT([ubuntustudio-icon-theme], [0.1])
 
5
AC_CONFIG_SRCDIR(index.theme.in)
 
6
 
 
7
AM_INIT_AUTOMAKE([1.9 tar-ustar])
 
8
 
 
9
AC_PROG_INTLTOOL([0.33])
 
10
PKG_PROG_PKG_CONFIG([0.19])
 
11
 
 
12
GETTEXT_PACKAGE="${PACKAGE}"
 
13
AC_SUBST(GETTEXT_PACKAGE)
 
14
 
 
15
ALL_LINGUAS=""
 
16
AM_GLIB_GNU_GETTEXT
 
17
 
 
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'
 
21
AC_SUBST(localedir)
 
22
 
 
23
# Workaround to make aclocal get the right flags
 
24
AC_SUBST(ACLOCAL_AMFLAGS, "\${ACLOCAL_FLAGS}")
 
25
 
 
26
# Define the toplevel path here
 
27
AC_SUBST(themedir, "\${datadir}/icons/UbuntuStudio")
 
28
 
 
29
UTILS_REQUIRED=0.7.0
 
30
 
 
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"
 
37
   AC_SUBST(ICONMAP)
 
38
   AC_MSG_RESULT([yes])
 
39
else
 
40
   AC_MSG_RESULT([no])
 
41
   AC_MSG_ERROR([icon-naming-utils >= $UTILS_REQUIRED is required to build
 
42
                 and install ubuntustudio-icon-theme])
 
43
fi
 
44
 
 
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,
 
50
    enable_framing=yes)
 
51
AM_CONDITIONAL(ENABLE_ICON_FRAMING, test x$enable_framing = xyes)
 
52
 
 
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])
 
60
      fi
 
61
 
 
62
      # Add the command line options we need here
 
63
      CONVERT="$CONVERT -bordercolor Transparent -border 1x1"
 
64
      AC_SUBST(CONVERT)
 
65
   else
 
66
      AC_MSG_ERROR([ImageMagick is required to build ubuntustudio-icon-theme])
 
67
   fi
 
68
fi
 
69
 
 
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)
 
76
 
 
77
SVGCONVERT=""
 
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"
 
84
   else
 
85
      svgconvert_prog="ksvgtopng"
 
86
   fi
 
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])
 
91
   else
 
92
      enable_large_bitmaps=yes
 
93
   fi
 
94
else
 
95
   AC_MSG_RESULT([none])
 
96
fi
 
97
AC_SUBST(SVGCONVERT)
 
98
AM_CONDITIONAL(ENABLE_LARGE_BITMAPS, test x$enable_large_bitmaps = xyes)
 
99
 
 
100
AC_CONFIG_FILES([
 
101
Makefile
 
102
16x16/Makefile
 
103
16x16/actions/Makefile
 
104
16x16/devices/Makefile
 
105
16x16/places/Makefile
 
106
16x16/status/Makefile
 
107
16x16/apps/Makefile
 
108
16x16/animations/Makefile
 
109
24x24/apps/Makefile
 
110
24x24/devices/Makefile
 
111
24x24/actions/Makefile
 
112
24x24/status/Makefile
 
113
24x24/mimetypes/Makefile
 
114
24x24/Makefile
 
115
24x24/places/Makefile
 
116
22x22/Makefile
 
117
22x22/places/Makefile
 
118
22x22/animations/Makefile
 
119
22x22/status/Makefile
 
120
22x22/apps/Makefile
 
121
22x22/actions/Makefile
 
122
22x22/devices/Makefile
 
123
scalable/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
 
131
po/Makefile.in
 
132
svg2png.sh
 
133
])      
 
134
 
 
135
AC_OUTPUT
 
136
 
 
137
chmod +x svg2png.sh