Changeset View
Changeset View
Standalone View
Standalone View
Mk/bsd.port.mk
Show First 20 Lines • Show All 68 Lines • ▼ Show 20 Lines | |||||
# PKGNAMEPREFIX - Prefix to specify that port is language-specific, etc. | # PKGNAMEPREFIX - Prefix to specify that port is language-specific, etc. | ||||
# Optional. | # Optional. | ||||
# PKGNAMESUFFIX - Suffix to specify compilation options or a version | # PKGNAMESUFFIX - Suffix to specify compilation options or a version | ||||
# designator (in case there are different versions of | # designator (in case there are different versions of | ||||
# one port as is the case for Tcl). | # one port as is the case for Tcl). | ||||
# Optional. | # Optional. | ||||
# PKGVERSION - Always defined as ${PORTVERSION}. | # PKGVERSION - Always defined as ${PORTVERSION}. | ||||
# Do not define this in your Makefile. | # Do not define this in your Makefile. | ||||
# UNIQUENAME - A name for your port that is globally unique. By default, | |||||
# this is set to ${LATEST_LINK} when LATEST_LINK is set, | |||||
# and to ${PKGNAMEPREFIX}${PORTNAME} otherwise. | |||||
# DISTVERSION - Vendor version of the distribution. | # DISTVERSION - Vendor version of the distribution. | ||||
# Default: ${PORTVERSION} | # Default: ${PORTVERSION} | ||||
# DISTNAME - Name of port or distribution used in generating | # DISTNAME - Name of port or distribution used in generating | ||||
# WRKSRC and DISTFILES below. | # WRKSRC and DISTFILES below. | ||||
# Default: | # Default: | ||||
# ${PORTNAME}-${DISTVERSIONPREFIX}${DISTVERSION}${DISTVERSIONSUFFIX} | # ${PORTNAME}-${DISTVERSIONPREFIX}${DISTVERSION}${DISTVERSIONSUFFIX} | ||||
# CATEGORIES - A list of descriptive categories into which this port falls. | # CATEGORIES - A list of descriptive categories into which this port falls. | ||||
# Mandatory. | # Mandatory. | ||||
▲ Show 20 Lines • Show All 795 Lines • ▼ Show 20 Lines | |||||
# is deleted. | # is deleted. | ||||
# SUB_LIST - List of "variable=value" pair for substitution in ${SUB_FILES} | # SUB_LIST - List of "variable=value" pair for substitution in ${SUB_FILES} | ||||
# Some pairs are added by default: eg. PREFIX=${PREFIX} | # Some pairs are added by default: eg. PREFIX=${PREFIX} | ||||
# | # | ||||
# USE_LDCONFIG - If set to "yes", this adds ${PREFIX}/lib to the list of | # USE_LDCONFIG - If set to "yes", this adds ${PREFIX}/lib to the list of | ||||
# directories to be searched for shared libraries. | # directories to be searched for shared libraries. | ||||
# Otherwise, this is a list of directories to be added to that | # Otherwise, this is a list of directories to be added to that | ||||
# list. The directory names are written to | # list. The directory names are written to | ||||
# ${LOCALBASE}/libdata/ldconfig/${UNIQUENAME} which is then | # ${LOCALBASE}/libdata/ldconfig/${PKGBASE} which is then | ||||
# used by the ldconfig startup script. | # used by the ldconfig startup script. | ||||
# This mechanism replaces ldconfig scripts installed by some | # This mechanism replaces ldconfig scripts installed by some | ||||
# ports, often under such names as 000.${UNQUENAME}.sh. | # ports, often under such names as 000.${UNQUENAME}.sh. | ||||
# If USE_LINUX_PREFIX is defined, the Linux version of | # If USE_LINUX_PREFIX is defined, the Linux version of | ||||
# ldconfig will be used instead of the native FreeBSD | # ldconfig will be used instead of the native FreeBSD | ||||
# version, and the directory list given will be ignored. | # version, and the directory list given will be ignored. | ||||
# USE_LDCONFIG32 | # USE_LDCONFIG32 | ||||
# - Same as USE_LDCONFIG but the target file is | # - Same as USE_LDCONFIG but the target file is | ||||
# ${LOCALBASE}/libdata/ldconfig32/${UNIQUENAME} instead. | # ${LOCALBASE}/libdata/ldconfig32/${PKGBASE} instead. | ||||
# Note: that should only be used on 64-bit architectures. | # Note: that should only be used on 64-bit architectures. | ||||
# | # | ||||
# DOCSDIR - Name of the directory to install the packages docs in. | # DOCSDIR - Name of the directory to install the packages docs in. | ||||
# Default: ${PREFIX}/share/doc/${PORTNAME} | # Default: ${PREFIX}/share/doc/${PORTNAME} | ||||
# DOCSDIR_REL - The DOCSDIR relative to ${PREFIX} | # DOCSDIR_REL - The DOCSDIR relative to ${PREFIX} | ||||
# EXAMPLESDIR - Name of the directory to install the packages examples in. | # EXAMPLESDIR - Name of the directory to install the packages examples in. | ||||
# Default: ${PREFIX}/share/examples/${PORTNAME} | # Default: ${PREFIX}/share/examples/${PORTNAME} | ||||
# EXAMPLESDIR_REL | # EXAMPLESDIR_REL | ||||
▲ Show 20 Lines • Show All 59 Lines • ▼ Show 20 Lines | |||||
# above) and also substitute special sequences of characters (delimited | # above) and also substitute special sequences of characters (delimited | ||||
# by "%%") as defined in PLIST_SUB to generate ${TMPPLIST}. For | # by "%%") as defined in PLIST_SUB to generate ${TMPPLIST}. For | ||||
# instance, "OSREL=${OSREL}" in PLIST_SUB causes all occurrences of | # instance, "OSREL=${OSREL}" in PLIST_SUB causes all occurrences of | ||||
# "%%OSREL%%" in ${PLIST} to be substituted by the value of OSREL. | # "%%OSREL%%" in ${PLIST} to be substituted by the value of OSREL. | ||||
# ${TMPPLIST} is generated before the do-install stage. If you are | # ${TMPPLIST} is generated before the do-install stage. If you are | ||||
# generating the packing list on-the-fly, make sure it's generated before | # generating the packing list on-the-fly, make sure it's generated before | ||||
# do-install is called! | # do-install is called! | ||||
# | # | ||||
# For package: | |||||
# | |||||
# LATEST_LINK - Install the "Latest" link for the package as ___. Define | |||||
# this if the "Latest" link name will be incorrectly determined. | |||||
# | |||||
# This is used in all stages: | # This is used in all stages: | ||||
# | # | ||||
# SCRIPTS_ENV - Additional environment vars passed to scripts in | # SCRIPTS_ENV - Additional environment vars passed to scripts in | ||||
# ${SCRIPTDIR} executed by bsd.port.mk. | # ${SCRIPTDIR} executed by bsd.port.mk. | ||||
# Default: see below | # Default: see below | ||||
# | # | ||||
# Finally, variables to change if you want a special behavior. These | # Finally, variables to change if you want a special behavior. These | ||||
# are for debugging purposes. Don't set them in your Makefile. | # are for debugging purposes. Don't set them in your Makefile. | ||||
▲ Show 20 Lines • Show All 254 Lines • ▼ Show 20 Lines | |||||
# predefined accounts from src/etc/master.passwd | # predefined accounts from src/etc/master.passwd | ||||
# alpha numeric sort order | # alpha numeric sort order | ||||
USERS_BLACKLIST= _dhcp _pflogd auditdistd bin bind daemon games hast kmem mailnull man news nobody operator pop proxy root smmsp sshd toor tty uucp www | USERS_BLACKLIST= _dhcp _pflogd auditdistd bin bind daemon games hast kmem mailnull man news nobody operator pop proxy root smmsp sshd toor tty uucp www | ||||
LDCONFIG_DIR= libdata/ldconfig | LDCONFIG_DIR= libdata/ldconfig | ||||
LDCONFIG32_DIR= libdata/ldconfig32 | LDCONFIG32_DIR= libdata/ldconfig32 | ||||
.if defined(LATEST_LINK) | |||||
UNIQUENAME?= ${LATEST_LINK} | |||||
.else | |||||
UNIQUENAME?= ${PKGNAMEPREFIX}${PORTNAME} | |||||
.endif | .endif | ||||
.endif | |||||
# At least KDE needs TMPDIR for the package building, | # At least KDE needs TMPDIR for the package building, | ||||
# so we're setting it to the known default value. | # so we're setting it to the known default value. | ||||
.if defined(PACKAGE_BUILDING) | .if defined(PACKAGE_BUILDING) | ||||
TMPDIR?= /tmp | TMPDIR?= /tmp | ||||
.endif # defined(PACKAGE_BUILDING) | .endif # defined(PACKAGE_BUILDING) | ||||
.if defined(WITH_DEBUG_PORTS) | .if defined(WITH_DEBUG_PORTS) | ||||
.if ${WITH_DEBUG_PORTS:M${PKGORIGIN}} | .if ${WITH_DEBUG_PORTS:M${PKGORIGIN}} | ||||
▲ Show 20 Lines • Show All 1,273 Lines • ▼ Show 20 Lines | |||||
.else | .else | ||||
PKGFILE?= ${.CURDIR}/${PKGNAME}${PKG_SUFX} | PKGFILE?= ${.CURDIR}/${PKGNAME}${PKG_SUFX} | ||||
.endif | .endif | ||||
WRKDIR_PKGFILE= ${WRKDIR}/pkg/${PKGNAME}${PKG_SUFX} | WRKDIR_PKGFILE= ${WRKDIR}/pkg/${PKGNAME}${PKG_SUFX} | ||||
# The "latest version" link -- ${PKGNAME} minus everthing after the last '-' | # The "latest version" link -- ${PKGNAME} minus everthing after the last '-' | ||||
PKGLATESTREPOSITORY?= ${PACKAGES}/Latest | PKGLATESTREPOSITORY?= ${PACKAGES}/Latest | ||||
PKGBASE?= ${PKGNAMEPREFIX}${PORTNAME}${PKGNAMESUFFIX} | PKGBASE?= ${PKGNAMEPREFIX}${PORTNAME}${PKGNAMESUFFIX} | ||||
LATEST_LINK?= ${PKGBASE} | PKGLATESTFILE= ${PKGLATESTREPOSITORY}/${PKGBASE}${PKG_SUFX} | ||||
PKGLATESTFILE= ${PKGLATESTREPOSITORY}/${LATEST_LINK}${PKG_SUFX} | |||||
CONFIGURE_SCRIPT?= configure | CONFIGURE_SCRIPT?= configure | ||||
CONFIGURE_CMD?= ./${CONFIGURE_SCRIPT} | CONFIGURE_CMD?= ./${CONFIGURE_SCRIPT} | ||||
CONFIGURE_TARGET?= ${ARCH}-portbld-${OPSYS:tl}${OSREL} | CONFIGURE_TARGET?= ${ARCH}-portbld-${OPSYS:tl}${OSREL} | ||||
CONFIGURE_TARGET:= ${CONFIGURE_TARGET:S/--build=//} | CONFIGURE_TARGET:= ${CONFIGURE_TARGET:S/--build=//} | ||||
CONFIGURE_LOG?= config.log | CONFIGURE_LOG?= config.log | ||||
# A default message to print if do-configure fails. | # A default message to print if do-configure fails. | ||||
▲ Show 20 Lines • Show All 314 Lines • ▼ Show 20 Lines | |||||
################################################################ | ################################################################ | ||||
# | # | ||||
# Do preliminary work to detect if we need to run the config | # Do preliminary work to detect if we need to run the config | ||||
# target or not. | # target or not. | ||||
# | # | ||||
################################################################ | ################################################################ | ||||
.if ((!defined(OPTIONS_DEFINE) && !defined(OPTIONS_SINGLE) && !defined(OPTIONS_MULTI)) \ | .if ((!defined(OPTIONS_DEFINE) && !defined(OPTIONS_SINGLE) && !defined(OPTIONS_MULTI)) \ | ||||
&& !defined(OPTIONS_GROUP) && !defined(OPTIONS_RADIO) \ | && !defined(OPTIONS_GROUP) && !defined(OPTIONS_RADIO) \ | ||||
|| defined(CONFIG_DONE_${UNIQUENAME:tu}) || \ | || defined(CONFIG_DONE_${PKGBASE:tu}) || \ | ||||
defined(PACKAGE_BUILDING) || defined(BATCH)) | defined(PACKAGE_BUILDING) || defined(BATCH)) | ||||
_OPTIONS_OK=yes | _OPTIONS_OK=yes | ||||
.endif | .endif | ||||
################################################################ | ################################################################ | ||||
# The following are used to create easy dummy targets for | # The following are used to create easy dummy targets for | ||||
# disabling some bit of default target behavior you don't want. | # disabling some bit of default target behavior you don't want. | ||||
# They still check to see if the target exists, and if so don't | # They still check to see if the target exists, and if so don't | ||||
▲ Show 20 Lines • Show All 664 Lines • ▼ Show 20 Lines | |||||
.if defined(USE_LINUX_PREFIX) | .if defined(USE_LINUX_PREFIX) | ||||
.else | .else | ||||
.if ${USE_LDCONFIG} != "${LOCALBASE}/lib" && !defined(INSTALL_AS_USER) | .if ${USE_LDCONFIG} != "${LOCALBASE}/lib" && !defined(INSTALL_AS_USER) | ||||
@${ECHO_MSG} "===> Installing ldconfig configuration file" | @${ECHO_MSG} "===> Installing ldconfig configuration file" | ||||
.if defined(NO_MTREE) || ${PREFIX} != ${LOCALBASE} | .if defined(NO_MTREE) || ${PREFIX} != ${LOCALBASE} | ||||
@${MKDIR} ${STAGEDIR}${LOCALBASE}/${LDCONFIG_DIR} | @${MKDIR} ${STAGEDIR}${LOCALBASE}/${LDCONFIG_DIR} | ||||
.endif | .endif | ||||
@${ECHO_CMD} ${USE_LDCONFIG} | ${TR} ' ' '\n' \ | @${ECHO_CMD} ${USE_LDCONFIG} | ${TR} ' ' '\n' \ | ||||
> ${STAGEDIR}${LOCALBASE}/${LDCONFIG_DIR}/${UNIQUENAME} | > ${STAGEDIR}${LOCALBASE}/${LDCONFIG_DIR}/${PKGBASE} | ||||
@${ECHO_CMD} ${LOCALBASE}/${LDCONFIG_DIR}/${UNIQUENAME} >> ${TMPPLIST} | @${ECHO_CMD} ${LOCALBASE}/${LDCONFIG_DIR}/${PKGBASE} >> ${TMPPLIST} | ||||
.endif | .endif | ||||
.endif | .endif | ||||
.endif | .endif | ||||
.if defined(USE_LDCONFIG32) | .if defined(USE_LDCONFIG32) | ||||
.if !defined(INSTALL_AS_USER) | .if !defined(INSTALL_AS_USER) | ||||
@${ECHO_MSG} "===> Installing 32-bit ldconfig configuration file" | @${ECHO_MSG} "===> Installing 32-bit ldconfig configuration file" | ||||
.if defined(NO_MTREE) || ${PREFIX} != ${LOCALBASE} | .if defined(NO_MTREE) || ${PREFIX} != ${LOCALBASE} | ||||
@${MKDIR} ${STAGEDIR}${LOCALBASE}/${LDCONFIG32_DIR} | @${MKDIR} ${STAGEDIR}${LOCALBASE}/${LDCONFIG32_DIR} | ||||
.endif | .endif | ||||
@${ECHO_CMD} ${USE_LDCONFIG32} | ${TR} ' ' '\n' \ | @${ECHO_CMD} ${USE_LDCONFIG32} | ${TR} ' ' '\n' \ | ||||
> ${STAGEDIR}${LOCALBASE}/${LDCONFIG32_DIR}/${UNIQUENAME} | > ${STAGEDIR}${LOCALBASE}/${LDCONFIG32_DIR}/${PKGBASE} | ||||
@${ECHO_CMD} ${LOCALBASE}/${LDCONFIG32_DIR}/${UNIQUENAME} >> ${TMPPLIST} | @${ECHO_CMD} ${LOCALBASE}/${LDCONFIG32_DIR}/${PKGBASE} >> ${TMPPLIST} | ||||
.endif | .endif | ||||
.endif | .endif | ||||
.endif | .endif | ||||
.endif | .endif | ||||
.if !target(create-users-groups) | .if !target(create-users-groups) | ||||
.if defined(GROUPS) || defined(USERS) | .if defined(GROUPS) || defined(USERS) | ||||
_UG_OUTPUT= ${WRKDIR}/users-groups.sh | _UG_OUTPUT= ${WRKDIR}/users-groups.sh | ||||
▲ Show 20 Lines • Show All 1,503 Lines • ▼ Show 20 Lines | |||||
.endif # pre-config | .endif # pre-config | ||||
.if !target(do-config) | .if !target(do-config) | ||||
do-config: | do-config: | ||||
.if empty(ALL_OPTIONS) && empty(OPTIONS_SINGLE) && empty(OPTIONS_MULTI) && empty(OPTIONS_RADIO) && empty(OPTIONS_GROUP) | .if empty(ALL_OPTIONS) && empty(OPTIONS_SINGLE) && empty(OPTIONS_MULTI) && empty(OPTIONS_RADIO) && empty(OPTIONS_GROUP) | ||||
@${ECHO_MSG} "===> No options to configure" | @${ECHO_MSG} "===> No options to configure" | ||||
.else | .else | ||||
@optionsdir=${OPTIONS_FILE:H}; \ | @optionsdir=${OPTIONS_FILE:H}; \ | ||||
oldoptionsdir=${OPTIONSFILE:H}; \ | |||||
if [ ${UID} != 0 -a -z "${INSTALL_AS_USER}" -a ! -w "${PORT_DBDIR}" ] ; then \ | if [ ${UID} != 0 -a -z "${INSTALL_AS_USER}" -a ! -w "${PORT_DBDIR}" ] ; then \ | ||||
${ECHO_MSG} "===> Switching to root credentials to create $${optionsdir}"; \ | ${ECHO_MSG} "===> Switching to root credentials to create $${optionsdir}"; \ | ||||
(${SU_CMD} "${SH} -c \"if [ -d $${oldoptionsdir} -a ! -d $${optionsdir} ]; then ${MV} $${oldoptionsdir} $${optionsdir}; elif [ -d $${oldoptionsdir} -a -d $${optionsdir} ]; then ${RM} -rf $${oldoptionsdir} ; fi ; ${MKDIR} $${optionsdir} 2> /dev/null\"") || \ | (${SU_CMD} "${SH} -c \"${MKDIR} $${optionsdir} 2> /dev/null\"") || \ | ||||
(${ECHO_MSG} "===> Cannot create $${optionsdir}, check permissions"; exit 1); \ | (${ECHO_MSG} "===> Cannot create $${optionsdir}, check permissions"; exit 1); \ | ||||
${ECHO_MSG} "===> Returning to user credentials" ; \ | ${ECHO_MSG} "===> Returning to user credentials" ; \ | ||||
else \ | else \ | ||||
if [ -d $${oldoptionsdir} -a ! -d $${optionsdir} ]; then \ | |||||
${MV} $${oldoptionsdir} $${optionsdir}; \ | |||||
elif [ -d $${oldoptionsdir} -a -d $${optionsdir} ]; then \ | |||||
${RM} -rf $${oldoptionsdir} ; \ | |||||
fi ; \ | |||||
${MKDIR} $${optionsdir} 2> /dev/null || \ | ${MKDIR} $${optionsdir} 2> /dev/null || \ | ||||
(${ECHO_MSG} "===> Cannot create $${optionsdir}, check permissions"; exit 1) ; \ | (${ECHO_MSG} "===> Cannot create $${optionsdir}, check permissions"; exit 1) ; \ | ||||
fi | fi | ||||
@TMPOPTIONSFILE=$$(mktemp -t portoptions); \ | @TMPOPTIONSFILE=$$(mktemp -t portoptions); \ | ||||
trap "${RM} -f $${TMPOPTIONSFILE}; exit 1" 1 2 3 5 10 13 15; \ | trap "${RM} -f $${TMPOPTIONSFILE}; exit 1" 1 2 3 5 10 13 15; \ | ||||
${SETENV} ${D4P_ENV} ${SH} ${SCRIPTSDIR}/dialog4ports.sh $${TMPOPTIONSFILE} || { \ | ${SETENV} ${D4P_ENV} ${SH} ${SCRIPTSDIR}/dialog4ports.sh $${TMPOPTIONSFILE} || { \ | ||||
${RM} -f $${TMPOPTIONSFILE}; \ | ${RM} -f $${TMPOPTIONSFILE}; \ | ||||
${ECHO_MSG} "===> Options unchanged"; \ | ${ECHO_MSG} "===> Options unchanged"; \ | ||||
▲ Show 20 Lines • Show All 101 Lines • ▼ Show 20 Lines | showconfig-recursive: | ||||
@${ECHO_MSG} "===> The following configuration options are available for ${PKGNAME} and dependencies"; | @${ECHO_MSG} "===> The following configuration options are available for ${PKGNAME} and dependencies"; | ||||
@for dir in ${.CURDIR} $$(${ALL-DEPENDS-LIST}); do \ | @for dir in ${.CURDIR} $$(${ALL-DEPENDS-LIST}); do \ | ||||
(cd $$dir; ${MAKE} showconfig); \ | (cd $$dir; ${MAKE} showconfig); \ | ||||
done | done | ||||
.endif # showconfig-recursive | .endif # showconfig-recursive | ||||
.if !target(rmconfig) | .if !target(rmconfig) | ||||
rmconfig: | rmconfig: | ||||
.if exists(${OPTIONSFILE}) | |||||
-@${ECHO_MSG} "===> Removing user-configured options for ${PKGNAME}"; \ | |||||
optionsdir=${OPTIONSFILE:H}; \ | |||||
if [ ${UID} != 0 -a "x${INSTALL_AS_USER}" = "x" -a ! -w "${OPTIONSFILE}" ]; then \ | |||||
${ECHO_MSG} "===> Switching to root credentials to remove ${OPTIONSFILE} and $${optionsdir}"; \ | |||||
${SU_CMD} "${RM} -f ${OPTIONSFILE} ; \ | |||||
${RMDIR} $${optionsdir}"; \ | |||||
${ECHO_MSG} "===> Returning to user credentials"; \ | |||||
else \ | |||||
${RM} -f ${OPTIONSFILE}; \ | |||||
${RMDIR} $${optionsdir} 2>/dev/null || return 0; \ | |||||
fi | |||||
.endif | |||||
.if exists(${OPTIONS_FILE}) | .if exists(${OPTIONS_FILE}) | ||||
-@${ECHO_MSG} "===> Removing user-configured options for ${PKGNAME}"; \ | -@${ECHO_MSG} "===> Removing user-configured options for ${PKGNAME}"; \ | ||||
optionsdir=${OPTIONS_FILE:H}; \ | optionsdir=${OPTIONS_FILE:H}; \ | ||||
if [ ${UID} != 0 -a "x${INSTALL_AS_USER}" = "x" -a ! -w "${OPTIONS_FILE}" ]; then \ | if [ ${UID} != 0 -a "x${INSTALL_AS_USER}" = "x" -a ! -w "${OPTIONS_FILE}" ]; then \ | ||||
${ECHO_MSG} "===> Switching to root credentials to remove ${OPTIONS_FILE} and $${optionsdir}"; \ | ${ECHO_MSG} "===> Switching to root credentials to remove ${OPTIONS_FILE} and $${optionsdir}"; \ | ||||
${SU_CMD} "${RM} -f ${OPTIONS_FILE} ; \ | ${SU_CMD} "${RM} -f ${OPTIONS_FILE} ; \ | ||||
${RMDIR} $${optionsdir}"; \ | ${RMDIR} $${optionsdir}"; \ | ||||
${ECHO_MSG} "===> Returning to user credentials"; \ | ${ECHO_MSG} "===> Returning to user credentials"; \ | ||||
▲ Show 20 Lines • Show All 368 Lines • ▼ Show 20 Lines | |||||
# to depend on the *_DEP and execute the *_SEQ. | # to depend on the *_DEP and execute the *_SEQ. | ||||
# If options are required, execute config-conditional and then re-execute the | # If options are required, execute config-conditional and then re-execute the | ||||
# target noting that config is no longer needed. | # target noting that config is no longer needed. | ||||
.if !target(${target}) && defined(_OPTIONS_OK) | .if !target(${target}) && defined(_OPTIONS_OK) | ||||
_PHONY_TARGETS+= ${target} | _PHONY_TARGETS+= ${target} | ||||
${target}: ${${target:tu}_COOKIE} | ${target}: ${${target:tu}_COOKIE} | ||||
.elif !target(${target}) | .elif !target(${target}) | ||||
${target}: config-conditional | ${target}: config-conditional | ||||
@cd ${.CURDIR} && ${MAKE} CONFIG_DONE_${UNIQUENAME:tu}=1 ${${target:tu}_COOKIE} | @cd ${.CURDIR} && ${MAKE} CONFIG_DONE_${PKGBASE:tu}=1 ${${target:tu}_COOKIE} | ||||
.elif target(${target}) && defined(IGNORE) | .elif target(${target}) && defined(IGNORE) | ||||
.endif | .endif | ||||
.if !exists(${${target:tu}_COOKIE}) | .if !exists(${${target:tu}_COOKIE}) | ||||
# Define the real target behavior. Depend on the target's *_DEP. Execute | # Define the real target behavior. Depend on the target's *_DEP. Execute | ||||
# the target's *_SEQ. Also handle su and USE_SUBMAKE needs. | # the target's *_SEQ. Also handle su and USE_SUBMAKE needs. | ||||
.if ${UID} != 0 && defined(_${target:tu}_REAL_SUSEQ) && !defined(INSTALL_AS_USER) | .if ${UID} != 0 && defined(_${target:tu}_REAL_SUSEQ) && !defined(INSTALL_AS_USER) | ||||
▲ Show 20 Lines • Show All 53 Lines • Show Last 20 Lines |