aboutsummaryrefslogtreecommitdiffstats
path: root/textproc/texi2html
diff options
context:
space:
mode:
authorroam <roam@FreeBSD.org>2004-06-09 03:20:55 +0800
committerroam <roam@FreeBSD.org>2004-06-09 03:20:55 +0800
commitabc7c35911afd4aee5979a35985094a60268e6f9 (patch)
treea2eeda6306f6acb1d29e4955e0241a49b2ffc81d /textproc/texi2html
parent190f48ccc4fea511986ef1b2d80330141630ae72 (diff)
downloadfreebsd-ports-gnome-abc7c35911afd4aee5979a35985094a60268e6f9.tar.gz
freebsd-ports-gnome-abc7c35911afd4aee5979a35985094a60268e6f9.tar.zst
freebsd-ports-gnome-abc7c35911afd4aee5979a35985094a60268e6f9.zip
Add the PROGRAM_PREFIX option which allows installation of texi2html under
a different name, e.g. ntexi2html, to avoid conflicts with similarly-named programs from other packages. PR: 62607 Submitted by: Kimura Fuyuki <fuyuki@nigredo.org>
Diffstat (limited to 'textproc/texi2html')
-rw-r--r--textproc/texi2html/Makefile17
-rw-r--r--textproc/texi2html/pkg-plist2
2 files changed, 16 insertions, 3 deletions
diff --git a/textproc/texi2html/Makefile b/textproc/texi2html/Makefile
index f87f83d0a0bf..e5dd3be3a8f4 100644
--- a/textproc/texi2html/Makefile
+++ b/textproc/texi2html/Makefile
@@ -7,7 +7,7 @@
PORTNAME= texi2html
PORTVERSION= 1.66
-PORTREVISION= 1
+PORTREVISION= 2
CATEGORIES= textproc
MASTER_SITES= http://www.cvshome.org/files/70/10/
@@ -20,7 +20,20 @@ USE_AUTOCONF_VER= 253
AUTOMAKE_ARGS= -a
USE_GMAKE= yes
-MAN1= texi2html.1
+PROGRAM_PREFIX?=
+PLIST_SUB= PROGRAM_PREFIX=${PROGRAM_PREFIX}
+
+.if !empty(PROGRAM_PREFIX)
+CONFIGURE_ARGS= --program-prefix="${PROGRAM_PREFIX}"
+.endif
+
+MAN1= ${PROGRAM_PREFIX}texi2html.1
INFO= texi2html
+pre-everything::
+ @${ECHO} ""
+ @${ECHO} "You can define the PROGRAM_PREFIX variable to change the name that"
+ @${ECHO} "the texi2html program is installed as."
+ @${ECHO} ""
+
.include <bsd.port.mk>
diff --git a/textproc/texi2html/pkg-plist b/textproc/texi2html/pkg-plist
index 3b60bb5c6aef..8bf70d3069d8 100644
--- a/textproc/texi2html/pkg-plist
+++ b/textproc/texi2html/pkg-plist
@@ -1,3 +1,3 @@
-bin/texi2html
+bin/%%PROGRAM_PREFIX%%texi2html
%%DOCSDIR%%/texi2html.html
@dirrm %%DOCSDIR%%