|
|
|
@ -23,6 +23,7 @@ Options: |
|
|
|
|
the FreeType library |
|
|
|
|
--exec-prefix=EPREFIX override \`--exec-prefix' value with EPREFIX |
|
|
|
|
--version display libtool version of the FreeType library |
|
|
|
|
--ftversion display FreeType version number |
|
|
|
|
--libs display flags for linking with the FreeType library |
|
|
|
|
--libtool display library name for linking with libtool |
|
|
|
|
--cflags display flags for compiling with the FreeType |
|
|
|
@ -65,6 +66,19 @@ while test $# -gt 0 ; do |
|
|
|
|
echo @ft_version@ |
|
|
|
|
exit 0 |
|
|
|
|
;; |
|
|
|
|
--ftversion) |
|
|
|
|
major=`grep define @prefix@/include/freetype2/freetype/freetype.h \ |
|
|
|
|
| grep FREETYPE_MAJOR \ |
|
|
|
|
| sed 's/.*[ ]\([0-9][0-9]*\).*/\1/'` |
|
|
|
|
minor=`grep define @prefix@/include/freetype2/freetype/freetype.h \ |
|
|
|
|
| grep FREETYPE_MINOR \ |
|
|
|
|
| sed 's/.*[ ]\([0-9][0-9]*\).*/\1/'` |
|
|
|
|
patch=`grep define @prefix@/include/freetype2/freetype/freetype.h \ |
|
|
|
|
| grep FREETYPE_PATCH \ |
|
|
|
|
| sed 's/.*[ ]\([0-9][0-9]*\).*/\1/'` |
|
|
|
|
echo $major.$minor.$patch |
|
|
|
|
exit 0 |
|
|
|
|
;; |
|
|
|
|
--cflags) |
|
|
|
|
echo_cflags=yes |
|
|
|
|
;; |
|
|
|
|