1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-11-27 00:57:50 +00:00

The fix below moves the test to sh, which effectively ensures that the test

for existence is done at pre-configure stage rather than Makefile parse.

PR:		ports/166279
Submitted by:	Mel Flynn <rflynn@acsalaska.net>
This commit is contained in:
Jeremy Messenger 2012-05-20 16:45:36 +00:00
parent f5a0b93455
commit 8e1c50af09
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=297047

View File

@ -53,10 +53,10 @@ MAN1= gtk-update-icon-cache.1
.include <bsd.port.pre.mk>
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