Changeset View
Changeset View
Standalone View
Standalone View
head/Mk/bsd.port.mk
Show First 20 Lines • Show All 2,069 Lines • ▼ Show 20 Lines | |||||
MTREE_CMD?= /usr/sbin/mtree | MTREE_CMD?= /usr/sbin/mtree | ||||
MTREE_ARGS?= -U ${MTREE_FOLLOWS_SYMLINKS} -f ${MTREE_FILE} -d -e -p | MTREE_ARGS?= -U ${MTREE_FOLLOWS_SYMLINKS} -f ${MTREE_FILE} -d -e -p | ||||
_SHAREMODE?= 0644 | _SHAREMODE?= 0644 | ||||
# A few aliases for *-install targets | # A few aliases for *-install targets | ||||
INSTALL_PROGRAM= ${INSTALL} ${COPY} ${STRIP} -m ${BINMODE} | INSTALL_PROGRAM= ${INSTALL} ${COPY} ${STRIP} -m ${BINMODE} | ||||
INSTALL_KLD= ${INSTALL} ${COPY} -m ${BINMODE} | INSTALL_KLD= ${INSTALL} ${COPY} -m ${BINMODE} | ||||
INSTALL_LIB= ${INSTALL} ${COPY} ${STRIP} -m ${SHAREMODE} | INSTALL_LIB= ${INSTALL} ${COPY} ${STRIP} -m ${_SHAREMODE} | ||||
INSTALL_SCRIPT= ${INSTALL} ${COPY} -m ${BINMODE} | INSTALL_SCRIPT= ${INSTALL} ${COPY} -m ${BINMODE} | ||||
INSTALL_DATA= ${INSTALL} ${COPY} -m ${_SHAREMODE} | INSTALL_DATA= ${INSTALL} ${COPY} -m ${_SHAREMODE} | ||||
INSTALL_MAN= ${INSTALL} ${COPY} -m ${MANMODE} | INSTALL_MAN= ${INSTALL} ${COPY} -m ${MANMODE} | ||||
INSTALL_MACROS= BSD_INSTALL_PROGRAM="${INSTALL_PROGRAM}" \ | INSTALL_MACROS= BSD_INSTALL_PROGRAM="${INSTALL_PROGRAM}" \ | ||||
BSD_INSTALL_LIB="${INSTALL_LIB}" \ | BSD_INSTALL_LIB="${INSTALL_LIB}" \ | ||||
BSD_INSTALL_SCRIPT="${INSTALL_SCRIPT}" \ | BSD_INSTALL_SCRIPT="${INSTALL_SCRIPT}" \ | ||||
BSD_INSTALL_DATA="${INSTALL_DATA}" \ | BSD_INSTALL_DATA="${INSTALL_DATA}" \ | ||||
BSD_INSTALL_MAN="${INSTALL_MAN}" | BSD_INSTALL_MAN="${INSTALL_MAN}" | ||||
MAKE_ENV+= ${INSTALL_MACROS} | MAKE_ENV+= ${INSTALL_MACROS} | ||||
SCRIPTS_ENV+= ${INSTALL_MACROS} | SCRIPTS_ENV+= ${INSTALL_MACROS} | ||||
# Macro for copying entire directory tree with correct permissions | # Macro for copying entire directory tree with correct permissions | ||||
# In the -exec shell commands, we add add a . as the first argument, it would | # In the -exec shell commands, we add add a . as the first argument, it would | ||||
# end up being $0 aka the script name, which is not part of $@, so we force it | # end up being $0 aka the script name, which is not part of $@, so we force it | ||||
# to be able to use $@ directly. | # to be able to use $@ directly. | ||||
COPYTREE_BIN= ${SH} -c '(${FIND} -Ed $$0 $$2 | ${CPIO} -dumpl $$1 >/dev/null 2>&1) && \ | COPYTREE_BIN= ${SH} -c '(${FIND} -Ed $$0 $$2 | ${CPIO} -dumpl $$1 >/dev/null 2>&1) && \ | ||||
${FIND} -Ed $$0 $$2 \( -type d -exec ${SH} -c '\''cd '\''$$1'\'' && chmod 755 "$$@"'\'' -- . {} + \ | ${FIND} -Ed $$0 $$2 \( -type d -exec ${SH} -c '\''cd '\''$$1'\'' && chmod 755 "$$@"'\'' -- . {} + \ | ||||
-o -type f -exec ${SH} -c '\''cd '\''$$1'\'' && chmod ${BINMODE} "$$@"'\'' -- . {} + \)' -- | -o -type f -exec ${SH} -c '\''cd '\''$$1'\'' && chmod ${BINMODE} "$$@"'\'' -- . {} + \)' -- | ||||
COPYTREE_SHARE= ${SH} -c '(${FIND} -Ed $$0 $$2 | ${CPIO} -dumpl $$1 >/dev/null 2>&1) && \ | COPYTREE_SHARE= ${SH} -c '(${FIND} -Ed $$0 $$2 | ${CPIO} -dumpl $$1 >/dev/null 2>&1) && \ | ||||
${FIND} -Ed $$0 $$2 \( -type d -exec ${SH} -c '\''cd '\''$$1'\'' && chmod 755 "$$@"'\'' -- . {} + \ | ${FIND} -Ed $$0 $$2 \( -type d -exec ${SH} -c '\''cd '\''$$1'\'' && chmod 755 "$$@"'\'' -- . {} + \ | ||||
-o -type f -exec ${SH} -c '\''cd '\''$$1'\'' && chmod ${SHAREMODE} "$$@"'\'' -- . {} + \)' -- | -o -type f -exec ${SH} -c '\''cd '\''$$1'\'' && chmod ${_SHAREMODE} "$$@"'\'' -- . {} + \)' -- | ||||
# The user can override the NO_PACKAGE by specifying this from | # The user can override the NO_PACKAGE by specifying this from | ||||
# the make command line | # the make command line | ||||
.if defined(FORCE_PACKAGE) | .if defined(FORCE_PACKAGE) | ||||
.undef NO_PACKAGE | .undef NO_PACKAGE | ||||
.endif | .endif | ||||
DESCR?= ${PKGDIR}/pkg-descr | DESCR?= ${PKGDIR}/pkg-descr | ||||
▲ Show 20 Lines • Show All 3,288 Lines • Show Last 20 Lines |