Install Ubuntu icons as option (--enable-ubuntu). (Francesco Marella)
This commit is contained in:
+7
-2
@@ -8,6 +8,7 @@ hicolor_icon_DATA = data/icons/hicolor/scalable/apps/redshift.svg \
|
||||
data/icons/hicolor/scalable/apps/redshift-status-on.svg \
|
||||
data/icons/hicolor/scalable/apps/redshift-status-off.svg
|
||||
|
||||
if ENABLE_UBUNTU
|
||||
ubuntu_mono_dark_icondir = @datadir@/icons/ubuntu-mono-dark/scalable/apps
|
||||
ubuntu_mono_dark_icon_DATA = \
|
||||
data/icons/ubuntu-mono-dark/scalable/apps/redshift-status-on.svg \
|
||||
@@ -17,6 +18,7 @@ ubuntu_mono_light_icondir = @datadir@/icons/ubuntu-mono-light/scalable/apps
|
||||
ubuntu_mono_light_icon_DATA = \
|
||||
data/icons/ubuntu-mono-light/scalable/apps/redshift-status-on.svg \
|
||||
data/icons/ubuntu-mono-light/scalable/apps/redshift-status-off.svg
|
||||
endif
|
||||
|
||||
|
||||
# Desktop file
|
||||
@@ -30,10 +32,13 @@ dist_man1_MANS = redshift.1
|
||||
|
||||
EXTRA_DIST = \
|
||||
$(hicolor_icon_DATA) \
|
||||
$(ubuntu_mono_dark_icon_DATA) \
|
||||
$(ubuntu_mono_light_icon_DATA) \
|
||||
$(desktop_DATA)
|
||||
|
||||
if ENABLE_UBUNTU
|
||||
EXTRA_DIST += \
|
||||
$(ubuntu_mono_dark_icon_DATA) \
|
||||
$(ubuntu_mono_light_icon_DATA)
|
||||
endif
|
||||
|
||||
# Update PO translations
|
||||
.PHONY: update-po
|
||||
|
||||
@@ -177,6 +177,17 @@ AS_IF([test "x$enable_gui" != xno], [
|
||||
])
|
||||
AM_CONDITIONAL([ENABLE_GUI], [test "x$enable_gui" != xno])
|
||||
|
||||
# Check for Ubuntu icons
|
||||
AC_MSG_CHECKING([whether to enable Ubuntu icons])
|
||||
AC_ARG_ENABLE([ubuntu], [AC_HELP_STRING([--enable-ubuntu],
|
||||
[enable Ubuntu icons])],
|
||||
[enable_ubuntu=$enableval],[enable_ubuntu=no])
|
||||
AS_IF([test "x$enable_ubuntu" != xno], [
|
||||
AC_MSG_RESULT([yes])
|
||||
], [
|
||||
AC_MSG_RESULT([no])
|
||||
])
|
||||
AM_CONDITIONAL([ENABLE_UBUNTU], [test "x$enable_ubuntu" != xno])
|
||||
|
||||
# Checks for header files.
|
||||
AC_CHECK_HEADERS([locale.h stdint.h stdlib.h string.h unistd.h sys/signal.h])
|
||||
@@ -216,4 +227,5 @@ echo "
|
||||
Geoclue: ${enable_geoclue}
|
||||
|
||||
GUI: ${enable_gui}
|
||||
Ubuntu icons: ${enable_ubuntu}
|
||||
"
|
||||
|
||||
Reference in New Issue
Block a user