summaryrefslogtreecommitdiff
path: root/converters/odt2txt/patches
diff options
context:
space:
mode:
authorjoerg <joerg>2010-01-29 16:38:20 +0000
committerjoerg <joerg>2010-01-29 16:38:20 +0000
commit2eabcc474d9e634d398aff503d16de461d7343b3 (patch)
treec5592002161b235d4d01da9b26c529c239082947 /converters/odt2txt/patches
parent9f9b9507875f2daa04fa89bd75efaa024ab0a519 (diff)
downloadpkgsrc-2eabcc474d9e634d398aff503d16de461d7343b3.tar.gz
DESTDIR support
Diffstat (limited to 'converters/odt2txt/patches')
-rw-r--r--converters/odt2txt/patches/patch-aa32
1 files changed, 21 insertions, 11 deletions
diff --git a/converters/odt2txt/patches/patch-aa b/converters/odt2txt/patches/patch-aa
index 125ce16692c..5da42768eb5 100644
--- a/converters/odt2txt/patches/patch-aa
+++ b/converters/odt2txt/patches/patch-aa
@@ -1,19 +1,29 @@
-$NetBSD: patch-aa,v 1.1.1.1 2008/04/17 12:33:56 reed Exp $
+$NetBSD: patch-aa,v 1.2 2010/01/29 16:47:52 joerg Exp $
---- Makefile.orig 2007-05-21 15:50:37.000000000 -0500
-+++ Makefile 2008-04-14 15:30:47.000000000 -0500
-@@ -19,10 +19,14 @@
+--- Makefile.orig 2007-05-21 20:50:37.000000000 +0000
++++ Makefile
+@@ -19,10 +19,8 @@ ALL_OBJ = $(OBJ) $(TEST_OBJ)
INSTALL = install
GROFF = groff
-+ifndef DESTDIR
- DESTDIR = /usr/local
-+endif
- PREFIX =
+-DESTDIR = /usr/local
+-PREFIX =
BINDIR = $(PREFIX)/bin
-+ifndef MANDIR
- MANDIR = $(PREFIX)/share/man
-+endif
+-MANDIR = $(PREFIX)/share/man
++MANDIR = $(PREFIX)/${PKGMANDIR}/man
MAN1DIR = $(MANDIR)/man1
ifeq ($(UNAME_S),FreeBSD)
+@@ -79,10 +77,8 @@ $(ALL_OBJ): Makefile
+ all: $(BIN)
+
+ install: $(BIN) $(MAN)
+- $(INSTALL) -d -m755 $(DESTDIR)$(BINDIR)
+- $(INSTALL) $(BIN) $(DESTDIR)$(BINDIR)
+- $(INSTALL) -d -m755 $(DESTDIR)$(MAN1DIR)
+- $(INSTALL) $(MAN) $(DESTDIR)$(MAN1DIR)
++ $(BSD_INSTALL_PROGRAM) $(BIN) $(DESTDIR)$(BINDIR)
++ $(BSD_INSTALL_MAN) $(MAN) $(DESTDIR)$(MAN1DIR)
+
+ odt2txt.html: $(MAN)
+ $(GROFF) -Thtml -man $(MAN) > $@