Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Use MagickCore-config if available #149

Merged
merged 1 commit into from
Jul 16, 2019
Merged

Conversation

tvrusso
Copy link
Member

@tvrusso tvrusso commented Jul 16, 2019

Since the earth was cooling and Xastir used ImageMagick, we've used
the existence of the script "Magick-config" to conclude whether
ImageMagick was installed or not, and if it was, we used this script
to get Magick to tell us what CFLAGS, LDFLAGS, and LIBS to use to
build with Magick support.

Magick 6 deprecated this script in favor of one called
MagickCore-config. It works exactly like the older one did and in
ImageMagick 6 returns exactly the same values for all requested flags.

Magick 7 deleted the old script.

We now first look for MagickCore-config and
set MAGIC_BIN to that path if we find it. If we don't find it, we
look for Magick-config and set MAGIC_BIN to that path if we find it.

This commit closes #147.

It does not in fact allow Magick 7 to work with Xastir, but that's
another issue (#148). This one had to be cleared before we could even
start on the harder one.

Since the earth was cooling and Xastir used ImageMagick, we've used
the existence of the script "Magick-config" to conclude whether
ImageMagick was installed or not, and if it was, we used this script
to get Magick to tell us what CFLAGS, LDFLAGS, and LIBS to use to
build with Magick support.

Magick 6 deprecated this script in favor of one called
MagickCore-config.  It works exactly like the older one did and in
ImageMagick 6 returns exactly the same values for all requested flags.

Magick 7 deleted the old script.

We now first look for MagickCore-config and
set MAGIC_BIN to that path if we find it.  If we don't find it, we
look for Magick-config and set MAGIC_BIN to that path if we find it.

This commit closes Xastir#147.

It does not in fact allow Magick 7 to work with Xastir, but that's
another issue (Xastir#148).  This one had to be cleared before we could even
start on the harder one.
@tvrusso tvrusso merged commit 29443ca into Xastir:master Jul 16, 2019
@tvrusso tvrusso added this to Done in Release 2.2.0 Jul 16, 2019
@tvrusso tvrusso removed this from Done in Release 2.2.0 Jul 16, 2019
@tvrusso tvrusso deleted the issue-147 branch July 18, 2019 20:44
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Fix Xastir's probe of ImageMagick to use MagickCore-config if available
2 participants