pkgsrc/editors/tweak/patches/patch-Makefile
2016-04-01 11:38:57 +00:00

28 lines
590 B
Text

$NetBSD: patch-Makefile,v 1.3 2016/04/01 11:38:57 jperkin Exp $
DESTDIR and curses support.
--- Makefile.orig 2006-05-18 08:27:43.000000000 +0000
+++ Makefile
@@ -22,9 +22,10 @@ LINK := gcc
LFLAGS :=
LIBS :=
+DESTDIR=
PREFIX=/usr/local
-BINDIR=$(PREFIX)/bin
-MANDIR=$(PREFIX)/man/man1
+BINDIR=$(DESTDIR)$(PREFIX)/bin
+MANDIR=$(DESTDIR)$(PREFIX)/${PKGMANDIR}/man1
TWEAK := main.o keytab.o actions.o search.o rcfile.o buffer.o btree.o
@@ -34,7 +35,7 @@ ifeq ($(SLANG),yes)
LIBS += -lslang
TWEAK += slang.o
else
-LIBS += -lncurses
+LIBS += -lcurses
TWEAK += curses.o
endif