Permalink
Browse files

As suggested by ache, actually check for the presence of Image/Magick…

….pm and only barf if it

doesn't exist.
  • Loading branch information...
1 parent 1b72182 commit 83f290b7ef41d9f89905745d33709b9573d1ef03 adamw committed Jul 21, 2014
Showing with 8 additions and 5 deletions.
  1. +8 −5 www/WebMagick/Makefile
View
13 www/WebMagick/Makefile
@@ -38,12 +38,15 @@ X11_BUILD_DEPENDS= xlsfonts:${PORTSDIR}/x11-fonts/xlsfonts
X11_RUN_DEPENDS= xlsfonts:${PORTSDIR}/x11-fonts/xlsfonts
X11_CONFIGURE_ENV_OFF= with_x=no
-pre-everything::
- @${ECHO_CMD}
- @${ECHO_CMD} ${PORTNAME} requires that ImageMagick be installed with the PERL option enabled.
- @${ECHO_CMD}
+.include <bsd.port.pre.mk>
+
+do-configure:
+ @if [ ! -f ${SITE_PERL}/${PERL_ARCH}/Image/Magick.pm ]; then \
+ ${ECHO_CMD} ERROR: ImageMagick must be installed with the PERL option enabled; \
+ ${FALSE}; \
+ fi
pre-install:
@${MKDIR} ${STAGEDIR}${PREFIX}/www/data
-.include <bsd.port.mk>
+.include <bsd.port.post.mk>

0 comments on commit 83f290b

Please sign in to comment.