@ -201,21 +201,23 @@ include $(TOP_DIR)/builds/modules.mk
# get FreeType version string, using a
# poor man's `sed' emulation with make's built-in string functions
#
hash := \#
work := $( strip $( shell $( CAT) \
$( subst /,$( SEP) ,$( TOP_DIR) /include/freetype/freetype.h) ) )
work := $( subst | ,x,$( work) )
work := $( subst $( space) ,| ,$( work) )
work := $( subst \# define| FREETYPE_MAJOR| ,$( space) ,$( work) )
work := $( subst $( hash ) define| FREETYPE_MAJOR| ,$( space) ,$( work) )
work := $( word 2,$( work) )
major := $( subst | ,$( space) ,$( work) )
major := $( firstword $( major) )
work := $( subst \# define| FREETYPE_MINOR| ,$( space) ,$( work) )
work := $( subst $( hash ) define| FREETYPE_MINOR| ,$( space) ,$( work) )
work := $( word 2,$( work) )
minor := $( subst | ,$( space) ,$( work) )
minor := $( firstword $( minor) )
work := $( subst \# define| FREETYPE_PATCH| ,$( space) ,$( work) )
work := $( subst $( hash ) define| FREETYPE_PATCH| ,$( space) ,$( work) )
work := $( word 2,$( work) )
patch := $( subst | ,$( space) ,$( work) )
patch := $( firstword $( patch) )