Changeset View
Changeset View
Standalone View
Standalone View
Mk/bsd.port.mk
Show First 20 Lines • Show All 772 Lines • ▼ Show 20 Lines | |||||
# Default: ${WRKSRC} | # Default: ${WRKSRC} | ||||
# | # | ||||
# For configure: | # For configure: | ||||
# | # | ||||
# HAS_CONFIGURE - If set, this port has its own configure script. The | # HAS_CONFIGURE - If set, this port has its own configure script. The | ||||
# configure stage will not do anything if this is not set. | # configure stage will not do anything if this is not set. | ||||
# GNU_CONFIGURE - If set, you are using GNU configure (optional). Implies | # GNU_CONFIGURE - If set, you are using GNU configure (optional). Implies | ||||
# HAS_CONFIGURE. | # HAS_CONFIGURE. | ||||
# CONFIGURE_OUTSOURCE - If set, this port builds in an empty ${CONFIGURE_WRKSRC} | |||||
# not being under ${WRKSRC}. | |||||
# CONFIGURE_WRKSRC | # CONFIGURE_WRKSRC | ||||
# - Directory to run configure in. | # - Directory to run configure in. | ||||
# Default: ${WRKSRC} | # Default: ${WRKSRC} | ||||
# CONFIGURE_SCRIPT | # CONFIGURE_SCRIPT | ||||
# - Name of configure script, relative to ${CONFIGURE_WRKSRC}. | # - Name of configure script, relative to ${CONFIGURE_WRKSRC}. | ||||
# Default: "Makefile.PL" if USES=perl5 and USE_PERL5=configure | # Default: "Makefile.PL" if USES=perl5 and USE_PERL5=configure | ||||
# are set, "configure" otherwise. | # are set, "configure" otherwise. | ||||
# CONFIGURE_TARGET | # CONFIGURE_TARGET | ||||
▲ Show 20 Lines • Show All 758 Lines • ▼ Show 20 Lines | |||||
.else | .else | ||||
WRKSRC?= ${WRKDIR}/${DISTNAME} | WRKSRC?= ${WRKDIR}/${DISTNAME} | ||||
EXTRACT_WRKDIR:= ${WRKDIR} | EXTRACT_WRKDIR:= ${WRKDIR} | ||||
.endif | .endif | ||||
.if defined(WRKSRC_SUBDIR) | .if defined(WRKSRC_SUBDIR) | ||||
WRKSRC:= ${WRKSRC}/${WRKSRC_SUBDIR} | WRKSRC:= ${WRKSRC}/${WRKSRC_SUBDIR} | ||||
.endif | .endif | ||||
.if defined(CONFIGURE_OUTSOURCE) | |||||
CONFIGURE_CMD?= ${WRKSRC}/${CONFIGURE_SCRIPT} | |||||
CONFIGURE_WRKSRC?= ${WRKDIR}/.build | |||||
mat: This could be `build`, without the `.`, nothing writes directly inside WRKDIR nowadays. | |||||
Not Done Inline ActionsThis was taken as is from USES=cmake:outsource, including the dot. And individual ports may and do write under WRKDIR sometimes. However, I'm not sure if any write under ${WRKDIR}/build in particular except candidates for conversion like lang/gcc. jbeich: This was taken **as is** from `USES=cmake:outsource`, including the dot. And individual ports… | |||||
Not Done Inline ActionsOk, all the ports write to WRKSRC, if you have more than one distfile, you may have more than one subdirectory, but *nothing* should write to WRKDIR. mat: Ok, all the ports write to WRKSRC, if you have more than one distfile, you may have more than… | |||||
BUILD_WRKSRC?= ${CONFIGURE_WRKSRC} | |||||
INSTALL_WRKSRC?= ${CONFIGURE_WRKSRC} | |||||
TEST_WRKSRC?= ${CONFIGURE_WRKSRC} | |||||
.endif | |||||
PATCH_WRKSRC?= ${WRKSRC} | PATCH_WRKSRC?= ${WRKSRC} | ||||
CONFIGURE_WRKSRC?= ${WRKSRC} | CONFIGURE_WRKSRC?= ${WRKSRC} | ||||
BUILD_WRKSRC?= ${WRKSRC} | BUILD_WRKSRC?= ${WRKSRC} | ||||
INSTALL_WRKSRC?=${WRKSRC} | INSTALL_WRKSRC?=${WRKSRC} | ||||
TEST_WRKSRC?= ${WRKSRC} | TEST_WRKSRC?= ${WRKSRC} | ||||
PLIST_SUB+= OSREL=${OSREL} PREFIX=%D LOCALBASE=${LOCALBASE} \ | PLIST_SUB+= OSREL=${OSREL} PREFIX=%D LOCALBASE=${LOCALBASE} \ | ||||
RESETPREFIX=${PREFIX} | RESETPREFIX=${PREFIX} | ||||
▲ Show 20 Lines • Show All 1,028 Lines • ▼ Show 20 Lines | |||||
GNU_CONFIGURE_PREFIX?= ${PREFIX} | GNU_CONFIGURE_PREFIX?= ${PREFIX} | ||||
GNU_CONFIGURE_MANPREFIX?= ${MANPREFIX} | GNU_CONFIGURE_MANPREFIX?= ${MANPREFIX} | ||||
CONFIG_SITE?= ${PORTSDIR}/Templates/config.site | CONFIG_SITE?= ${PORTSDIR}/Templates/config.site | ||||
CONFIGURE_ARGS+= --prefix=${GNU_CONFIGURE_PREFIX} $${_LATE_CONFIGURE_ARGS} | CONFIGURE_ARGS+= --prefix=${GNU_CONFIGURE_PREFIX} $${_LATE_CONFIGURE_ARGS} | ||||
.if defined(X_BUILD_FOR) | .if defined(X_BUILD_FOR) | ||||
CONFIGURE_ARGS+= --host=${X_BUILD_FOR} | CONFIGURE_ARGS+= --host=${X_BUILD_FOR} | ||||
.endif | .endif | ||||
CONFIGURE_ENV+= CONFIG_SITE=${CONFIG_SITE} lt_cv_sys_max_cmd_len=${CONFIGURE_MAX_CMD_LEN} | CONFIGURE_ENV+= CONFIG_SITE=${CONFIG_SITE} lt_cv_sys_max_cmd_len=${CONFIGURE_MAX_CMD_LEN} | ||||
HAS_CONFIGURE= yes | HAS_CONFIGURE= yes | ||||
Done Inline ActionsI feel this is not needed any more, right ? mat: I feel this is not needed any more, right ? | |||||
Not Done Inline ActionsCorrect. ;) jbeich: Correct. ;) | |||||
SET_LATE_CONFIGURE_ARGS= \ | SET_LATE_CONFIGURE_ARGS= \ | ||||
_LATE_CONFIGURE_ARGS="" ; \ | _LATE_CONFIGURE_ARGS="" ; \ | ||||
if [ -z "${CONFIGURE_ARGS:M--localstatedir=*:Q}" ] && \ | if [ -z "${CONFIGURE_ARGS:M--localstatedir=*:Q}" ] && \ | ||||
${CONFIGURE_CMD} --help 2>&1 | ${GREP} -- --localstatedir > /dev/null; then \ | ${CONFIGURE_CMD} --help 2>&1 | ${GREP} -- --localstatedir > /dev/null; then \ | ||||
_LATE_CONFIGURE_ARGS="$${_LATE_CONFIGURE_ARGS} --localstatedir=/var" ; \ | _LATE_CONFIGURE_ARGS="$${_LATE_CONFIGURE_ARGS} --localstatedir=/var" ; \ | ||||
fi ; \ | fi ; \ | ||||
if [ ! -z "`${CONFIGURE_CMD} --help 2>&1 | ${GREP} -- '--mandir'`" ]; then \ | if [ ! -z "`${CONFIGURE_CMD} --help 2>&1 | ${GREP} -- '--mandir'`" ]; then \ | ||||
▲ Show 20 Lines • Show All 719 Lines • ▼ Show 20 Lines | for _D in $${CONFIG_GUESS_DIRS}; do \ | ||||
${CP} ${TEMPLATES}/config.guess $${_D}/config.guess; \ | ${CP} ${TEMPLATES}/config.guess $${_D}/config.guess; \ | ||||
${CHMOD} a+rx $${_D}/config.guess; \ | ${CHMOD} a+rx $${_D}/config.guess; \ | ||||
${RM} $${_D}/config.sub; \ | ${RM} $${_D}/config.sub; \ | ||||
${CP} ${TEMPLATES}/config.sub $${_D}/config.sub; \ | ${CP} ${TEMPLATES}/config.sub $${_D}/config.sub; \ | ||||
${CHMOD} a+rx $${_D}/config.sub; \ | ${CHMOD} a+rx $${_D}/config.sub; \ | ||||
done | done | ||||
.endif | .endif | ||||
.if defined(HAS_CONFIGURE) | .if defined(HAS_CONFIGURE) | ||||
@${MKDIR} ${CONFIGURE_WRKSRC} | |||||
@(cd ${CONFIGURE_WRKSRC} && \ | @(cd ${CONFIGURE_WRKSRC} && \ | ||||
${SET_LATE_CONFIGURE_ARGS} \ | ${SET_LATE_CONFIGURE_ARGS} \ | ||||
if ! ${SETENV} CC="${CC}" CPP="${CPP}" CXX="${CXX}" \ | if ! ${SETENV} CC="${CC}" CPP="${CPP}" CXX="${CXX}" \ | ||||
CFLAGS="${CFLAGS}" CPPFLAGS="${CPPFLAGS}" CXXFLAGS="${CXXFLAGS}" \ | CFLAGS="${CFLAGS}" CPPFLAGS="${CPPFLAGS}" CXXFLAGS="${CXXFLAGS}" \ | ||||
LDFLAGS="${LDFLAGS}" LIBS="${LIBS}" \ | LDFLAGS="${LDFLAGS}" LIBS="${LIBS}" \ | ||||
INSTALL="/usr/bin/install -c" \ | INSTALL="/usr/bin/install -c" \ | ||||
INSTALL_DATA="${INSTALL_DATA}" \ | INSTALL_DATA="${INSTALL_DATA}" \ | ||||
INSTALL_LIB="${INSTALL_LIB}" \ | INSTALL_LIB="${INSTALL_LIB}" \ | ||||
▲ Show 20 Lines • Show All 2,487 Lines • Show Last 20 Lines |
This could be build, without the ., nothing writes directly inside WRKDIR nowadays.