blob: d7447dffee16e9379dfa5a85d98b1c9fdd746fdf (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
|
#!/bin/sh
#
# $NetBSD: buildlink2-freetype-config.in,v 1.2 2002/08/25 18:39:01 jlam Exp $
#
# If FreeType2 is distributed as part of XFree86, then it may be missing a
# freetype-config script that emits the preprocessor and linker flags
# necessary to find the FreeType2 headers and libraries. This script
# provides that functionality within the buildlink2 framework and is used
# by freetype2/buildlink2.mk.
while [ $# -gt 0 ]
do
case "$1" in
-*=*) optarg=`echo "$1" | @SED@ 's/[-_a-zA-Z0-9]*=//'` ;;
*) optarg= ;;
esac
case $1 in
--prefix=*|--prefix|--exec-prefix=*|--exec-prefix)
echo @X11BASE@
;;
--version)
freetype_h=@X11BASE@/include/freetype2/freetype/freetype.h
major=`@AWK@ '/.*#define.*FREETYPE_MAJOR/ { print $3 }' ${freetype_h}`
minor=`@AWK@ '/.*#define.*FREETYPE_MINOR/ { print $3 }' ${freetype_h}`
echo ${major}.${minor}
exit 0
;;
--cflags)
echo -I@X11BASE@/include/freetype2 ${includes}
;;
--libs)
echo -L@X11BASE@/lib -Wl,-R@X11BASE@/lib -lfreetype
;;
esac
shift
done
|