From 8590ec91fa58cfd4dfaac8b768fcc29f50437dcf Mon Sep 17 00:00:00 2001 From: joerg Date: Fri, 29 Jan 2010 19:31:33 +0000 Subject: DESTDIR support --- editors/ex/Makefile | 4 +++- editors/ex/distinfo | 4 ++-- editors/ex/patches/patch-aa | 30 +++++++++++++++++------------- editors/gate/Makefile | 7 ++++++- 4 files changed, 28 insertions(+), 17 deletions(-) (limited to 'editors') diff --git a/editors/ex/Makefile b/editors/ex/Makefile index 650a9c45661..458a601dd57 100644 --- a/editors/ex/Makefile +++ b/editors/ex/Makefile @@ -1,4 +1,4 @@ -# $NetBSD: Makefile,v 1.6 2009/12/15 23:24:33 zafer Exp $ +# $NetBSD: Makefile,v 1.7 2010/01/29 19:39:24 joerg Exp $ # DISTNAME= ex-040103 @@ -11,4 +11,6 @@ HOMEPAGE= http://ex-vi.sourceforge.net/ COMMENT= Berkeley vi 3.7 LICENSE= original-bsd +PKG_DESTDIR_SUPPORT= user-destdir + .include "../../mk/bsd.pkg.mk" diff --git a/editors/ex/distinfo b/editors/ex/distinfo index c192e7e3d19..e1700ae2ed5 100644 --- a/editors/ex/distinfo +++ b/editors/ex/distinfo @@ -1,9 +1,9 @@ -$NetBSD: distinfo,v 1.11 2006/07/22 04:23:29 minskim Exp $ +$NetBSD: distinfo,v 1.12 2010/01/29 19:39:24 joerg Exp $ SHA1 (ex-040103.tar.gz) = 51fa1d613b37a4f3aed1ef2968be691465cdff09 RMD160 (ex-040103.tar.gz) = 5fc3f222dde5a8d00e1b233281ccf210affdbdf1 Size (ex-040103.tar.gz) = 284130 bytes -SHA1 (patch-aa) = 134513a18d1a5192818eccd456d91857fda82860 +SHA1 (patch-aa) = be450377abc260617a6dd42bbcb626a5d4ca75a4 SHA1 (patch-ab) = 5bac9911e71b7fe787023568a7a46d1e87fb4d0e SHA1 (patch-ac) = 0401448724a4aba59b4aeb07a4cb00982bb52d98 SHA1 (patch-ad) = 31bafb04f553ca286baf90505da450964fea9954 diff --git a/editors/ex/patches/patch-aa b/editors/ex/patches/patch-aa index f13f1986511..fff56d57048 100644 --- a/editors/ex/patches/patch-aa +++ b/editors/ex/patches/patch-aa @@ -1,15 +1,19 @@ -$NetBSD: patch-aa,v 1.5 2005/11/08 21:46:03 rillig Exp $ +$NetBSD: patch-aa,v 1.6 2010/01/29 19:39:24 joerg Exp $ ---- Makefile.orig Sat Jan 3 15:22:47 2004 -+++ Makefile Tue Nov 8 22:41:34 2005 -@@ -83,13 +83,15 @@ - BINDIR = bin - LIBEXECDIR = libexec - MANDIR = man +--- Makefile.orig 2004-01-03 14:22:47.000000000 +0000 ++++ Makefile +@@ -80,16 +80,16 @@ + # located below $(DESTDIR). $(PRESERVEDIR) is used for recovery files. It + # will get mode 1777. + # +-BINDIR = bin +-LIBEXECDIR = libexec +-MANDIR = man -DESTDIR = /usr/local -PRESERVEDIR = /var/preserve -+#DESTDIR = /usr/local -+DESTDIR = ${PREFIX} ++BINDIR = ${PREFIX}/bin ++LIBEXECDIR = ${PREFIX}/libexec ++MANDIR = ${PREFIX}/${PKGMANDIR} +PRESERVEDIR = /var/tmp/vi.recover # @@ -21,7 +25,7 @@ $NetBSD: patch-aa,v 1.5 2005/11/08 21:46:03 rillig Exp $ # # Compiler and linker flags. -@@ -140,9 +142,9 @@ +@@ -140,9 +140,9 @@ FEATURES = -DLISPCODE -DCHDIR -DFASTTAG # advanced multibyte character support etc. which might not be present # on your system. # @@ -34,7 +38,7 @@ $NetBSD: patch-aa,v 1.5 2005/11/08 21:46:03 rillig Exp $ # # These settings should be correct for any modern Unix. -@@ -182,7 +184,7 @@ +@@ -182,7 +182,7 @@ OSTYPE = -DVMUNIX -DPOSIX_1 # On System V, the terminfo library may be more accurate than the termcap # file. To use it, link against the curses library. # @@ -43,7 +47,7 @@ $NetBSD: patch-aa,v 1.5 2005/11/08 21:46:03 rillig Exp $ # # You may also get terminfo access by using the ncurses library. # -@@ -191,7 +193,7 @@ +@@ -191,7 +191,7 @@ OSTYPE = -DVMUNIX -DPOSIX_1 # The preferred choice for ex on Linux and other systems that provide a good # termcap file is the 2.11BSD termcap library included here. # @@ -52,7 +56,7 @@ $NetBSD: patch-aa,v 1.5 2005/11/08 21:46:03 rillig Exp $ # # Since ex uses sbrk() internally, a conflict with the libc's version of -@@ -297,7 +299,7 @@ +@@ -297,7 +297,7 @@ install: all install-man mv $(DESTDIR)/$(BINDIR)/ex $(DESTDIR)/$(BINDIR)/ex.old.$$$$; \ rm -f $(DESTDIR)/$(BINDIR)/ex.old.$$$$; \ fi diff --git a/editors/gate/Makefile b/editors/gate/Makefile index 00ff913b9ed..7229cc8462f 100644 --- a/editors/gate/Makefile +++ b/editors/gate/Makefile @@ -1,4 +1,4 @@ -# $NetBSD: Makefile,v 1.1.1.1 2005/12/06 22:42:25 wiz Exp $ +# $NetBSD: Makefile,v 1.2 2010/01/29 19:37:48 joerg Exp $ # DISTNAME= gate-2.06 @@ -9,7 +9,12 @@ MAINTAINER= hugor@users.sourceforge.net HOMEPAGE= http://www.unixpapa.com/gate.html COMMENT= Lightweight text editor +PKG_DESTDIR_SUPPORT= user-destdir + GNU_CONFIGURE= yes BUILD_TARGET= # empty +INSTALL_MAKE_FLAGS+= prefix=${DESTDIR}${PREFIX} \ + mandir=${DESTDIR}${PREFIX}/${PKGMANDIR} + .include "../../mk/bsd.pkg.mk" -- cgit v1.2.3