diff options
author | sobomax <sobomax@FreeBSD.org> | 2001-07-05 02:29:48 +0800 |
---|---|---|
committer | sobomax <sobomax@FreeBSD.org> | 2001-07-05 02:29:48 +0800 |
commit | 8346d9cb6e28b04550a91aee666ed2e42a5318ff (patch) | |
tree | 7cba9a8d6543425b37a3830a40adf8312a39fa74 /Mk | |
parent | 876f630b7e4a0d5ca5983008a3b0fb7b8c1b2281 (diff) | |
download | freebsd-ports-gnome-8346d9cb6e28b04550a91aee666ed2e42a5318ff.tar.gz freebsd-ports-gnome-8346d9cb6e28b04550a91aee666ed2e42a5318ff.tar.zst freebsd-ports-gnome-8346d9cb6e28b04550a91aee666ed2e42a5318ff.zip |
Workarround a bug in make(1) that leads results in --datadir/--localstatedir
not being set properly for some ports. The problem is that ":S" modifier
collapses spaces, even if the regex doesn't match. The following piece of
make(1) "code" illustrates the problem:
foo= a b
.if ${foo} != ${foo:S/x//}
all:
@${ECHO} 'BAD!'
.endif
Diffstat (limited to 'Mk')
-rw-r--r-- | Mk/bsd.gnome.mk | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Mk/bsd.gnome.mk b/Mk/bsd.gnome.mk index 9a16571ba3df..6fb079e9377b 100644 --- a/Mk/bsd.gnome.mk +++ b/Mk/bsd.gnome.mk @@ -281,10 +281,10 @@ MAKE_ENV+= HAVE_IMLIB=${HAVE_IMLIB} .if defined(USE_GNOMELIBS) CONFIGURE_ARGS+=--with-gnome=${PREFIX} -.if !defined(HAVE_GNOME) && ${CONFIGURE_ARGS:S/--localstatedir=//} == ${CONFIGURE_ARGS} +.if !defined(HAVE_GNOME) && ${CONFIGURE_ARGS:S/--localstatedir=//} == ${CONFIGURE_ARGS:S/ / /g} CONFIGURE_ARGS+=--localstatedir=${PREFIX}/share/gnome .endif -.if !defined(HAVE_GNOME) && ${CONFIGURE_ARGS:S/--datadir=//} == ${CONFIGURE_ARGS} +.if !defined(HAVE_GNOME) && ${CONFIGURE_ARGS:S/--datadir=//} == ${CONFIGURE_ARGS:S/ / /g} CONFIGURE_ARGS+=--datadir=${PREFIX}/share/gnome .endif LIB_DEPENDS+= gnome.5:${PORTSDIR}/x11/gnomelibs |