summaryrefslogtreecommitdiff
path: root/textproc
diff options
context:
space:
mode:
authorwiz <wiz@pkgsrc.org>2009-02-16 10:50:23 +0000
committerwiz <wiz@pkgsrc.org>2009-02-16 10:50:23 +0000
commit1e0c0623db8a776afe00370c7fc7dc91ccbdde70 (patch)
treea78ece9851f1376bc5f399d6b0ceba22c67228e6 /textproc
parent4bf4a18365d6880ee00a344cda18f7989ef0e89b (diff)
downloadpkgsrc-1e0c0623db8a776afe00370c7fc7dc91ccbdde70.tar.gz
Convert to user-destdir. Fix an interpreter path while here.
Bump PKGREVISION for the latter.
Diffstat (limited to 'textproc')
-rw-r--r--textproc/groff/Makefile14
1 files changed, 11 insertions, 3 deletions
diff --git a/textproc/groff/Makefile b/textproc/groff/Makefile
index f8cd15ca601..a60b83bbeca 100644
--- a/textproc/groff/Makefile
+++ b/textproc/groff/Makefile
@@ -1,8 +1,8 @@
-# $NetBSD: Makefile,v 1.48 2008/11/10 17:21:38 wiz Exp $
+# $NetBSD: Makefile,v 1.49 2009/02/16 10:50:23 wiz Exp $
#
DISTNAME= groff-1.19.2
-PKGREVISION= 5
+PKGREVISION= 6
CATEGORIES= textproc
MASTER_SITES= ${MASTER_SITE_GNU:=groff/}
@@ -12,6 +12,12 @@ COMMENT= GNU roff text processing suite
CHECK_PERMS= NO
+PKG_DESTDIR_SUPPORT= user-destdir
+INSTALL_MAKE_FLAGS+= prefix=${DESTDIR}${PREFIX}
+INSTALL_MAKE_FLAGS+= appresdir=${DESTDIR}${PREFIX}/lib/X11/app-defaults
+INSTALL_MAKE_FLAGS+= infodir=${DESTDIR}${PREFIX}/info
+INSTALL_MAKE_FLAGS+= mandir=${DESTDIR}${PREFIX}/${PKGMANDIR}
+
USE_LANGUAGES= c c++
GNU_CONFIGURE= YES
CONFIGURE_ENV+= PERLPATH=${PERL5:Q}
@@ -20,6 +26,8 @@ USE_FEATURES= getopt_long
INFO_FILES= YES
+REPLACE_AWK+= font/devlj4/generate/special.awk
+
REPLACE_INTERPRETER+= sed
REPLACE.sed.old= .*/sed
REPLACE.sed.new= ${SED}
@@ -67,7 +75,7 @@ post-patch:
post-install:
${INSTALL_DATA} ${WRKDIR}/mdoc.local \
- ${PREFIX}/share/groff/site-tmac
+ ${DESTDIR}${PREFIX}/share/groff/site-tmac
${FIND} ${PREFIX}/lib/groff/site-tmac -type f -print | \
${SED} 's;${PREFIX}/;;g' > ${WRKDIR}/PLIST-local