redshift-1.12_no_objc.patch (2803B)
- diff -udr ./configure.ac ../redshift-1.12.new/configure.ac
- --- ./configure.ac 2018-05-21 01:47:53.000000000 +0000
- +++ ./configure.ac 2020-04-04 08:00:02.853123881 +0000
- @@ -13,7 +13,6 @@
- # Checks for programs.
- AC_PROG_CC_C99
- AC_PROG_LIBTOOL
- -AC_PROG_OBJC # For macOS support modules
- AC_LANG([C])
- AC_PROG_INTLTOOL([0.50])
- @@ -39,18 +38,6 @@
- [test "x$enable_windows_resource" = xyes])
- -# Test whether Objective C compiler works
- -AC_MSG_CHECKING([whether Objective C compiler works])
- -AC_LANG_PUSH([Objective C])
- -AC_COMPILE_IFELSE([AC_LANG_PROGRAM([])], [
- - AC_MSG_RESULT([yes])
- - have_objc_compiler=yes
- -], [
- - AC_MSG_RESULT([no])
- - have_objc_compiler=no
- -])
- -AC_LANG_POP([Objective C])
- -
- # Checks for libraries.
- AM_GNU_GETTEXT_VERSION([0.17])
- AM_GNU_GETTEXT([external])
- @@ -74,25 +61,7 @@
- # macOS headers
- AC_CHECK_HEADER([ApplicationServices/ApplicationServices.h], [have_appserv_h=yes], [have_appserv_h=no])
- -# CoreLocation.h is an Objective C header. Only test if
- -# Objective C compiler works. AC_CHECK_HEADER does not
- -# appear to work if the Ojective C compiler is not
- -# available so we need a custom test.
- -AC_MSG_CHECKING([whether CoreLocation/CoreLocation.h is usable])
- -AS_IF([test "x$have_objc_compiler" = xyes], [
- - AC_LANG_PUSH([Objective C])
- - AC_COMPILE_IFELSE([AC_LANG_PROGRAM([[#import <CoreLocation/CoreLocation.h>]],[[]])], [
- - AC_MSG_RESULT([yes])
- - have_corelocation_h=yes
- - ], [
- - AC_MSG_RESULT([no])
- - have_corelocation_h=no
- - ])
- - AC_LANG_POP([Objective C])
- -], [
- - AC_MSG_RESULT([no Objective C compiler available])
- - have_corelocation_h=no
- -])
- +have_corelocation_h=no
- # Windows header
- AC_CHECK_HEADER([windows.h], [have_windows_h=yes], [have_windows_h=no])
- diff -udr ./src/Makefile.am ../redshift-1.12.new/src/Makefile.am
- --- ./src/Makefile.am 2018-05-21 01:47:53.000000000 +0000
- +++ ./src/Makefile.am 2020-04-04 08:00:03.109117287 +0000
- @@ -28,7 +28,6 @@
- gamma-quartz.c gamma-quartz.h \
- gamma-w32gdi.c gamma-w32gdi.h \
- location-geoclue2.c location-geoclue2.h \
- - location-corelocation.m location-corelocation.h \
- windows/appicon.rc \
- windows/versioninfo.rc
- @@ -80,22 +79,6 @@
- $(GEOCLUE2_LIBS) $(GEOCLUE2_CFLAGS)
- endif
- -# Build CoreLocation module as a separate convenience
- -# library since it is using a separate compiler
- -# (Objective C).
- -
- -if ENABLE_CORELOCATION
- -noinst_LTLIBRARIES = liblocation-corelocation.la
- -liblocation_corelocation_la_SOURCES = \
- - location-corelocation.m location-corelocation.h
- -liblocation_corelocation_la_OBJCFLAGS = \
- - $(CORELOCATION_CFLAGS)
- -liblocation_corelocation_la_LIBADD = \
- - $(CORELOCATION_CFLAGS) $(CORELOCATION_LIBS)
- -redshift_LDADD += liblocation-corelocation.la
- -endif
- -
- -
- # Windows resources
- if ENABLE_WINDOWS_RESOURCE
- redshift_SOURCES += windows/appicon.rc windows/versioninfo.rc