pkgsrc-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[pkgsrc/trunk]: pkgsrc/time/tty-clock/patches tty-clock: Add missing patch.
details: https://anonhg.NetBSD.org/pkgsrc/rev/140b401cdfcd
branches: trunk
changeset: 443496:140b401cdfcd
user: nia <nia%pkgsrc.org@localhost>
date: Mon Dec 14 09:15:33 2020 +0000
description:
tty-clock: Add missing patch.
diffstat:
time/tty-clock/patches/patch-Makefile | 24 ++++++++++++++++++++++++
1 files changed, 24 insertions(+), 0 deletions(-)
diffs (28 lines):
diff -r b8de68d24abd -r 140b401cdfcd time/tty-clock/patches/patch-Makefile
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/time/tty-clock/patches/patch-Makefile Mon Dec 14 09:15:33 2020 +0000
@@ -0,0 +1,24 @@
+$NetBSD: patch-Makefile,v 1.1 2020/12/14 09:15:33 nia Exp $
+
+Don't assume ncurses.
+
+--- Makefile.orig 2017-01-15 03:21:24.000000000 +0000
++++ Makefile
+@@ -9,17 +9,6 @@ PREFIX ?= /usr/local
+ INSTALLPATH = ${DESTDIR}${PREFIX}/bin
+ MANPATH = ${DESTDIR}${PREFIX}/share/man/man1
+
+-ifeq ($(shell sh -c 'which ncurses5-config>/dev/null 2>/dev/null && echo y'), y)
+- CFLAGS += -Wall -g $$(ncurses5-config --cflags)
+- LDFLAGS += $$(ncurses5-config --libs)
+-else ifeq ($(shell sh -c 'which ncursesw5-config>/dev/null 2>/dev/null && echo y'), y)
+- CFLAGS += -Wall -g $$(ncursesw5-config --cflags)
+- LDFLAGS += $$(ncursesw5-config --libs)
+-else
+- CFLAGS += -Wall -g $$(pkg-config --cflags ncurses)
+- LDFLAGS += $$(pkg-config --libs ncurses)
+-endif
+-
+ tty-clock : ${SRC}
+
+ @echo "building ${SRC}"
Home |
Main Index |
Thread Index |
Old Index