Changeset View
Changeset View
Standalone View
Standalone View
Mk/bsd.port.mk
Show First 20 Lines • Show All 3,427 Lines • ▼ Show 20 Lines | if [ "`${ECHO_CMD} ${PATCHDIR}/patch-*`" != "${PATCHDIR}/patch-*" ]; then \ | ||||
fi; \ | fi; \ | ||||
;; \ | ;; \ | ||||
esac; \ | esac; \ | ||||
done; \ | done; \ | ||||
fi; \ | fi; \ | ||||
fi | fi | ||||
.endif | .endif | ||||
.if !target(run-autotools-fixup) | |||||
run-autotools-fixup: | |||||
# Work around an issue where FreeBSD 10.0 is detected as FreeBSD 1.x. | |||||
.if ${OSVERSION} >= 1000000 && !defined(WITHOUT_FBSD10_FIX) | |||||
-@for f in `${FIND} ${WRKDIR} -type f \( -name config.libpath -o \ | |||||
-name config.rpath -o -name configure -o -name libtool.m4 -o \ | |||||
-name ltconfig -o -name libtool -o -name aclocal.m4 -o \ | |||||
-name acinclude.m4 \)` ; do \ | |||||
${SED} -i.fbsd10bak \ | |||||
-e 's|freebsd1\*)|freebsd1.\*)|g' \ | |||||
-e 's|freebsd\[12\]\*)|freebsd[12].*)|g' \ | |||||
-e 's|freebsd\[123\]\*)|freebsd[123].*)|g' \ | |||||
-e 's|freebsd\[\[12\]\]\*)|freebsd[[12]].*)|g' \ | |||||
-e 's|freebsd\[\[123\]\]\*)|freebsd[[123]].*)|g' \ | |||||
$${f} ; \ | |||||
${TOUCH} ${TOUCH_FLAGS} -mr $${f}.fbsd10bak $${f} ; \ | |||||
${RM} -f $${f}.fbsd10bak ; \ | |||||
${ECHO_MSG} "===> FreeBSD 10 autotools fix applied to $${f}"; \ | |||||
done | |||||
.endif | |||||
.endif | |||||
# Configure | # Configure | ||||
.if !target(do-configure) | .if !target(do-configure) | ||||
do-configure: | do-configure: | ||||
@if [ -f ${SCRIPTDIR}/configure ]; then \ | @if [ -f ${SCRIPTDIR}/configure ]; then \ | ||||
cd ${.CURDIR} && ${SETENV} ${SCRIPTS_ENV} ${SH} \ | cd ${.CURDIR} && ${SETENV} ${SCRIPTS_ENV} ${SH} \ | ||||
${SCRIPTDIR}/configure; \ | ${SCRIPTDIR}/configure; \ | ||||
fi | fi | ||||
▲ Show 20 Lines • Show All 2,528 Lines • ▼ Show 20 Lines | |||||
_EXTRACT_SEQ= check-build-conflicts extract-message checksum extract-depends \ | _EXTRACT_SEQ= check-build-conflicts extract-message checksum extract-depends \ | ||||
clean-wrkdir ${WRKDIR} pre-extract pre-extract-script do-extract \ | clean-wrkdir ${WRKDIR} pre-extract pre-extract-script do-extract \ | ||||
post-extract post-extract-script | post-extract post-extract-script | ||||
_PATCH_DEP= extract | _PATCH_DEP= extract | ||||
_PATCH_SEQ= ask-license patch-message patch-depends pathfix dos2unix fix-shebang \ | _PATCH_SEQ= ask-license patch-message patch-depends pathfix dos2unix fix-shebang \ | ||||
pre-patch \ | pre-patch \ | ||||
pre-patch-script do-patch charsetfix-post-patch post-patch post-patch-script | pre-patch-script do-patch charsetfix-post-patch post-patch post-patch-script | ||||
_CONFIGURE_DEP= patch | _CONFIGURE_DEP= patch | ||||
_CONFIGURE_SEQ= build-depends lib-depends configure-message run-autotools-fixup \ | _CONFIGURE_SEQ= build-depends lib-depends configure-message \ | ||||
configure-autotools pre-configure pre-configure-script \ | configure-autotools pre-configure pre-configure-script \ | ||||
run-autotools do-autoreconf patch-libtool do-configure \ | run-autotools do-autoreconf patch-libtool do-configure \ | ||||
post-configure post-configure-script | post-configure post-configure-script | ||||
_BUILD_DEP= configure | _BUILD_DEP= configure | ||||
_BUILD_SEQ= build-message pre-build pre-build-script do-build \ | _BUILD_SEQ= build-message pre-build pre-build-script do-build \ | ||||
post-build post-build-script | post-build post-build-script | ||||
_STAGE_DEP= build | _STAGE_DEP= build | ||||
▲ Show 20 Lines • Show All 134 Lines • Show Last 20 Lines |