svn commit: r454482 - head/editors/emacs

Ashish SHUKLA ashish at FreeBSD.org
Sun Nov 19 09:13:45 UTC 2017


Author: ashish
Date: Sun Nov 19 09:13:43 2017
New Revision: 454482
URL: https://svnweb.freebsd.org/changeset/ports/454482

Log:
  - Fix broken behaviour when port is compiled with IMAGEMAGICK option
    and ImageMagick is built with OPENMP option
  
  PR:		223518
  Submitted by:	Kalten <kalten at gmx.at>

Modified:
  head/editors/emacs/Makefile

Modified: head/editors/emacs/Makefile
==============================================================================
--- head/editors/emacs/Makefile	Sun Nov 19 09:10:35 2017	(r454481)
+++ head/editors/emacs/Makefile	Sun Nov 19 09:13:43 2017	(r454482)
@@ -185,6 +185,17 @@ XWIDGETS_CONFIGURE_WITH=xwidgets
 XWIDGETS_LIB_DEPENDS=	libwebkitgtk-3.0.so:www/webkit-gtk3
 XWIDGETS_IMPLIES=	GTK3
 
+.include <bsd.port.options.mk>
+
+# has graphics/ImageMagick been compiled with OPENMP?
+.if ${PORT_OPTIONS:MMAGICK} && ${:!${GREP} -sc " \-fopenmp " ${LOCALBASE}/libdata/pkgconfig/ImageMagick.pc || true!} == "1"
+_MAGICK_WITH_OPENMP=	true
+.endif
+
+.ifdef _MAGICK_WITH_OPENMP
+USES+=	compiler:openmp
+.endif
+
 # With a desktop entry stage-qa will give a warning about requiring
 # desktop-file-utils and portlint -C will give a warning about INSTALL_ICONS,
 # but don't pull in those dependencies when X11 is off.


More information about the svn-ports-all mailing list