2013-02-25 22:26:55 +01:00
|
|
|
$NetBSD: patch-aa,v 1.2 2013/02/25 21:26:55 ryoon Exp $
|
2013-01-30 12:34:58 +01:00
|
|
|
|
|
|
|
* Pass pkgsrc environment variables
|
|
|
|
|
2013-02-25 22:26:55 +01:00
|
|
|
--- Makefile.orig 2013-01-21 13:20:15.000000000 +0000
|
2013-01-30 12:34:58 +01:00
|
|
|
+++ Makefile
|
2013-02-25 22:26:55 +01:00
|
|
|
@@ -5,7 +5,7 @@ CFLAGS?=-g -O2 -Wall
|
2013-01-30 12:34:58 +01:00
|
|
|
CPPFLAGS+=-I. -DVERSION=\"$(VERSION)\"
|
2013-02-25 22:26:55 +01:00
|
|
|
LDLIBS+=-lz # += to allow solaris and friends add their libs like -lsocket
|
|
|
|
INSTALL = install
|
2013-01-30 12:34:58 +01:00
|
|
|
-prefix?=/usr/local
|
|
|
|
+prefix?=${PREFIX}
|
2013-02-25 22:26:55 +01:00
|
|
|
target=$(DESTDIR)$(prefix)
|
2013-01-30 12:34:58 +01:00
|
|
|
|
2013-02-25 22:26:55 +01:00
|
|
|
OBJS= debug.o \
|
|
|
|
@@ -51,9 +51,9 @@ pylint:
|
2013-01-30 12:34:58 +01:00
|
|
|
|
2013-02-25 22:26:55 +01:00
|
|
|
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"
|
2013-01-30 12:34:58 +01:00
|
|
|
|
2013-02-25 22:26:55 +01:00
|
|
|
tags: *.c *.h
|
|
|
|
ctags *.c *.h
|