blob: b341113fd0802a09c78fc15184503e788452e565 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
|
$NetBSD: patch-aa,v 1.2 2013/02/25 21:26:55 ryoon Exp $
* Pass pkgsrc environment variables
--- Makefile.orig 2013-01-21 13:20:15.000000000 +0000
+++ Makefile
@@ -5,7 +5,7 @@ CFLAGS?=-g -O2 -Wall
CPPFLAGS+=-I. -DVERSION=\"$(VERSION)\"
LDLIBS+=-lz # += to allow solaris and friends add their libs like -lsocket
INSTALL = install
-prefix?=/usr/local
+prefix?=${PREFIX}
target=$(DESTDIR)$(prefix)
OBJS= debug.o \
@@ -51,9 +51,9 @@ pylint:
install: cvsps.1 all
$(INSTALL) -d "$(target)/bin"
- $(INSTALL) -d "$(target)/share/man/man1"
- $(INSTALL) cvsps "$(target)/bin"
- $(INSTALL) -m 644 cvsps.1 "$(target)/share/man/man1"
+ $(INSTALL) -d "$(target)/${PKGMANDIR}/man1"
+ $(INSTALL) cvsps "$(target)/bin/cvsps3"
+ $(INSTALL) -m 644 cvsps.1 "$(target)/${PKGMANDIR}/man1/cvsps3.1"
tags: *.c *.h
ctags *.c *.h
|