termux-packages/packages/multitail/Makefile.patch

31 lines
1.0 KiB
Diff
Raw Normal View History

2015-06-13 01:03:31 +02:00
diff -u -r ../multitail-6.4.1/Makefile ./Makefile
--- ../multitail-6.4.1/Makefile 2015-02-12 03:32:35.000000000 -0500
+++ ./Makefile 2015-05-18 13:02:14.796497473 -0400
@@ -1,14 +1,14 @@
include version
UTF8_SUPPORT=yes
-DESTDIR=
-PREFIX=/usr
+DESTDIR=@TERMUX_PREFIX@
2015-06-13 01:03:31 +02:00
+PREFIX=
CONFIG_FILE=$(DESTDIR)/etc/multitail.conf
CC?=gcc
DEBUG+=-g -Wall # -D_DEBUG # -pg # -D_DEBUG #-pg -W -pedantic # -pg #-fprofile-arcs
ifeq ($(UTF8_SUPPORT),yes)
-LDFLAGS+=-lpanelw -lncursesw -lutil -lm
+LDFLAGS+=-lpanelw -lncursesw -lm
CFLAGS+=-funsigned-char -D`uname` -DVERSION=\"$(VERSION)\" -DCONFIG_FILE=\"$(CONFIG_FILE)\" -DUTF8_SUPPORT -D_FORTIFY_SOURCE=2 -O3
else
LDFLAGS+=-lpanel -lncurses -lutil -lm
@@ -37,7 +37,7 @@
### YOURSELF WITH THE NEW FILE
#
mkdir -p $(DESTDIR)/etc/multitail/
- cp multitail.conf $(CONFIG_FILE).new
+ cp multitail.conf $(CONFIG_FILE)
cp conversion-scripts/* $(DESTDIR)/etc/multitail/
#rm -f $(DESTDIR)$(PREFIX)/share/man/man1/multitail.1.gz
#gzip -9 $(DESTDIR)$(PREFIX)/share/man/man1/multitail.1