summaryrefslogtreecommitdiff
path: root/configure.ac
blob: f5fb68d0168d3e23b8e985c5ba3e1cf52baacb0d (plain)
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
dnl Process this file with autoconf to produce a configure script.
AC_PREREQ(2.53)

AC_INIT([mate-icon-theme], [1.26.0], [https://mate-desktop.org])
AC_CONFIG_SRCDIR([index.theme.in.in])
AM_EXTRA_RECURSIVE_TARGETS([clean-png-icons build-png-icons])

AM_INIT_AUTOMAKE([1.9 tar-ustar dist-xz no-dist-gzip foreign check-news])

PKG_PROG_PKG_CONFIG([0.19])

AM_GNU_GETTEXT_VERSION([0.19.8])
AM_GNU_GETTEXT_REQUIRE_VERSION([0.19.8])
AM_GNU_GETTEXT([external])

GETTEXT_PACKAGE="${PACKAGE}"
AC_SUBST(GETTEXT_PACKAGE)
localedir='$(datadir)/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/mate")

# Input and Output dirs for the rendering
AC_SUBST(SVGSRCDIR, "src")
AC_SUBST(SVGOUTDIR, "mate")

# Icon sizes we want to install
AC_SUBST([render_sizes], ["8x8 16x16 22x22 24x24 32x32 48x48 256x256"])

# Allow icon mapping to be disabled
AC_ARG_ENABLE([icon-mapping],
    AC_HELP_STRING([--enable-icon-mapping],
                   [Enable compatibility symlinks [default=auto]]),
                   [enable_mapping=$enableval],
                   [enable_mapping=yes])

ICONMAP="true"
if test "x$enable_mapping" != "xno"; then
   UTILS_REQUIRED=0.8.7

   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_MSG_RESULT([yes])
   else
      AC_MSG_RESULT([no])
      AC_MSG_ERROR([icon-naming-utils >= $UTILS_REQUIRED is required to build
                    and install mate-icon-theme])
   fi
else
   ICONMAP="false"
fi

AC_SUBST(ICONMAP)

AC_CONFIG_FILES([
Makefile
po/Makefile.in
src/Makefile
menta/Makefile
mate/Makefile
mate/8x8/Makefile
mate/8x8/emblems/Makefile
mate/16x16/Makefile
mate/16x16/actions/Makefile
mate/16x16/apps/Makefile
mate/16x16/categories/Makefile
mate/16x16/devices/Makefile
mate/16x16/emblems/Makefile
mate/16x16/mimetypes/Makefile
mate/16x16/places/Makefile
mate/16x16/status/Makefile
mate/22x22/Makefile
mate/22x22/actions/Makefile
mate/22x22/apps/Makefile
mate/22x22/categories/Makefile
mate/22x22/devices/Makefile
mate/22x22/emblems/Makefile
mate/22x22/mimetypes/Makefile
mate/22x22/places/Makefile
mate/22x22/status/Makefile
mate/24x24/Makefile
mate/24x24/actions/Makefile
mate/24x24/apps/Makefile
mate/24x24/categories/Makefile
mate/24x24/devices/Makefile
mate/24x24/emblems/Makefile
mate/24x24/mimetypes/Makefile
mate/24x24/places/Makefile
mate/24x24/status/Makefile
mate/32x32/Makefile
mate/32x32/actions/Makefile
mate/32x32/apps/Makefile
mate/32x32/categories/Makefile
mate/32x32/devices/Makefile
mate/32x32/emblems/Makefile
mate/32x32/mimetypes/Makefile
mate/32x32/places/Makefile
mate/32x32/status/Makefile
mate/48x48/Makefile
mate/48x48/actions/Makefile
mate/48x48/apps/Makefile
mate/48x48/categories/Makefile
mate/48x48/devices/Makefile
mate/48x48/emblems/Makefile
mate/48x48/mimetypes/Makefile
mate/48x48/places/Makefile
mate/48x48/status/Makefile
mate/64x64/Makefile
mate/64x64/status/Makefile
mate/96x96/Makefile
mate/96x96/status/Makefile
mate/256x256/Makefile
mate/256x256/actions/Makefile
mate/256x256/apps/Makefile
mate/256x256/categories/Makefile
mate/256x256/devices/Makefile
mate/256x256/emblems/Makefile
mate/256x256/mimetypes/Makefile
mate/256x256/places/Makefile
mate/256x256/status/Makefile
mate/scalable/Makefile
mate/scalable-up-to-32/Makefile
])

AC_OUTPUT