0
0
mirror of https://github.com/termux/termux-packages.git synced 2024-12-04 18:45:52 +00:00
termux-packages/packages/sc-im/Makefile.patch
Biswapriyo Nath 2f4b0b9285 bump(main/sc-im): 0.8.4
* Use LUA_PKGNAME to select lua version instead of patching makefile.
  That option for make was added in the following upstream commit
  5c2e0a19e2

* Update lua dependency to lua5.4.

* Fix the following compiler error with interp.c and modified langinfo.h.
  langinfo.h:107:1: error: function definition is not allowed here
2024-08-17 01:09:46 +05:30

44 lines
982 B
Diff

--- a/src/Makefile
+++ b/src/Makefile
@@ -2,7 +2,7 @@
name = sc-im
# The base directory where everything should be installed.
-prefix = /usr/local
+prefix = @TERMUX_PREFIX@
EXDIR = $(prefix)/bin
HELPDIR = $(prefix)/share/$(name)
@@ -20,10 +20,11 @@
# Change these to your liking or use `make CC=gcc` etc
#CC = cc
-#YACC = bison -y
+YACC = bison -y
#SED = sed
LDLIBS += -lm
+LDLIBS += -landroid-support
CFLAGS += -Wall -g
CFLAGS += -DNCURSES
@@ -47,7 +48,7 @@
# Comment out to disable undo/redo support
CFLAGS += -DUNDO
# Maximum number of rows in spreadsheet. Up to 1048576
-CFLAGS += -DMAXROWS=65536
+CFLAGS += -DMAXROWS=1048576
# Used for date formatting with C-d shortcut using you local d_fmt
CFLAGS += -DUSELOCALE
# Comment out to enable mouse support on virtual terminal.
@@ -213,6 +214,9 @@
statres.h : gram.y sres.sed
sed -f sres.sed < $< > $@
+gram.y :
+ $(YACC) gram.y
+
pvmtbl.o: sc.h pvmtbl.c
$(CC) ${CFLAGS} -c -DPSC pvmtbl.c