Date: Sat, 27 Feb 2021 08:39:11 +0000 (UTC) From: Alexey Dokuchaev <danfe@FreeBSD.org> To: ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org Subject: svn commit: r566678 - in head/x11-wm: libwraster windowmaker Message-ID: <202102270839.11R8dBE9080574@repo.freebsd.org>
next in thread | raw e-mail | index | archive | help
Author: danfe Date: Sat Feb 27 08:39:11 2021 New Revision: 566678 URL: https://svnweb.freebsd.org/changeset/ports/566678 Log: Make ImageMagick support optional and respect IMAGEMAGICK_DEFAULT. Modified: head/x11-wm/libwraster/Makefile head/x11-wm/windowmaker/Makefile Modified: head/x11-wm/libwraster/Makefile ============================================================================== --- head/x11-wm/libwraster/Makefile Sat Feb 27 08:24:28 2021 (r566677) +++ head/x11-wm/libwraster/Makefile Sat Feb 27 08:39:11 2021 (r566678) @@ -2,6 +2,7 @@ PORTNAME= libwraster PORTVERSION= 0.95.9 +PORTREVISION= 1 CATEGORIES= x11-wm windowmaker MASTER_SITES= http://windowmaker.org/pub/source/release/ DISTNAME= WindowMaker-${PORTVERSION} @@ -15,8 +16,7 @@ LIB_DEPENDS= libgif.so:graphics/giflib \ libpng.so:graphics/png \ libjbig.so:graphics/jbigkit \ libtiff.so:graphics/tiff \ - libwebp.so:graphics/webp \ - libMagickWand-7.so:graphics/ImageMagick7 + libwebp.so:graphics/webp USES= jpeg libtool localbase pathfix pkgconfig xorg USE_LDCONFIG= yes @@ -35,6 +35,20 @@ CONFIGURE_ARGS= --with-pixmapdir=${PREFIX}/include/X11 --enable-wmreplace \ --with-x INSTALL_TARGET= install-strip + +OPTIONS_DEFINE= IMAGEMAGICK +OPTIONS_DEFAULT= IMAGEMAGICK + +IMAGEMAGICK_LIB_DEPENDS= libMagickWand-${IMAGEMAGICK_DEFAULT}.so:graphics/ImageMagick${IMAGEMAGICK_DEFAULT} +IMAGEMAGICK_CONFIGURE_OFF= --disable-magick + +.include <bsd.port.options.mk> + +post-patch-IMAGEMAGICK-on: +.if ${IMAGEMAGICK_DEFAULT} == 6 + @${REINPLACE_CMD} -e '/MagickWand\.h/s,MagickWand/,wand/,' \ + ${WRKSRC}/configure ${WRKSRC}/wrlib/load_magick.c +.endif pre-build: cd ${WRKSRC} && ${MAKE_CMD} config-paths.h Modified: head/x11-wm/windowmaker/Makefile ============================================================================== --- head/x11-wm/windowmaker/Makefile Sat Feb 27 08:24:28 2021 (r566677) +++ head/x11-wm/windowmaker/Makefile Sat Feb 27 08:39:11 2021 (r566678) @@ -3,6 +3,7 @@ PORTNAME= windowmaker PORTVERSION= 0.95.9 +PORTREVISION= 1 CATEGORIES= x11-wm windowmaker MASTER_SITES= http://windowmaker.org/pub/source/release/ DISTNAME= WindowMaker-${PORTVERSION} @@ -17,7 +18,6 @@ LIB_DEPENDS= libgif.so:graphics/giflib \ libjbig.so:graphics/jbigkit \ libtiff.so:graphics/tiff \ libwebp.so:graphics/webp \ - libMagickWand-7.so:graphics/ImageMagick7 \ libwraster.so:x11-wm/libwraster \ libfontconfig.so:x11-fonts/fontconfig \ libfreetype.so:print/freetype2 \ @@ -51,11 +51,24 @@ PORTDOCS= AUTHORS BUGFORM BUGS ChangeLog FAQ INSTALL \ INSTALL-WMAKER NEWS README README.definable-cursor \ README.i18n TODO The-perfect-Window-Maker-patch.txt -OPTIONS_DEFINE= DOCS NLS +OPTIONS_DEFINE= IMAGEMAGICK DOCS NLS +OPTIONS_DEFAULT= IMAGEMAGICK OPTIONS_SUB= yes + +IMAGEMAGICK_LIB_DEPENDS= libMagickWand-${IMAGEMAGICK_DEFAULT}.so:graphics/ImageMagick${IMAGEMAGICK_DEFAULT} +IMAGEMAGICK_CONFIGURE_OFF= --disable-magick + NLS_USES= gettext NLS_CONFIGURE_ENV= LINGUAS="*" NLS_CONFIGURE_ENABLE= locale + +.include <bsd.port.options.mk> + +post-patch-IMAGEMAGICK-on: +.if ${IMAGEMAGICK_DEFAULT} == 6 + @${REINPLACE_CMD} -e '/MagickWand\.h/s,MagickWand/,wand/,' \ + ${WRKSRC}/configure ${WRKSRC}/wrlib/load_magick.c +.endif post-install: @${MKDIR} \
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?202102270839.11R8dBE9080574>