Lines 763-768
Link Here
|
763 |
# CONFIGURE_WRKSRC |
763 |
# CONFIGURE_WRKSRC |
764 |
# - Directory to run configure in. |
764 |
# - Directory to run configure in. |
765 |
# Default: ${WRKSRC} |
765 |
# Default: ${WRKSRC} |
|
|
766 |
# If multiple directories are specified, they are processed |
767 |
# sequentially. |
766 |
# CONFIGURE_SCRIPT |
768 |
# CONFIGURE_SCRIPT |
767 |
# - Name of configure script, relative to ${CONFIGURE_WRKSRC}. |
769 |
# - Name of configure script, relative to ${CONFIGURE_WRKSRC}. |
768 |
# Default: "Makefile.PL" if USES=perl5 and USE_PERL5=configure |
770 |
# Default: "Makefile.PL" if USES=perl5 and USE_PERL5=configure |
Lines 805-810
Link Here
|
805 |
# ALL_TARGET - Default target for sub-make in build stage. |
807 |
# ALL_TARGET - Default target for sub-make in build stage. |
806 |
# Default: all |
808 |
# Default: all |
807 |
# BUILD_WRKSRC - Directory to do build in (default: ${WRKSRC}). |
809 |
# BUILD_WRKSRC - Directory to do build in (default: ${WRKSRC}). |
|
|
810 |
# If multiple directories are specified, they are processed |
811 |
# sequentially. |
808 |
# MAKE_ENV - Additional environment vars passed to sub-make in build |
812 |
# MAKE_ENV - Additional environment vars passed to sub-make in build |
809 |
# and install stages. |
813 |
# and install stages. |
810 |
# Default: see below |
814 |
# Default: see below |
Lines 837-842
Link Here
|
837 |
# no default test target is provided. |
841 |
# no default test target is provided. |
838 |
# Default: (none) |
842 |
# Default: (none) |
839 |
# TEST_WRKSRC - Directory to do test in (default: ${WRKSRC}). |
843 |
# TEST_WRKSRC - Directory to do test in (default: ${WRKSRC}). |
|
|
844 |
# If multiple directories are specified, they are processed |
845 |
# sequentially. |
840 |
# TEST_ENV - Additional environment vars passed to sub-make in test |
846 |
# TEST_ENV - Additional environment vars passed to sub-make in test |
841 |
# stage |
847 |
# stage |
842 |
# Default: ${MAKE_ENV} |
848 |
# Default: ${MAKE_ENV} |
Lines 851-856
Link Here
|
851 |
# INSTALL_WRKSRC |
857 |
# INSTALL_WRKSRC |
852 |
# - Directory to install from |
858 |
# - Directory to install from |
853 |
# Default: ${WRKSRC} |
859 |
# Default: ${WRKSRC} |
|
|
860 |
# If multiple directories are specified, they are processed |
861 |
# sequentially. |
854 |
# NO_MTREE - If set, will not invoke mtree from bsd.port.mk from |
862 |
# NO_MTREE - If set, will not invoke mtree from bsd.port.mk from |
855 |
# the "install" target. |
863 |
# the "install" target. |
856 |
# MTREE_FILE - The name of the mtree file. |
864 |
# MTREE_FILE - The name of the mtree file. |
Lines 3191-3198
Link Here
|
3191 |
done |
3199 |
done |
3192 |
.endif |
3200 |
.endif |
3193 |
.if defined(HAS_CONFIGURE) |
3201 |
.if defined(HAS_CONFIGURE) |
3194 |
@${MKDIR} ${CONFIGURE_WRKSRC} |
3202 |
.for _CONFIGURE_DIR in ${CONFIGURE_WRKSRC} |
3195 |
@(cd ${CONFIGURE_WRKSRC} && \ |
3203 |
@${MKDIR} ${_CONFIGURE_DIR} |
|
|
3204 |
@(cd ${_CONFIGURE_DIR} && \ |
3196 |
${SET_LATE_CONFIGURE_ARGS} \ |
3205 |
${SET_LATE_CONFIGURE_ARGS} \ |
3197 |
if ! ${SETENV} CC="${CC}" CPP="${CPP}" CXX="${CXX}" \ |
3206 |
if ! ${SETENV} CC="${CC}" CPP="${CPP}" CXX="${CXX}" \ |
3198 |
CFLAGS="${CFLAGS}" CPPFLAGS="${CPPFLAGS}" CXXFLAGS="${CXXFLAGS}" \ |
3207 |
CFLAGS="${CFLAGS}" CPPFLAGS="${CPPFLAGS}" CXXFLAGS="${CXXFLAGS}" \ |
Lines 3207-3227
Link Here
|
3207 |
(${ECHO_CMD} ${CONFIGURE_FAIL_MESSAGE}) | ${FMT} 75 79 ; \ |
3216 |
(${ECHO_CMD} ${CONFIGURE_FAIL_MESSAGE}) | ${FMT} 75 79 ; \ |
3208 |
${FALSE}; \ |
3217 |
${FALSE}; \ |
3209 |
fi) |
3218 |
fi) |
|
|
3219 |
.endfor |
3210 |
.endif |
3220 |
.endif |
3211 |
.endif |
3221 |
.endif |
3212 |
|
3222 |
|
3213 |
# Build |
3223 |
# Build |
3214 |
# XXX: ${MAKE_ARGS:N${DESTDIRNAME}=*} would be easier but it is not valid with the old fmake |
3224 |
# XXX: ${MAKE_ARGS:N${DESTDIRNAME}=*} would be easier but it is not valid with the old fmake |
3215 |
DO_MAKE_BUILD?= ${SETENV} ${MAKE_ENV} ${MAKE_CMD} ${MAKE_FLAGS} ${MAKEFILE} ${_MAKE_JOBS} ${MAKE_ARGS:C,^${DESTDIRNAME}=.*,,g} |
3225 |
DO_MAKE_BUILD?= ${SETENV} ${MAKE_ENV} ${MAKE_CMD} ${MAKE_FLAGS} ${MAKEFILE} ${_MAKE_JOBS} ${MAKE_ARGS:C,^${DESTDIRNAME}=.*,,g} |
3216 |
.if !target(do-build) |
3226 |
.if !target(do-build) |
3217 |
do-build: |
3227 |
do-build: |
3218 |
@(cd ${BUILD_WRKSRC}; if ! ${DO_MAKE_BUILD} ${ALL_TARGET}; then \ |
3228 |
.for _BUILD_DIR in ${BUILD_WRKSRC} |
|
|
3229 |
@(cd ${_BUILD_DIR}; if ! ${DO_MAKE_BUILD} ${ALL_TARGET}; then \ |
3219 |
if [ -n "${BUILD_FAIL_MESSAGE}" ] ; then \ |
3230 |
if [ -n "${BUILD_FAIL_MESSAGE}" ] ; then \ |
3220 |
${ECHO_MSG} "===> Compilation failed unexpectedly."; \ |
3231 |
${ECHO_MSG} "===> Compilation failed unexpectedly."; \ |
3221 |
(${ECHO_CMD} "${BUILD_FAIL_MESSAGE}") | ${FMT} 75 79 ; \ |
3232 |
(${ECHO_CMD} "${BUILD_FAIL_MESSAGE}") | ${FMT} 75 79 ; \ |
3222 |
fi; \ |
3233 |
fi; \ |
3223 |
${FALSE}; \ |
3234 |
${FALSE}; \ |
3224 |
fi) |
3235 |
fi) |
|
|
3236 |
.endfor |
3225 |
.endif |
3237 |
.endif |
3226 |
|
3238 |
|
3227 |
# Check conflicts |
3239 |
# Check conflicts |
Lines 3326-3346
Link Here
|
3326 |
|
3338 |
|
3327 |
.if !target(do-install) && !defined(NO_INSTALL) |
3339 |
.if !target(do-install) && !defined(NO_INSTALL) |
3328 |
do-install: |
3340 |
do-install: |
3329 |
@(cd ${INSTALL_WRKSRC} && ${SETENV} ${MAKE_ENV} ${FAKEROOT} ${MAKE_CMD} ${MAKE_FLAGS} ${MAKEFILE} ${MAKE_ARGS} ${INSTALL_TARGET}) |
3341 |
.for _INSTALL_DIR in ${INSTALL_WRKSRC} |
|
|
3342 |
@(cd ${_INSTALL_DIR} && ${SETENV} ${MAKE_ENV} ${FAKEROOT} ${MAKE_CMD} ${MAKE_FLAGS} ${MAKEFILE} ${MAKE_ARGS} ${INSTALL_TARGET}) |
3343 |
.endfor |
3330 |
.endif |
3344 |
.endif |
3331 |
|
3345 |
|
3332 |
# Test |
3346 |
# Test |
3333 |
|
3347 |
|
3334 |
.if !target(do-test) && defined(TEST_TARGET) |
3348 |
.if !target(do-test) && defined(TEST_TARGET) |
3335 |
DO_MAKE_TEST?= ${SETENV} ${TEST_ENV} ${MAKE_CMD} ${MAKE_FLAGS} ${MAKEFILE} ${TEST_ARGS:C,^${DESTDIRNAME}=.*,,g} |
3349 |
DO_MAKE_TEST?= ${SETENV} ${TEST_ENV} ${MAKE_CMD} ${MAKE_FLAGS} ${MAKEFILE} ${TEST_ARGS:C,^${DESTDIRNAME}=.*,,g} |
3336 |
do-test: |
3350 |
do-test: |
3337 |
@(cd ${TEST_WRKSRC}; if ! ${DO_MAKE_TEST} ${TEST_TARGET}; then \ |
3351 |
.for _TEST_DIR in ${TEST_WRKSRC} |
|
|
3352 |
@(cd ${_TEST_DIR}; if ! ${DO_MAKE_TEST} ${TEST_TARGET}; then \ |
3338 |
if [ -n "${TEST_FAIL_MESSAGE}" ] ; then \ |
3353 |
if [ -n "${TEST_FAIL_MESSAGE}" ] ; then \ |
3339 |
${ECHO_MSG} "===> Tests failed unexpectedly."; \ |
3354 |
${ECHO_MSG} "===> Tests failed unexpectedly."; \ |
3340 |
(${ECHO_CMD} "${TEST_FAIL_MESSAGE}") | ${FMT} 75 79 ; \ |
3355 |
(${ECHO_CMD} "${TEST_FAIL_MESSAGE}") | ${FMT} 75 79 ; \ |
3341 |
fi; \ |
3356 |
fi; \ |
3342 |
${FALSE}; \ |
3357 |
${FALSE}; \ |
3343 |
fi) |
3358 |
fi) |
|
|
3359 |
.endfor |
3344 |
.elif !target(do-test) |
3360 |
.elif !target(do-test) |
3345 |
do-test: |
3361 |
do-test: |
3346 |
@${DO_NADA} |
3362 |
@${DO_NADA} |