ports/150303: [bsd.port.mk] add INSTALL_LIB target
Rene Ladan
rene at FreeBSD.org
Sun Sep 5 16:20:02 UTC 2010
>Number: 150303
>Category: ports
>Synopsis: [bsd.port.mk] add INSTALL_LIB target
>Confidential: no
>Severity: non-critical
>Priority: low
>Responsible: freebsd-ports-bugs
>State: open
>Quarter:
>Keywords:
>Date-Required:
>Class: change-request
>Submitter-Id: current-users
>Arrival-Date: Sun Sep 05 16:20:01 UTC 2010
>Closed-Date:
>Last-Modified:
>Originator: Rene Ladan
>Release: FreeBSD 9-amd64
>Organization:
>Environment:
FreeBSD 9.0-CURRENT r211636
>Description:
As proposed on the freebsd-ports list on 2010-08-14, add an INSTALL_LIB target to cleanly install a stripped version of libraries. This target is the same as the INSTALL_DATA target, but it also strips the binary.
>How-To-Repeat:
>Fix:
Patch attached with submission follows:
Index: bsd.port.mk
===================================================================
RCS file: /home/pcvs/ports/Mk/bsd.port.mk,v
retrieving revision 1.644
diff -u -r1.644 bsd.port.mk
--- bsd.port.mk 20 Aug 2010 12:15:02 -0000 1.644
+++ bsd.port.mk 5 Sep 2010 16:01:41 -0000
@@ -288,12 +288,12 @@
# 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.
@@ -612,6 +612,7 @@
# 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.
@@ -2401,6 +2402,8 @@
${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= \
@@ -2409,6 +2412,7 @@
${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}"
@@ -3757,6 +3761,7 @@
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 \
>Release-Note:
>Audit-Trail:
>Unformatted:
More information about the freebsd-ports-bugs
mailing list