pkgsrc-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[pkgsrc/trunk]: pkgsrc/editors/tweak tweak: honor CFLAGS/LDFLAGS



details:   https://anonhg.NetBSD.org/pkgsrc/rev/567816dc8e3d
branches:  trunk
changeset: 452723:567816dc8e3d
user:      nia <nia%pkgsrc.org@localhost>
date:      Fri May 14 14:22:04 2021 +0000

description:
tweak: honor CFLAGS/LDFLAGS

diffstat:

 editors/tweak/distinfo               |   4 ++--
 editors/tweak/patches/patch-Makefile |  17 +++++++++++++----
 2 files changed, 15 insertions(+), 6 deletions(-)

diffs (50 lines):

diff -r b9c284d72d81 -r 567816dc8e3d editors/tweak/distinfo
--- a/editors/tweak/distinfo    Fri May 14 14:19:44 2021 +0000
+++ b/editors/tweak/distinfo    Fri May 14 14:22:04 2021 +0000
@@ -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 -r b9c284d72d81 -r 567816dc8e3d editors/tweak/patches/patch-Makefile
--- a/editors/tweak/patches/patch-Makefile      Fri May 14 14:19:44 2021 +0000
+++ b/editors/tweak/patches/patch-Makefile      Fri May 14 14:22:04 2021 +0000
@@ -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 @@
  
  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



Home | Main Index | Thread Index | Old Index