2 # This file and its contents are supplied under the terms of the
3 # Common Development and Distribution License ("CDDL)". You may
4 # only use this file in accordance with the terms of the CDDL.
6 # A full copy of the text of the CDDL should have accompanied this
7 # source. A copy of the CDDL is also available via the Internet at
8 # http://www.illumos.org/license/CDDL.
12 # Copyright (c) 2016 Sergey Avseyev
13 # Copyright (c) 2019 Michal Nowak
16 include ..
/..
/..
/make-rules
/shared-macros.mk
18 COMPONENT_NAME
= redshift
19 COMPONENT_VERSION
= 1.12
21 COMPONENT_PROJECT_URL
= http
://jonls.dk
/redshift
/
22 COMPONENT_SUMMARY
= Redshift adjusts the color temperature of your screen according to your surroundings
23 COMPONENT_FMRI
= x11
/redshift
24 COMPONENT_CLASSIFICATION
= System
/X11
25 COMPONENT_SRC
= $(COMPONENT_NAME
)-$(COMPONENT_VERSION
)
26 COMPONENT_ARCHIVE
= $(COMPONENT_SRC
).
tar.xz
27 COMPONENT_ARCHIVE_HASH
= \
28 sha256
:d2f8c5300e3ce2a84fe6584d2f1483aa9eadc668ab1951b2c2b8a03ece3a22ba
29 COMPONENT_ARCHIVE_URL
= https
://github.com
/jonls
/redshift
/releases
/download
/v
$(COMPONENT_VERSION
)/$(COMPONENT_ARCHIVE
)
30 COMPONENT_LICENSE
= GPL-3.0
-only
31 COMPONENT_LICENSE_FILE
= COPYING
33 TEST_TARGET
= $(NO_TESTS
)
35 include $(WS_MAKE_RULES
)/common.mk
37 # configure expects GNU gettext
40 CONFIGURE_OPTIONS
+= am_cv_python_pythondir
="$(PYTHON_VENDOR_PACKAGES)"
41 CONFIGURE_OPTIONS
+= --enable-gui
43 # MATE won't load SVG icons for Redshift, PNG ones work though
44 COMPONENT_POST_INSTALL_ACTION
+= \
45 $(MKDIR
) -p
$(PROTOUSRSHAREDIR
)/icons
/hicolor
/24x24
/apps
/ ;\
46 for img in redshift redshift-status-on redshift-status-off
; do \
48 $(PROTOUSRSHAREDIR
)/icons
/hicolor
/scalable
/apps
/$$img.svg \
50 $(PROTOUSRSHAREDIR
)/icons
/hicolor
/24x24
/apps
/$$img.png
; \
53 # Update Python shebang to point to version we build for
54 PYTHON_SCRIPTS
+= $(USRBINDIR
)/redshift-gtk
57 REQUIRED_PACKAGES
+= image
/editor
/inkscape
58 REQUIRED_PACKAGES
+= image
/imagemagick
59 REQUIRED_PACKAGES
+= system
/header
/header-drm
61 # Auto-generated dependencies
62 PYTHON_REQUIRED_PACKAGES
+= runtime
/python
63 REQUIRED_PACKAGES
+= library
/glib2
64 REQUIRED_PACKAGES
+= system
/library
65 REQUIRED_PACKAGES
+= system
/library
/math
66 REQUIRED_PACKAGES
+= x11
/library
/libdrm
67 REQUIRED_PACKAGES
+= x11
/library
/libx11
68 REQUIRED_PACKAGES
+= x11
/library
/libxcb
69 REQUIRED_PACKAGES
+= x11
/library
/libxxf86vm