summaryrefslogtreecommitdiff
path: root/data/sc-im/makefile.diff
diff options
context:
space:
mode:
Diffstat (limited to 'data/sc-im/makefile.diff')
-rw-r--r--data/sc-im/makefile.diff34
1 files changed, 23 insertions, 11 deletions
diff --git a/data/sc-im/makefile.diff b/data/sc-im/makefile.diff
index 6d3ab2b0c..c958683de 100644
--- a/data/sc-im/makefile.diff
+++ b/data/sc-im/makefile.diff
@@ -1,7 +1,19 @@
-diff -Naur sc-im-0.7.0/src/Makefile sc-im-0.7.0+iPhone/src/Makefile
---- sc-im-0.7.0/src/Makefile 2017-12-13 17:48:59.000000000 +0000
-+++ sc-im-0.7.0+iPhone/src/Makefile 2019-04-17 17:23:24.489629635 +0000
-@@ -68,63 +68,68 @@
+diff -ur sc-im-0.7.0/src/Makefile sc-im-0.7.0+iPhone/src/Makefile
+--- sc-im-0.7.0/src/Makefile 2017-12-13 07:48:59.000000000 -1000
++++ sc-im-0.7.0+iPhone/src/Makefile 2019-05-08 15:11:33.000000000 -1000
+@@ -16,9 +16,9 @@
+ #YACC = bison -y
+ #SED = sed
+
+-LDLIBS += -lm
++LDLIBS := -lm
+
+-CFLAGS += -Wall -g
++CFLAGS := -Wall -g
+ CFLAGS += -DNCURSES
+ CFLAGS += -D_XOPEN_SOURCE_EXTENDED -D_GNU_SOURCE
+ CFLAGS += -DSNAME=\"$(name)\"
+@@ -68,63 +68,64 @@
# Have threads? Set these two, if you want the autobackup feature to work with threads.
CFLAGS += -DHAVE_PTHREAD
@@ -44,22 +56,22 @@ diff -Naur sc-im-0.7.0/src/Makefile sc-im-0.7.0+iPhone/src/Makefile
+#ifneq ($(shell uname -s),FreeBSD)
+# LDLIBS += -ldl
+#endif
++
++PKGCONFIG := pkg-config
-ifneq (, $(shell which pkg-config))
-+PKGCONFIG := pkg-config
-+
+ifneq ($(PKGCONFIG),)
# Any system with pkg-config
- # NOTE: ncursesw (required)
- ifeq ($(shell uname -s),Darwin)
- # macOS' ncurses is built with wide-char support
- LDFLAGS += -lncurses
+- # NOTE: ncursesw (required)
+- ifeq ($(shell uname -s),Darwin)
+- # macOS' ncurses is built with wide-char support
+- LDFLAGS += -lncurses
- else ifneq ($(shell pkg-config --exists ncursesw || echo 'no'),no)
- CFLAGS += $(shell pkg-config --cflags ncursesw)
- LDLIBS += $(shell pkg-config --libs ncursesw)
- else ifneq ($(shell pkg-config --exists ncurses || echo 'no'),no)
-+ else ifneq ($(shell $(PKGCONFIG) --exists ncursesw || echo 'no'),no)
++ ifneq ($(shell $(PKGCONFIG) --exists ncursesw || echo 'no'),no)
+ CFLAGS += $(shell $(PKGCONFIG) --cflags ncursesw)
+ LDLIBS += $(shell $(PKGCONFIG) --libs ncursesw)
+ else ifneq ($(shell $(PKGCONFIG) --exists ncurses || echo 'no'),no)