summaryrefslogtreecommitdiff
path: root/editors/tweak
diff options
context:
space:
mode:
authornia <nia@pkgsrc.org>2021-05-14 14:22:04 +0000
committernia <nia@pkgsrc.org>2021-05-14 14:22:04 +0000
commit01f476ee83c34a9abb9cc011b15c909f0f10c277 (patch)
tree910b0fc8f72023a3656c425611e39e5b4a7dcd10 /editors/tweak
parent82e2b96df34d51e5b7e5724599e620fdd71971ee (diff)
downloadpkgsrc-01f476ee83c34a9abb9cc011b15c909f0f10c277.tar.gz
tweak: honor CFLAGS/LDFLAGS
Diffstat (limited to 'editors/tweak')
-rw-r--r--editors/tweak/distinfo4
-rw-r--r--editors/tweak/patches/patch-Makefile17
2 files changed, 15 insertions, 6 deletions
diff --git a/editors/tweak/distinfo b/editors/tweak/distinfo
index eb0f4c631b7..063436cfe7f 100644
--- a/editors/tweak/distinfo
+++ b/editors/tweak/distinfo
@@ -1,8 +1,8 @@
-$NetBSD: distinfo,v 1.5 2020/01/28 13:23:32 fcambus Exp $
+$NetBSD: distinfo,v 1.6 2021/05/14 14:22:04 nia Exp $
SHA1 (tweak-3.02.tar.gz) = 619c2dcb54dfbbff89576d6b34d5483a8642e635
RMD160 (tweak-3.02.tar.gz) = b1479bae6b416f95d1f89a7498144bd0f8fea5ab
SHA512 (tweak-3.02.tar.gz) = 4cf16eae1c48073ca77b0577585473288d7ecbc2d261a359db2cff372c1850cd809becb46bc745ac7d07e982d5eae9a0e0332402267ebab6b12cc952a02cff4e
Size (tweak-3.02.tar.gz) = 71939 bytes
-SHA1 (patch-Makefile) = 21346275e0915e47a602e4e79a078310ec4bf27a
+SHA1 (patch-Makefile) = 43041b78d4bb28c84ab53792cbd39603c8ece038
SHA1 (patch-rcfile.c) = 82bf8d167537de068650d3feaf5552ff7bb2be1b
diff --git a/editors/tweak/patches/patch-Makefile b/editors/tweak/patches/patch-Makefile
index c533fdf8066..657a59fdb34 100644
--- a/editors/tweak/patches/patch-Makefile
+++ b/editors/tweak/patches/patch-Makefile
@@ -1,11 +1,20 @@
-$NetBSD: patch-Makefile,v 1.4 2020/01/28 13:23:32 fcambus Exp $
+$NetBSD: patch-Makefile,v 1.5 2021/05/14 14:22:04 nia Exp $
DESTDIR and curses support.
--- Makefile.orig 2016-03-22 21:12:51.000000000 +0000
+++ Makefile
-@@ -22,9 +22,10 @@ LINK := gcc
- LFLAGS :=
+@@ -16,15 +16,15 @@
+ # number in tweak.h, or else the resulting binary won't match
+ # the version number on the archive.
+
+-CC := gcc
+-CFLAGS := -g -c -Wall $(XFLAGS)
+-LINK := gcc
+-LFLAGS :=
++CFLAGS += -c -Wall $(XFLAGS)
++LINK := $(CC)
++LFLAGS := $(LDFLAGS)
LIBS :=
+DESTDIR=
@@ -17,7 +26,7 @@ DESTDIR and curses support.
TWEAK := main.o keytab.o actions.o search.o rcfile.o buffer.o btree.o
-@@ -34,7 +35,7 @@ ifeq ($(SLANG),yes)
+@@ -34,7 +34,7 @@ ifeq ($(SLANG),yes)
LIBS += -lslang
TWEAK += slang.o
else