mirror of https://git.wownero.com/dsc/mxe.git
package imagemagick: fix freetype detection, add test
This commit is contained in:
parent
273e5f2366
commit
537e0c986d
|
@ -0,0 +1,17 @@
|
|||
/*
|
||||
* This file is part of MXE.
|
||||
* See index.html for further information.
|
||||
*/
|
||||
|
||||
#include <Magick++.h>
|
||||
|
||||
int main(int argc, char *argv[])
|
||||
{
|
||||
(void)argc;
|
||||
(void)argv;
|
||||
|
||||
Magick::Image image;
|
||||
image.quality(90);
|
||||
|
||||
return 0;
|
||||
}
|
|
@ -25,8 +25,13 @@ define $(PKG)_BUILD
|
|||
--with-x=no \
|
||||
--without-zlib \
|
||||
--disable-largefile \
|
||||
ac_cv_prog_freetype_config='$(PREFIX)/$(TARGET)/bin/freetype-config'
|
||||
--with-freetype='$(PREFIX)/$(TARGET)/bin/freetype-config'
|
||||
$(SED) -i 's/#define MAGICKCORE_ZLIB_DELEGATE 1//g' '$(1)/magick/magick-config.h'
|
||||
$(MAKE) -C '$(1)' -j '$(JOBS)' bin_PROGRAMS=
|
||||
$(MAKE) -C '$(1)' -j 1 install bin_PROGRAMS=
|
||||
|
||||
'$(1)'/libtool --mode=link --tag=CXX \
|
||||
'$(TARGET)-g++' -Wall -Wextra -std=gnu++0x \
|
||||
'$(2).cpp' -o '$(PREFIX)/$(TARGET)/bin/test-imagemagick.exe' \
|
||||
`'$(TARGET)-pkg-config' ImageMagick++ --cflags --libs`
|
||||
endef
|
||||
|
|
Loading…
Reference in New Issue