summaryrefslogtreecommitdiff
path: root/www/WebMagick/Makefile
diff options
context:
space:
mode:
authorAdam Weinberger <adamw@FreeBSD.org>2014-07-21 20:53:56 +0000
committerAdam Weinberger <adamw@FreeBSD.org>2014-07-21 20:53:56 +0000
commitd1acf5b73fef7c7d6e9ced73f19a0b9eb3234131 (patch)
treee81193772238281b01f28c8baa71e3b2c0d2a5c8 /www/WebMagick/Makefile
parentSet CATEGORIES to textproc (diff)
As suggested by ache, actually check for the presence of Image/Magick.pm and only barf if it
doesn't exist.
Notes
Notes: svn path=/head/; revision=362484
Diffstat (limited to '')
-rw-r--r--www/WebMagick/Makefile13
1 files changed, 8 insertions, 5 deletions
diff --git a/www/WebMagick/Makefile b/www/WebMagick/Makefile
index 068b2baed70b..dabe7125db3a 100644
--- a/www/WebMagick/Makefile
+++ b/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>