summaryrefslogtreecommitdiffstats
path: root/share/mk
diff options
context:
space:
mode:
authorasami <asami@FreeBSD.org>1996-08-15 05:55:33 +0000
committerasami <asami@FreeBSD.org>1996-08-15 05:55:33 +0000
commit67b80e1b472a60e6f993606b4977c361238a5267 (patch)
tree7266caad7b697352419c37bfcdf493007816221a /share/mk
parentc244429aa628b07406d26d351444a51dcc59ad09 (diff)
downloadFreeBSD-src-67b80e1b472a60e6f993606b4977c361238a5267.zip
FreeBSD-src-67b80e1b472a60e6f993606b4977c361238a5267.tar.gz
(1) Add myself as MAINTAINER (of this file) -- commented out so it
won't be pulled into individual ports that include this file. ;) (2) Document MOTIFLIB, it's not set in the ports Makefiles but is important for Motif ports (already documented in the handbook). (3) Add INSTALL_PROGRAM, INSTALL_SCRIPT, INSTALL_DATA, INSTALL_MAN as "aliases" of the appropriate install command line, for use in *-install targets. Reviewed by: the ports list (item 3 only)
Diffstat (limited to 'share/mk')
-rw-r--r--share/mk/bsd.port.mk33
1 files changed, 29 insertions, 4 deletions
diff --git a/share/mk/bsd.port.mk b/share/mk/bsd.port.mk
index b896a03..f459982 100644
--- a/share/mk/bsd.port.mk
+++ b/share/mk/bsd.port.mk
@@ -3,10 +3,16 @@
# bsd.port.mk - 940820 Jordan K. Hubbard.
# This file is in the public domain.
#
-# $Id: bsd.port.mk,v 1.217 1996/07/27 11:54:30 andreas Exp $
+# $Id: bsd.port.mk,v 1.218 1996/08/07 08:25:08 asami Exp $
#
# Please view me with 4 column tabs!
+# This is for this file, not for the ports that includes it, so it's
+# commented out -- the person to contact if you have questions/
+# suggestions about bsd.port.mk.
+#
+# MAINTAINER= asami@FreeBSD.ORG
+#
# Supported Variables and their behaviors:
#
@@ -38,7 +44,6 @@
#
# Variables that typically apply to an individual port. Non-Boolean
# variables without defaults are *mandatory*.
-#
#
# WRKDIR - A temporary working directory that gets *clobbered* on clean
# (default: ${.CURDIR}/work).
@@ -157,7 +162,10 @@
# HAVE_MOTIF - If set, means system has Motif. Typically set in
# /etc/make.conf.
# MOTIF_STATIC - If set, link libXm statically; otherwise, link it
-# dynamically.
+# dynamically. Typically set in /etc/make.conf.
+# MOTIFLIB - Set automatically to appropriate value depending on
+# ${MOTIF_STATIC}. Substitute references to -lXm with
+# patches to make your port conform to our standards.
#
# Variables to change if you want a special behavior:
#
@@ -170,7 +178,14 @@
# including those of dependencies, without actually building
# any of them).
#
-#
+# Variables that serve as convenient "aliases" for your *-install targets:
+#
+# Use these like: "${INSTALL_PROGRAM} ${WRKSRC}/prog ${PREFIX}/bin".
+# INSTALL_PROGRAM - A command to install binary executables.
+# INSTALL_SCRIPT - A command to install executable scripts.
+# INSTALL_DATA - A command to install sharable data.
+# INSTALL_MAN - A command to install manpages (doesn't compress).
+#
# Default targets and their behaviors:
#
# fetch - Retrieves ${DISTFILES} (and ${PATCHFILES} if defined)
@@ -316,6 +331,16 @@ MTREE_ARGS?= -U -f ${MTREE_LOCAL} -d -e -p
NO_MTREE= yes
.endif
+# A few aliases for *-install targets
+INSTALL_PROGRAM= \
+ ${INSTALL} ${COPY} ${STRIP} -o ${BINOWN} -g ${BINGRP} -m ${BINMODE}
+INSTALL_SCRIPT= \
+ ${INSTALL} ${COPY} -o ${BINOWN} -g ${BINGRP} -m ${BINMODE}
+INSTALL_DATA= \
+ ${INSTALL} ${COPY} -o ${SHAREOWN} -g ${SHAREGRP} -m ${SHAREMODE}
+INSTALL_MAN= \
+ ${INSTALL} ${COPY} -o ${MANOWN} -g ${MANGRP} -m ${MANMODE}
+
# The user can override the NO_PACKAGE by specifying this from
# the make command line
.if defined(FORCE_PACKAGE)
OpenPOWER on IntegriCloud