pkgsrc-Changes archive

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

CVS commit: pkgsrc/time/tty-clock/patches



Module Name:    pkgsrc
Committed By:   nia
Date:           Mon Dec 14 09:15:33 UTC 2020

Added Files:
        pkgsrc/time/tty-clock/patches: patch-Makefile

Log Message:
tty-clock: Add missing patch.


To generate a diff of this commit:
cvs rdiff -u -r0 -r1.1 pkgsrc/time/tty-clock/patches/patch-Makefile

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Added files:

Index: pkgsrc/time/tty-clock/patches/patch-Makefile
diff -u /dev/null pkgsrc/time/tty-clock/patches/patch-Makefile:1.1
--- /dev/null   Mon Dec 14 09:15:33 2020
+++ pkgsrc/time/tty-clock/patches/patch-Makefile        Mon Dec 14 09:15:33 2020
@@ -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