summaryrefslogtreecommitdiff
path: root/textproc/antiword
diff options
context:
space:
mode:
authorjoerg <joerg>2008-06-12 02:14:13 +0000
committerjoerg <joerg>2008-06-12 02:14:13 +0000
commit39d7fb93432416d872ed34e0025741cc93068c06 (patch)
treec12b9c282e2706cb6bac87456615dfdf2b256e55 /textproc/antiword
parentcce8b72ae5b66d3a54ac565ef8ac6780597301bc (diff)
downloadpkgsrc-39d7fb93432416d872ed34e0025741cc93068c06.tar.gz
Add DESTDIR support.
Diffstat (limited to 'textproc/antiword')
-rw-r--r--textproc/antiword/Makefile6
-rw-r--r--textproc/antiword/distinfo4
-rw-r--r--textproc/antiword/patches/patch-aa12
3 files changed, 13 insertions, 9 deletions
diff --git a/textproc/antiword/Makefile b/textproc/antiword/Makefile
index 3656d4f27c8..5ddfd104bb0 100644
--- a/textproc/antiword/Makefile
+++ b/textproc/antiword/Makefile
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.21 2008/01/09 20:09:35 wiz Exp $
+# $NetBSD: Makefile,v 1.22 2008/06/12 02:14:47 joerg Exp $
#
DISTNAME= antiword-0.37
@@ -10,6 +10,8 @@ MAINTAINER= rh@NetBSD.org
HOMEPAGE= http://www.winfield.demon.nl/index.html
COMMENT= Free MS Word to text and PostScript converter
+PKG_DESTDIR_SUPPORT= user-destdir
+
CONFLICTS= siag<3.6.1
USE_TOOLS+= mktemp:run
@@ -21,6 +23,8 @@ REPLACE.bash.old= /bin/bash
REPLACE.bash.new= ${SH}
REPLACE_FILES.bash= kantiword
+INSTALLATION_DIRS= bin ${PKGMANDIR}/man1
+
post-patch:
cd ${WRKSRC} ; \
for pf in antiword.h Docs/antiword.1 ; do \
diff --git a/textproc/antiword/distinfo b/textproc/antiword/distinfo
index 388e1500081..3480ba912be 100644
--- a/textproc/antiword/distinfo
+++ b/textproc/antiword/distinfo
@@ -1,7 +1,7 @@
-$NetBSD: distinfo,v 1.18 2006/03/09 14:50:31 ghen Exp $
+$NetBSD: distinfo,v 1.19 2008/06/12 02:14:47 joerg Exp $
SHA1 (antiword-0.37.tar.gz) = 4364f7f99cb2d37f7d1d5bc14a335ccc0c67292e
RMD160 (antiword-0.37.tar.gz) = 506ca4a7a7fa9fd4574092798a7fffacd9a3a0a0
Size (antiword-0.37.tar.gz) = 317884 bytes
-SHA1 (patch-aa) = 27cd582ced9822bbaefddd73d2fe2ba6c904ae1f
+SHA1 (patch-aa) = f8f5d2b5120bba46495cb145930d3bcac7bdf9b2
SHA1 (patch-ab) = d2cb15824b78346a8a5ae301b0618a81437ce971
diff --git a/textproc/antiword/patches/patch-aa b/textproc/antiword/patches/patch-aa
index df8197c14cb..adc06a9a548 100644
--- a/textproc/antiword/patches/patch-aa
+++ b/textproc/antiword/patches/patch-aa
@@ -1,4 +1,4 @@
-$NetBSD: patch-aa,v 1.10 2005/11/14 23:04:13 wiz Exp $
+$NetBSD: patch-aa,v 1.11 2008/06/12 02:14:47 joerg Exp $
--- Makefile.orig 2005-10-29 19:13:15.000000000 +0200
+++ Makefile
@@ -36,8 +36,8 @@ $NetBSD: patch-aa,v 1.10 2005/11/14 23:04:13 wiz Exp $
-GLOBAL_INSTALL_DIR = /usr/local/bin
-GLOBAL_RESOURCES_DIR = /usr/share/antiword
-+GLOBAL_INSTALL_DIR = ${PREFIX}/bin
-+GLOBAL_RESOURCES_DIR = ${PREFIX}/share/antiword
++GLOBAL_INSTALL_DIR = ${DESTDIR}${PREFIX}/bin
++GLOBAL_RESOURCES_DIR = ${DESTDIR}${PREFIX}/share/antiword
all: $(PROGS)
@@ -48,11 +48,11 @@ $NetBSD: patch-aa,v 1.10 2005/11/14 23:04:13 wiz Exp $
- cp -pf Resources/* $(LOCAL_RESOURCES_DIR)
+ ${BSD_INSTALL_PROGRAM} ${PROGS} ${GLOBAL_INSTALL_DIR}
+ ${BSD_INSTALL_SCRIPT} ${SCRIPTS} ${GLOBAL_INSTALL_DIR}
-+ ${BSD_INSTALL_DATA_DIR} ${PREFIX}/share/doc/antiword
++ ${BSD_INSTALL_DATA_DIR} ${DESTDIR}${PREFIX}/share/doc/antiword
+.for file in COPYING ChangeLog FAQ History Netscape QandA ReadMe
-+ ${BSD_INSTALL_DATA} Docs/${file} ${PREFIX}/share/doc/antiword
++ ${BSD_INSTALL_DATA} Docs/${file} ${DESTDIR}${PREFIX}/share/doc/antiword
+.endfor
-+ ${BSD_INSTALL_MAN} Docs/antiword.1 ${PREFIX}/man/man1/antiword.1
++ ${BSD_INSTALL_MAN} Docs/antiword.1 ${DESTDIR}${PREFIX}/man/man1/antiword.1
+ ${BSD_INSTALL_DATA_DIR} ${GLOBAL_RESOURCES_DIR}
+ for i in Resources/* ; do \
+ ${BSD_INSTALL_DATA} $$i ${GLOBAL_RESOURCES_DIR};\