aboutsummaryrefslogtreecommitdiffstats
path: root/misc/sh-utils
diff options
context:
space:
mode:
authorlioux <lioux@FreeBSD.org>2001-09-13 08:34:19 +0800
committerlioux <lioux@FreeBSD.org>2001-09-13 08:34:19 +0800
commit8e3720a2bdeb779cdee382ba7489175441cc0f6f (patch)
treebef6727d37de473863c59aaf2b80b45bda298638 /misc/sh-utils
parent0029b9bf497768f8a383b1fedb5b3d30cb8a76b0 (diff)
downloadfreebsd-ports-gnome-8e3720a2bdeb779cdee382ba7489175441cc0f6f.tar.gz
freebsd-ports-gnome-8e3720a2bdeb779cdee382ba7489175441cc0f6f.tar.zst
freebsd-ports-gnome-8e3720a2bdeb779cdee382ba7489175441cc0f6f.zip
o style changes
o honor PREFIX PR: 30390 Submitted by: MAINTAINER
Diffstat (limited to 'misc/sh-utils')
-rw-r--r--misc/sh-utils/Makefile30
1 files changed, 25 insertions, 5 deletions
diff --git a/misc/sh-utils/Makefile b/misc/sh-utils/Makefile
index 7cacdcdb1cc6..5883d7b8f6b1 100644
--- a/misc/sh-utils/Makefile
+++ b/misc/sh-utils/Makefile
@@ -15,13 +15,15 @@ MAINTAINER= clefevre@citeweb.net
LIB_DEPENDS= intl.1:${PORTSDIR}/devel/gettext
-GNU_CONFIGURE= yes
+# Global variables
+#
+GNU_CONFIGURE= yes
CONFIGURE_ARGS= --program-prefix=g
USE_GMAKE= yes
-
-INSTALL_INFO?= install-info
+# PREFIX isn't honored. force it w/ prefix.
+MAKE_ARGS= prefix=${PREFIX}
MAN1= gbasename.1 gchroot.1 gdate.1 gdirname.1 gecho.1 genv.1 \
gexpr.1 gfalse.1 ggroups.1 ghostid.1 ghostname.1 gid.1 \
@@ -29,15 +31,33 @@ MAN1= gbasename.1 gchroot.1 gdate.1 gdirname.1 gecho.1 genv.1 \
gprintf.1 gpwd.1 gsleep.1 gstty.1 gsu.1 gtee.1 gtest.1 \
gtrue.1 gtty.1 guname.1 gusers.1 gwho.1 gwhoami.1 gyes.1
-post-extract:
+# Local variables
+#
+
+INSTALL_INFO?= install-info
+
+# Post-extract
+#
+
+post-extract: remove-info-files
+
+remove-info-files:
@${RM} -f ${WRKSRC}/doc/${PORTNAME}.info*
+# Patch
+#
+
do-patch:
.if !defined(WITH_SUID)
@${PERL} -pi -e "s/u\+s/u\+w/g" ${WRKSRC}/src/Makefile.in
.endif
-post-install:
+# Post-install
+#
+
+post-install: install-info
+
+install-info:
@${INSTALL_INFO} ${PREFIX}/info/${PORTNAME}.info ${PREFIX}/info/dir
.include <bsd.port.mk>