diff --git a/x11/windowmaker/Portfile b/x11/windowmaker/Portfile index 4dcaff6ff61bf..ef2259dd7c650 100644 --- a/x11/windowmaker/Portfile +++ b/x11/windowmaker/Portfile @@ -48,11 +48,7 @@ post-patch { set fl [glob -directory ${worksrcpath} WindowMaker/*menu*] lappend fl ${worksrcpath}/WindowMaker/Defaults/WindowMaker.in \ ${worksrcpath}/WPrefs.app/Menu.c ${worksrcpath}/WPrefs.app/Paths.c - foreach i $fl { - reinplace "s|/usr/share|${prefix}/share|g" $i - reinplace "s|/usr/local/share|${prefix}/share|g" $i - reinplace "s|/opt/kde2/share|${prefix}/share|g" $i - } + reinplace -E -q "s,(/usr|/usr/local|/opt/kde2)/share,${prefix}/share,g" {*}${fl} } configure.env-append \