forked from adapta-project/adapta-gtk-theme
-
Notifications
You must be signed in to change notification settings - Fork 0
/
configure.ac
140 lines (119 loc) · 4.83 KB
/
configure.ac
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
m4_define([adapta_major_version], [3])
m4_define([adapta_minor_version], [91])
m4_define([adapta_micro_version], [1])
m4_define([adapta_version], [adapta_major_version.adapta_minor_version.adapta_micro_version])
m4_define([adapta_git_url], [https://github.com/adapta-project/adapta-gtk-theme])
AC_INIT(
[Adapta ],
[adapta_version],
[adapta_git_url],
[adapta-gtk-theme]
)
AC_CONFIG_MACRO_DIR([m4])
AM_INIT_AUTOMAKE([
-Wno-portability \
no-dist-gzip \
dist-xz \
foreign \
subdir-objects \
1.9 \
tar-ustar
])
AC_PREFIX_DEFAULT(/usr)
AM_SILENT_RULES([yes])
ADAPTA_OPTION([PARALLEL], [parallel], [parallel-build], [disable])
ADAPTA_OPTION([GTK_NEXT], [gtk_next], [Gtk-4.0], [disable])
ADAPTA_OPTION([GTK_LEGACY],[gtk_legacy],[Gtk-3.18], [disable])
ADAPTA_OPTION([GNOME], [gnome], [Gnome-Shell], [disable])
ADAPTA_OPTION([CINNAMON], [cinnamon], [Cinnamon], [disable])
ADAPTA_OPTION([FLASHBACK], [flashback], [Flashback], [disable])
ADAPTA_OPTION([UNITY], [unity], [Unity], [disable])
ADAPTA_OPTION([XFCE], [xfce], [XFce], [disable])
ADAPTA_OPTION([MATE], [mate], [Mate], [disable])
ADAPTA_OPTION([OPENBOX], [openbox], [Openbox], [disable])
ADAPTA_OPTION([CHROME], [chrome], [Chrome(ium)], [disable])
ADAPTA_OPTION([PLANK], [plank], [Plank], [disable])
ADAPTA_OPTION([TELEGRAM], [telegram], [Telegram], [disable])
PKG_CHECK_MODULES(GDK_PIXBUF, [gdk-pixbuf-2.0 >= 2.32.2])
PKG_CHECK_MODULES(GLIB, [glib-2.0 >= 2.48.0])
if test x"$ENABLE_PARALLEL" = xyes; then
AC_PATH_PROG([PARALLEL], [parallel])
if test x"$PARALLEL" = x; then
AC_MSG_ERROR(['parallel' not found.])
fi
fi
AC_PATH_PROG([SASSC], [sassc])
if test x"$SASSC" = x; then
AC_MSG_ERROR(['sassc' not found.])
fi
AC_PATH_PROG([INKSCAPE], [inkscape])
if test x"$INKSCAPE" = x; then
AC_MSG_ERROR(['inkscape' not found.])
fi
AC_PATH_PROG([GLIB_COMPILE_RESOURCES], [glib-compile-resources])
if test x"$GLIB_COMPILE_RESOURCES" = x; then
AC_MSG_ERROR(['glib-compile-resources' not found.])
fi
if test x"$ENABLE_GNOME" = xyes; then
AC_PATH_PROG([GNOME_SHELL], [gnome-shell])
if test x"$GNOME_SHELL" = x; then
AC_MSG_ERROR(['gnome-shell' not found.])
fi
ADAPTA_GNOME
fi
ADAPTA_COLOR_SCHEME
AC_CONFIG_FILES([
Makefile \
gtk/Makefile \
shell/Makefile \
wm/Makefile \
extra/Makefile
])
AC_OUTPUT
AC_MSG_RESULT([
Adapta Gtk+ Theme $VERSION
===========================================================
prefix: ${prefix}
datarootdir: ${datarootdir}
target directories: ${datarootdir}/themes/Adapta
${datarootdir}/themes/Adapta-Nokto
${datarootdir}/themes/Adapta-Eta
${datarootdir}/themes/Adapta-Nokto-Eta
parallel-build: $ENABLE_PARALLEL
parallel: $PARALLEL
sassc: $SASSC
inkscape: $INKSCAPE
glib-compile-resources: $GLIB_COMPILE_RESOURCES
selection-color: $SELECTION (default: $selection_default)
2nd-selection-color: $SECOND_SELECTION (default: $second_selection_default)
accent-color: $ACCENT (default: $accent_default)
suggestion-color: $SUGGESTION (default: $suggestion_default)
destruction-color: $DESTRUCTION (default: $destruction_default)
-----------------------------------------------------------
| Supported Gtk+ Version
-----------------------------------------------------------
Gtk+ 3.18: $ENABLE_GTK_LEGACY
Gtk+ 3.20: always
Gtk+ 3.22: always
Gtk+ 4.0: $ENABLE_GTK_NEXT
-----------------------------------------------------------
| DE and WM Support
-----------------------------------------------------------
Budgie-Desktop: always (>= 10.2.7)
GNOME: $ENABLE_GNOME (SCSS ver. $GNOME_SCSS_VERSION)
Cinnamon: $ENABLE_CINNAMON
GNOME-Flashback: $ENABLE_FLASHBACK
Unity: $ENABLE_UNITY
XFce: $ENABLE_XFCE
Mate: $ENABLE_MATE
Openbox: $ENABLE_OPENBOX
-----------------------------------------------------------
| Extra Support
-----------------------------------------------------------
GtkSourceView/Gedit: always
Chrome(ium): $ENABLE_CHROME
Plank: $ENABLE_PLANK
Telegram: $ENABLE_TELEGRAM
===========================================================
=>> run 'make' and 'sudo make install'
])