summaryrefslogtreecommitdiff
path: root/Mk/bsd.port.mk
diff options
context:
space:
mode:
authorSatoshi Asami <asami@FreeBSD.org>1996-08-15 05:55:33 +0000
committerSatoshi Asami <asami@FreeBSD.org>1996-08-15 05:55:33 +0000
commit29c5a9d322fa0929245ce67f96cc6b0cd98640f9 (patch)
treeba5438957fa3f9cf7730a250c30529b80bd73867 /Mk/bsd.port.mk
parentAdd socks5 -- commercial use prohibited. (diff)
(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 'Mk/bsd.port.mk')
-rw-r--r--Mk/bsd.port.mk33
1 files changed, 29 insertions, 4 deletions
diff --git a/Mk/bsd.port.mk b/Mk/bsd.port.mk
index b896a03ca8d7..f45998202686 100644
--- a/Mk/bsd.port.mk
+++ b/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)