comparison x11/xclock/xclock.sh @ 904:25a95c53d800

vanilla: rename FREETYPE to TTF, closes #2202
author David Demelier <markand@malikania.fr>
date Mon, 26 Aug 2019 20:20:00 +0200
parents a133976e0783
children ddab65a5b3f5
comparison
equal deleted inserted replaced
903:931d2626ae5f 904:25a95c53d800
24 PKGDEPENDS="libx11 24 PKGDEPENDS="libx11
25 libxmu 25 libxmu
26 libxaw 26 libxaw
27 util-macros:build 27 util-macros:build
28 xorgproto:build" 28 xorgproto:build"
29 PKGOPTIONS="FREETYPE" 29 PKGOPTIONS="TTF"
30 30
31 : ${CHOST:=$(uname -m)-linux-musl} 31 : ${CHOST:=$(uname -m)-linux-musl}
32 : ${CBUILD:=$(uname -m)-linux-musl} 32 : ${CBUILD:=$(uname -m)-linux-musl}
33 : ${CC:=clang} 33 : ${CC:=clang}
34 : ${CFLAGS:=-O2} 34 : ${CFLAGS:=-O2}
35 : ${LDFLAGS:=} 35 : ${LDFLAGS:=}
36 : ${LIBS:=} 36 : ${LIBS:=}
37 : ${FREETYPE:=yes} 37 : ${TTF:=yes}
38 38
39 if [ "$FREETYPE" = "yes" ]; then 39 if [ "$TTF" = "yes" ]; then
40 PKGDEPENDS="libxft $PKGDEPENDS" 40 PKGDEPENDS="libxft $PKGDEPENDS"
41 with_freetype="--with-xft" 41 with_ttf="--with-xft"
42 else 42 else
43 with_freetype="--without-xft" 43 with_ttf="--without-xft"
44 fi 44 fi
45 45
46 build() 46 build()
47 { 47 {
48 rm -rf $PKGNAME-$PKGVERSION 48 rm -rf $PKGNAME-$PKGVERSION
55 LIBS="$LIBS" \ 55 LIBS="$LIBS" \
56 ./configure \ 56 ./configure \
57 --build=$CBUILD \ 57 --build=$CBUILD \
58 --host=$CHOST \ 58 --host=$CHOST \
59 --prefix= \ 59 --prefix= \
60 $with_freetype 60 $with_ttf
61 make 61 make
62 make install DESTDIR=$DESTDIR 62 make install DESTDIR=$DESTDIR
63 63
64 cd .. 64 cd ..
65 rm -rf $PKGNAME-$PKGVERSION 65 rm -rf $PKGNAME-$PKGVERSION