aboutsummaryrefslogtreecommitdiff
path: root/Mk/bsd.port.mk
diff options
context:
space:
mode:
authorErwin Lansing <erwin@FreeBSD.org>2010-10-13 09:04:30 +0000
committerErwin Lansing <erwin@FreeBSD.org>2010-10-13 09:04:30 +0000
commitc427b101dad26a75029a20ad8826013a06859150 (patch)
tree54f52b4805ee7e3ace5df920324212183e6d4673 /Mk/bsd.port.mk
parent38ade943a6d4271a916b1b2e695c4b7bd4b5f703 (diff)
downloadports-c427b101dad26a75029a20ad8826013a06859150.tar.gz
ports-c427b101dad26a75029a20ad8826013a06859150.zip
- add INSTALL_LIB target [1]
- Add PLIST_DIRSTRY macro [2] PR: 150303 [1], 150337 [2] Submitted by: rene [1], kwm [2]
Notes
Notes: svn path=/head/; revision=262948
Diffstat (limited to 'Mk/bsd.port.mk')
-rw-r--r--Mk/bsd.port.mk21
1 files changed, 15 insertions, 6 deletions
diff --git a/Mk/bsd.port.mk b/Mk/bsd.port.mk
index dfa004b120eb..87dab52f0077 100644
--- a/Mk/bsd.port.mk
+++ b/Mk/bsd.port.mk
@@ -288,12 +288,12 @@ FreeBSD_MAINTAINER= portmgr@FreeBSD.org
# settable options. (Setting USE_* in /etc/make.conf is always wrong).
#
# WITH_DEBUG - If set, debugging flags are added to CFLAGS and the
-# binaries don't get stripped by INSTALL_PROGRAM.
-# Besides, individual ports might add their specific
-# to produce binaries for debugging purposes.
-# You can override the debug flags that are passed to
-# the compiler by setting DEBUG_FLAGS. It is set to
-# "-g" at default.
+# binaries don't get stripped by INSTALL_PROGRAM or
+# INSTALL_LIB. Besides, individual ports might
+# add their specific to produce binaries for debugging
+# purposes. You can override the debug flags that are
+# passed to the compiler by setting DEBUG_FLAGS. It is
+# set to "-g" at default.
#
# USE_BZIP2 - If set, this port tarballs use bzip2, not gzip, for
# compression.
@@ -616,6 +616,7 @@ FreeBSD_MAINTAINER= portmgr@FreeBSD.org
# default, also strips them, unless ${STRIP} is
# overridden to be the empty string).
# INSTALL_KLD - As INSTALL_PROGRAM, but without the STRIP.
+# INSTALL_LIB - As INSTALL_DATA, but also strips the file.
# INSTALL_SCRIPT
# - A command to install executable scripts.
# INSTALL_DATA - A command to install sharable data.
@@ -970,6 +971,7 @@ FreeBSD_MAINTAINER= portmgr@FreeBSD.org
# Default: ${PORTSDIR}/Templates/BSD.local.dist or
# /etc/mtree/BSD.usr.dist if ${PREFIX} == "/usr".
# PLIST_DIRS - Directories to be added to packing list
+# PLIST_DIRSTRY - Directories to be added to packing list and try to remove them.
# PLIST_FILES - Files and symbolic links to be added to packing list
#
# PLIST - Name of the `packing list' file.
@@ -2424,6 +2426,8 @@ INSTALL_PROGRAM= \
${INSTALL} ${COPY} ${STRIP} ${_BINOWNGRP} -m ${BINMODE}
INSTALL_KLD= \
${INSTALL} ${COPY} ${_BINOWNGRP} -m ${BINMODE}
+INSTALL_LIB= \
+ ${INSTALL} ${COPY} ${STRIP} ${_SHROWNGRP} -m ${SHAREMODE}
INSTALL_SCRIPT= \
${INSTALL} ${COPY} ${_BINOWNGRP} -m ${BINMODE}
INSTALL_DATA= \
@@ -2432,6 +2436,7 @@ INSTALL_MAN= \
${INSTALL} ${COPY} ${_MANOWNGRP} -m ${MANMODE}
INSTALL_MACROS= BSD_INSTALL_PROGRAM="${INSTALL_PROGRAM}" \
+ BSD_INSTALL_LIB="${INSTALL_LIB}" \
BSD_INSTALL_SCRIPT="${INSTALL_SCRIPT}" \
BSD_INSTALL_DATA="${INSTALL_DATA}" \
BSD_INSTALL_MAN="${INSTALL_MAN}"
@@ -3780,6 +3785,7 @@ do-configure:
CFLAGS="${CFLAGS}" CXXFLAGS="${CXXFLAGS}" \
INSTALL="/usr/bin/install -c ${_BINOWNGRP}" \
INSTALL_DATA="${INSTALL_DATA}" \
+ INSTALL_LIB="${INSTALL_LIB}" \
INSTALL_PROGRAM="${INSTALL_PROGRAM}" \
INSTALL_SCRIPT="${INSTALL_SCRIPT}" \
${CONFIGURE_ENV} ./${CONFIGURE_SCRIPT} ${CONFIGURE_ARGS}; then \
@@ -5710,6 +5716,9 @@ generate-plist:
.for dir in ${PLIST_DIRS}
@${ECHO_CMD} ${dir} | ${SED} ${PLIST_SUB:S/$/!g/:S/^/ -e s!%%/:S/=/%%!/} -e 's,^,@dirrm ,' >> ${TMPPLIST}
.endfor
+.for dir in ${PLIST_DIRSTRY}
+ @${ECHO_CMD} ${dir} | ${SED} ${PLIST_SUB:S/$/!g/:S/^/ -e s!%%/:S/=/%%!/} -e 's,^,@dirrmtry ,' >> ${TMPPLIST}
+.endfor
.if defined(USE_LINUX_PREFIX)
.if defined(USE_LDCONFIG)
@${ECHO_CMD} "@exec ${LDCONFIG_CMD}" >> ${TMPPLIST}