diff options
author | Tijl Coosemans <tijl@FreeBSD.org> | 2015-04-20 19:06:29 +0000 |
---|---|---|
committer | Tijl Coosemans <tijl@FreeBSD.org> | 2015-04-20 19:06:29 +0000 |
commit | 68edbeeaae964d81a4b96aea76974015371e7b07 (patch) | |
tree | 3686bc2aca372d50de8d274ce1e86a1d8116f741 /Mk/bsd.port.mk | |
parent | 6c829b8efd7cb4bfc790ad69a46f7638be9160d4 (diff) | |
download | ports-68edbeeaae964d81a4b96aea76974015371e7b07.tar.gz ports-68edbeeaae964d81a4b96aea76974015371e7b07.zip |
Notes
Diffstat (limited to 'Mk/bsd.port.mk')
-rw-r--r-- | Mk/bsd.port.mk | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/Mk/bsd.port.mk b/Mk/bsd.port.mk index 28a16c56e845..7d128f9c102f 100644 --- a/Mk/bsd.port.mk +++ b/Mk/bsd.port.mk @@ -805,7 +805,8 @@ FreeBSD_MAINTAINER= portmgr@FreeBSD.org # Default: ${PREFIX} # CONFIGURE_ARGS # - Pass these args to configure if ${HAS_CONFIGURE} is set. -# Default: "--prefix=${GNU_CONFIGURE_PREFIX} --infodir=${PREFIX}/${INFO_PATH} +# Default: "--prefix=${GNU_CONFIGURE_PREFIX} +# --infodir=${PREFIX}/${INFO_PATH} --localstatedir=/var # --mandir=${MANPREFIX}/man --build=${CONFIGURE_TARGET}" if # GNU_CONFIGURE is set, "CC=${CC} CFLAGS=${CFLAGS} # PREFIX=${PREFIX} INSTALLPRIVLIB=${PREFIX}/lib @@ -2679,6 +2680,10 @@ HAS_CONFIGURE= yes SET_LATE_CONFIGURE_ARGS= \ _LATE_CONFIGURE_ARGS="" ; \ + if [ -z "${CONFIGURE_ARGS:M--localstatedir=*:Q}" ] && \ + ./${CONFIGURE_SCRIPT} --help 2>&1 | ${GREP} -- --localstatedir > /dev/null; then \ + _LATE_CONFIGURE_ARGS="$${_LATE_CONFIGURE_ARGS} --localstatedir=/var" ; \ + fi ; \ if [ ! -z "`./${CONFIGURE_SCRIPT} --help 2>&1 | ${GREP} -- '--mandir'`" ]; then \ _LATE_CONFIGURE_ARGS="$${_LATE_CONFIGURE_ARGS} --mandir=${GNU_CONFIGURE_MANPREFIX}/man" ; \ fi ; \ |