Index: graphics/gtk-update-icon-cache/Makefile =================================================================== --- graphics/gtk-update-icon-cache/Makefile +++ graphics/gtk-update-icon-cache/Makefile @@ -36,17 +36,16 @@ PLIST_FILES= bin/gtk-update-icon-cache # man/man1/gtk-update-icon-cache.1.gz -.include - post-patch: @${REINPLACE_CMD} -e 's|-DGDK_PIXBUF_DISABLE_DEPRECATED||g' \ ${WRKSRC}/configure pre-configure: -.if !exists(${LOCALBASE}/libdata/pkgconfig/cairo-xlib.pc) - @${ECHO_CMD} "${PKGNAME}: Needs cairo with X11 support enabled." - @${FALSE} -.endif +# .if !exists() evaluates too early before cairo has a chance to be installed + @if ! pkg-config --exists cairo-xlib; then \ + ${ECHO_MSG} "${PKGNAME}: Needs cairo with X11 support enabled."; \ + ${FALSE}; \ + fi do-install: @${INSTALL_PROGRAM} ${WRKSRC}/gtk/gtk-update-icon-cache \ @@ -54,4 +53,4 @@ # @${INSTALL_MAN} ${WRKSRC}/docs/reference/gtk/gtk-update-icon-cache.1 \ # ${STAGEDIR}${PREFIX}/man/man1/ -.include +.include