Dear PLplot developers,
Please, find attached to this message a patch that is being currently
applied to the Debian package for PLplot. We got bitten by an
auto-builder that did not have the fonts-freetype-ttf package installed
and failed to build the libplplot17 package. The proposed patch makes
it easier to diagnose the problem.
Notice that I also changed the second check from "Symbol" into "Mono",
since both PL_FREETYPE_SANS and PL_FREETYPE_SYMBOL point to FreeSans.ttf.
Best,
Rafael Laboissière
Description: Show the FreeType fonts found
Author: Rafael Laboissière <raf...@debian.org>
Forwarded: no
Last-Update: 2020-12-13
--- plplot-5.15.0+dfsg.orig/cmake/modules/freetype.cmake
+++ plplot-5.15.0+dfsg/cmake/modules/freetype.cmake
@@ -108,13 +108,15 @@ if (WITH_FREETYPE)
# Check a couple of fonts actually exists
if (EXISTS ${PL_FREETYPE_FONT_DIR}${PL_FREETYPE_SANS})
- if (EXISTS ${PL_FREETYPE_FONT_DIR}${PL_FREETYPE_SYMBOL})
- else (EXISTS ${PL_FREETYPE_FONT_DIR}${PL_FREETYPE_SYMBOL})
+ message(STATUS "FreeType Sans = ${PL_FREETYPE_FONT_DIR}${PL_FREETYPE_SANS}")
+ if (EXISTS ${PL_FREETYPE_FONT_DIR}${PL_FREETYPE_MONO})
+ message(STATUS "FreeType Mono = ${PL_FREETYPE_FONT_DIR}${PL_FREETYPE_MONO}")
+ else (EXISTS ${PL_FREETYPE_FONT_DIR}${PL_FREETYPE_MONO})
message("Fonts not found - disabling freetype")
set(WITH_FREETYPE OFF CACHE BOOL
"Enable driver options for using freetype library for fonts" FORCE
)
- endif (EXISTS ${PL_FREETYPE_FONT_DIR}${PL_FREETYPE_SYMBOL})
+ endif (EXISTS ${PL_FREETYPE_FONT_DIR}${PL_FREETYPE_MONO})
else (EXISTS ${PL_FREETYPE_FONT_DIR}${PL_FREETYPE_SANS})
message("Fonts not found - disabling freetype")
set(WITH_FREETYPE OFF CACHE BOOL
_______________________________________________
Plplot-devel mailing list
Plplot-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/plplot-devel