diff --git a/graphics/gtk-update-icon-cache/Makefile b/graphics/gtk-update-icon-cache/Makefile index 65e829aeb4f1..b856663bdb44 100644 --- a/graphics/gtk-update-icon-cache/Makefile +++ b/graphics/gtk-update-icon-cache/Makefile @@ -53,10 +53,10 @@ MAN1= gtk-update-icon-cache.1 .include pre-configure: -.if !exists(${LOCALBASE}/libdata/pkgconfig/cairo-xlib.pc) - @${ECHO_CMD} "${PKGNAME}: Needs cairo build with X11 support." - @${FALSE} -.endif + @if [ ! -f ${LOCALBASE}/libdata/pkgconfig/cairo-xlib.pc ]; then \ + ${ECHO_CMD} "${PKGNAME}: Needs cairo built with X11 support."; \ + ${FALSE}; \ + fi do-build: @cd ${WRKSRC}/gtk && ${GMAKE} gtk-update-icon-cache