File: use_pkg-config.patch

package info (click to toggle)
cimg 1.7.9%2Bdfsg-1
  • links: PTS, VCS
  • area: main
  • in suites: stretch
  • size: 22,524 kB
  • ctags: 5,050
  • sloc: cpp: 114,701; ansic: 73,904; makefile: 583; sh: 119
file content (19 lines) | stat: -rw-r--r-- 903 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
Author: Andreas Tille <tille@debian.org>
Last-Updated: Mon, 15 Sep 2014 17:16:57 +0200
Bug-Debian: http://bugs.debian.org/761564
Description: Newer imagemagick version does not supply Magick++-config
 command any more but pkg-config can be used instead

--- a/examples/Makefile
+++ b/examples/Makefile
@@ -211,8 +211,8 @@ CIMG_CURL_LIBS = -lcurl
 
 # Flags to enable native support of most classical image file formats, using the Magick++ library.
 # ( http://www.imagemagick.org/Magick++/ )
-CIMG_MAGICK_CFLAGS = -Dcimg_use_magick `Magick++-config --cppflags` `Magick++-config --cxxflags`
-CIMG_MAGICK_LIBS = `Magick++-config --ldflags` `Magick++-config --libs`
+CIMG_MAGICK_CFLAGS = -Dcimg_use_magick `pkg-config --cflags Magick++`
+CIMG_MAGICK_LIBS = `pkg-config --libs Magick++`
 
 # Flags to enable faster Discrete Fourier Transform computation, using the FFTW3 library
 # ( http://www.fftw.org/ )