aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorobrien <obrien@FreeBSD.org>2001-07-10 06:23:26 +0800
committerobrien <obrien@FreeBSD.org>2001-07-10 06:23:26 +0800
commitbfdfd934e22ca6764e0373aa3366b275fbea3adc (patch)
tree0f871b0c82d01b5764e05c1b8e11fc23a148530f
parent6912d656c0866676fe82b8fa84d8ed41011b39ef (diff)
downloadfreebsd-ports-gnome-bfdfd934e22ca6764e0373aa3366b275fbea3adc.tar.gz
freebsd-ports-gnome-bfdfd934e22ca6764e0373aa3366b275fbea3adc.tar.zst
freebsd-ports-gnome-bfdfd934e22ca6764e0373aa3366b275fbea3adc.zip
Add "DOCSDIR=${PREFIX}/share/doc/${PORTNAME}" so every port in the world
can stop duplicating this. We can also add knobs in the future to autmatically create the directory and what not. Approved by: portmgr
-rw-r--r--Mk/bsd.port.mk3
1 files changed, 3 insertions, 0 deletions
diff --git a/Mk/bsd.port.mk b/Mk/bsd.port.mk
index 4644673800c3..b13d199e0c73 100644
--- a/Mk/bsd.port.mk
+++ b/Mk/bsd.port.mk
@@ -436,6 +436,7 @@ FreeBSD_MAINTAINER= portmgr@FreeBSD.org
# apply here. It is recommended that you use
# %%PREFIX%% for ${PREFIX}, %%LOCALBASE%% for
# ${LOCALBASE} and %%X11BASE%% for ${X11BASE}.
+# DOCSDIR - Name of the directory to install the packages docs in.
#
# Note that the install target will automatically add manpages (see
# above) and also substitute special sequences of characters (delimited
@@ -1372,6 +1373,8 @@ LDCONFIG_PLIST!= ${ECHO} ${LDCONFIG_DIRS} | ${SED} ${PLIST_SUB:S/$/!g/:S/^/ -e s
LDCONFIG_RUNLIST!= ${ECHO} ${LDCONFIG_PLIST} | ${SED} -e "s!%D!${PREFIX}!"
.endif
+DOCSDIR?= ${PREFIX}/share/doc/${PORTNAME}
+
.MAIN: all
################################################################