summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorVictor Kareh <[email protected]>2026-05-04 21:40:36 -0400
committerVictor Kareh <[email protected]>2026-05-05 15:16:26 -0400
commitaa7d85e6c52e6881683b76951e08ccfa5f181196 (patch)
tree4171abe818dec97cadefa3a8d9987c1899001015
parenta983b2c95aa405883f6d1f593aa5af2011ebc14f (diff)
downloadmate-themes-master.tar.bz2
mate-themes-master.tar.xz
build: add --enable-gtk2 configure flagHEADmaster
Add a configure flag to optionally skip installation of GTK2 theme files. Enabled by default for backward compatibility. Distros that have dropped GTK2 can pass --disable-gtk2 to avoid installing unused theme files. Fixes #332
-rw-r--r--configure.ac8
-rw-r--r--desktop-themes/BlackMATE/Makefile.am9
-rw-r--r--desktop-themes/Blue-Submarine/Makefile.am8
-rw-r--r--desktop-themes/BlueMenta-dark/Makefile.am10
-rw-r--r--desktop-themes/BlueMenta/Makefile.am10
-rw-r--r--desktop-themes/Green-Submarine/Makefile.am8
-rw-r--r--desktop-themes/GreenLaguna/Makefile.am7
-rw-r--r--desktop-themes/HighContrastInverse/Makefile.am8
-rw-r--r--desktop-themes/Menta/Makefile.am10
-rw-r--r--desktop-themes/TraditionalGreen/Makefile.am6
-rw-r--r--desktop-themes/TraditionalOk/Makefile.am8
-rw-r--r--desktop-themes/YaruGreen/Makefile.am6
-rw-r--r--desktop-themes/YaruOk/Makefile.am8
13 files changed, 105 insertions, 1 deletions
diff --git a/configure.ac b/configure.ac
index 637975d0..2f7d1515 100644
--- a/configure.ac
+++ b/configure.ac
@@ -16,6 +16,13 @@ PKG_PROG_PKG_CONFIG([0.19])
AM_GNU_GETTEXT_VERSION([0.19.8])
AM_CONDITIONAL([USE_NLS], [test "x${USE_NLS}" = "xyes"])
+AC_ARG_ENABLE([gtk2],
+ [AS_HELP_STRING([--enable-gtk2],
+ [Enable GTK2 themes (default: yes)])],
+ [enable_gtk2=$enableval],
+ [enable_gtk2=yes])
+AM_CONDITIONAL([ENABLE_GTK2], [test "x$enable_gtk2" != "xno"])
+
# Workaround to make aclocal get the right flags
AC_SUBST(ACLOCAL_AMFLAGS, "\${ACLOCAL_FLAGS}")
@@ -368,4 +375,5 @@ Configure summary:
Installation prefix ........: ${prefix}
Native Language support ....: ${USE_NLS}
+ GTK2 themes ................: ${enable_gtk2}
"
diff --git a/desktop-themes/BlackMATE/Makefile.am b/desktop-themes/BlackMATE/Makefile.am
index f5942a38..d6040097 100644
--- a/desktop-themes/BlackMATE/Makefile.am
+++ b/desktop-themes/BlackMATE/Makefile.am
@@ -12,6 +12,15 @@ else
endif
SUBDIRS = \
+ gtk-3.0 \
+ metacity-1 \
+ cinnamon \
+ unity \
+ apps
+if ENABLE_GTK2
+SUBDIRS += gtk-2.0
+endif
+DIST_SUBDIRS = \
gtk-2.0 \
gtk-3.0 \
metacity-1 \
diff --git a/desktop-themes/Blue-Submarine/Makefile.am b/desktop-themes/Blue-Submarine/Makefile.am
index 1c3e8029..4fcaa0b8 100644
--- a/desktop-themes/Blue-Submarine/Makefile.am
+++ b/desktop-themes/Blue-Submarine/Makefile.am
@@ -14,6 +14,14 @@ endif
SUBDIRS = \
cinnamon \
emerald \
+ gtk-3.0 \
+ metacity-1
+if ENABLE_GTK2
+SUBDIRS += gtk-2.0
+endif
+DIST_SUBDIRS = \
+ cinnamon \
+ emerald \
gtk-2.0 \
gtk-3.0 \
metacity-1
diff --git a/desktop-themes/BlueMenta-dark/Makefile.am b/desktop-themes/BlueMenta-dark/Makefile.am
index 644a958a..580d78b8 100644
--- a/desktop-themes/BlueMenta-dark/Makefile.am
+++ b/desktop-themes/BlueMenta-dark/Makefile.am
@@ -14,6 +14,16 @@ endif
SUBDIRS = \
cinnamon \
emerald \
+ gtk-3.0 \
+ metacity-1 \
+ unity \
+ xfwm4
+if ENABLE_GTK2
+SUBDIRS += gtk-2.0
+endif
+DIST_SUBDIRS = \
+ cinnamon \
+ emerald \
gtk-2.0 \
gtk-3.0 \
metacity-1 \
diff --git a/desktop-themes/BlueMenta/Makefile.am b/desktop-themes/BlueMenta/Makefile.am
index 3c26d9de..a147e1fe 100644
--- a/desktop-themes/BlueMenta/Makefile.am
+++ b/desktop-themes/BlueMenta/Makefile.am
@@ -14,6 +14,16 @@ endif
SUBDIRS = \
cinnamon \
emerald \
+ gtk-3.0 \
+ metacity-1 \
+ unity \
+ xfwm4
+if ENABLE_GTK2
+SUBDIRS += gtk-2.0
+endif
+DIST_SUBDIRS = \
+ cinnamon \
+ emerald \
gtk-2.0 \
gtk-3.0 \
metacity-1 \
diff --git a/desktop-themes/Green-Submarine/Makefile.am b/desktop-themes/Green-Submarine/Makefile.am
index ab8e44ce..f8b6b0fd 100644
--- a/desktop-themes/Green-Submarine/Makefile.am
+++ b/desktop-themes/Green-Submarine/Makefile.am
@@ -14,6 +14,14 @@ endif
SUBDIRS = \
cinnamon \
emerald \
+ gtk-3.0 \
+ metacity-1
+if ENABLE_GTK2
+SUBDIRS += gtk-2.0
+endif
+DIST_SUBDIRS = \
+ cinnamon \
+ emerald \
gtk-2.0 \
gtk-3.0 \
metacity-1
diff --git a/desktop-themes/GreenLaguna/Makefile.am b/desktop-themes/GreenLaguna/Makefile.am
index 7cefed57..50ed54b5 100644
--- a/desktop-themes/GreenLaguna/Makefile.am
+++ b/desktop-themes/GreenLaguna/Makefile.am
@@ -12,6 +12,13 @@ else
endif
SUBDIRS = \
+ gtk-3.0 \
+ metacity-1 \
+ unity
+if ENABLE_GTK2
+SUBDIRS += gtk-2.0
+endif
+DIST_SUBDIRS = \
gtk-2.0 \
gtk-3.0 \
metacity-1 \
diff --git a/desktop-themes/HighContrastInverse/Makefile.am b/desktop-themes/HighContrastInverse/Makefile.am
index c51d60cb..6107d3d4 100644
--- a/desktop-themes/HighContrastInverse/Makefile.am
+++ b/desktop-themes/HighContrastInverse/Makefile.am
@@ -12,7 +12,13 @@ else
endif
SUBDIRS = \
- gtk-2.0 \
+ metacity-1 \
+ pixmaps
+if ENABLE_GTK2
+SUBDIRS += gtk-2.0
+endif
+DIST_SUBDIRS = \
+ gtk-2.0 \
metacity-1 \
pixmaps
diff --git a/desktop-themes/Menta/Makefile.am b/desktop-themes/Menta/Makefile.am
index cdc7dc86..483260ef 100644
--- a/desktop-themes/Menta/Makefile.am
+++ b/desktop-themes/Menta/Makefile.am
@@ -14,6 +14,16 @@ endif
SUBDIRS = \
cinnamon \
emerald \
+ gtk-3.0 \
+ metacity-1 \
+ unity \
+ xfwm4
+if ENABLE_GTK2
+SUBDIRS += gtk-2.0
+endif
+DIST_SUBDIRS = \
+ cinnamon \
+ emerald \
gtk-2.0 \
gtk-3.0 \
metacity-1 \
diff --git a/desktop-themes/TraditionalGreen/Makefile.am b/desktop-themes/TraditionalGreen/Makefile.am
index 7ac9766d..6f89eef3 100644
--- a/desktop-themes/TraditionalGreen/Makefile.am
+++ b/desktop-themes/TraditionalGreen/Makefile.am
@@ -12,6 +12,12 @@ else
endif
SUBDIRS = \
+ gtk-3.0 \
+ metacity-1
+if ENABLE_GTK2
+SUBDIRS += gtk-2.0
+endif
+DIST_SUBDIRS = \
gtk-2.0 \
gtk-3.0 \
metacity-1
diff --git a/desktop-themes/TraditionalOk/Makefile.am b/desktop-themes/TraditionalOk/Makefile.am
index 9492b9fa..7eb0477d 100644
--- a/desktop-themes/TraditionalOk/Makefile.am
+++ b/desktop-themes/TraditionalOk/Makefile.am
@@ -12,6 +12,14 @@ else
endif
SUBDIRS = \
+ gtk-3.0 \
+ metacity-1 \
+ openbox-3 \
+ xfwm4
+if ENABLE_GTK2
+SUBDIRS += gtk-2.0
+endif
+DIST_SUBDIRS = \
gtk-2.0 \
gtk-3.0 \
metacity-1 \
diff --git a/desktop-themes/YaruGreen/Makefile.am b/desktop-themes/YaruGreen/Makefile.am
index 187b2ff0..db2d04ed 100644
--- a/desktop-themes/YaruGreen/Makefile.am
+++ b/desktop-themes/YaruGreen/Makefile.am
@@ -12,6 +12,12 @@ else
endif
SUBDIRS = \
+ gtk-3.0 \
+ metacity-1
+if ENABLE_GTK2
+SUBDIRS += gtk-2.0
+endif
+DIST_SUBDIRS = \
gtk-2.0 \
gtk-3.0 \
metacity-1
diff --git a/desktop-themes/YaruOk/Makefile.am b/desktop-themes/YaruOk/Makefile.am
index b9045a25..0bba7f3f 100644
--- a/desktop-themes/YaruOk/Makefile.am
+++ b/desktop-themes/YaruOk/Makefile.am
@@ -12,6 +12,14 @@ else
endif
SUBDIRS = \
+ gtk-3.0 \
+ metacity-1 \
+ openbox-3 \
+ xfwm4
+if ENABLE_GTK2
+SUBDIRS += gtk-2.0
+endif
+DIST_SUBDIRS = \
gtk-2.0 \
gtk-3.0 \
metacity-1 \