Return to patch-src_Makefile CVS log | Up to [cvs.NetBSD.org] / pkgsrc / security / pev / patches |
File: [cvs.NetBSD.org] / pkgsrc / security / pev / patches / patch-src_Makefile (download)
Revision 1.2, Tue Dec 9 13:26:40 2014 UTC (9 years, 4 months ago) by khorben
Fixed the default path to "userdb.txt" in pepack(1) (for pkg/49458) |
$NetBSD: patch-src_Makefile,v 1.2 2014/12/09 13:26:40 khorben Exp $ Fixed DESTDIR support --- src/Makefile.orig 2013-01-23 12:37:31.000000000 +0000 +++ src/Makefile @@ -20,15 +20,17 @@ RM = rm -f SOURCES = output.c PROGS = readpe pedis pepack pescan rva2ofs pesec ofs2rva pestr pehash pestr INSTALL = install -m 0755 -SHAREDIR = /usr/share/pev +SHAREDIR = $(DESTDIR)$(PREFIX)/share/pev MAN = ../doc/manpages -MANDIR = /usr/share/man/man1 +MANDIR = $(DESTDIR)$(PREFIX)/man/man1 ####### Build rules # 'make' will compile all binaries all: $(PROGS) +pepack: CPPFLAGS += -DPREFIX=\"$(PREFIX)\" + pestr: CPPFLAGS += -D_GNU_SOURCE=1 pestr: LDFLAGS += -lpcre pestr: pestr.c