comparison graphics/imlib2/imlib2.sh @ 1094:3dece1f7570b

vanilla: add many ghost dependencies
author David Demelier <markand@malikania.fr>
date Mon, 09 Sep 2019 21:10:00 +0200
parents ddab65a5b3f5
children 6710613b88b9
comparison
equal deleted inserted replaced
1093:0502aa76ec98 1094:3dece1f7570b
20 PKGREVISION=1 20 PKGREVISION=1
21 PKGLICENSE="CUSTOM" 21 PKGLICENSE="CUSTOM"
22 PKGSUMMARY="image loading library" 22 PKGSUMMARY="image loading library"
23 PKGDOWNLOAD="https://sourceforge.net/projects/enlightenment/files/imlib2-src/$PKGVERSION/$PKGNAME-$PKGVERSION.tar.bz2" 23 PKGDOWNLOAD="https://sourceforge.net/projects/enlightenment/files/imlib2-src/$PKGVERSION/$PKGNAME-$PKGVERSION.tar.bz2"
24 PKGDEPENDS="freetype" 24 PKGDEPENDS="freetype"
25 PKGOPTIONS="BZIP2 GIF ID3 PNG TIFF X ZLIB" 25 PKGOPTIONS="BZIP2 GIF ID3 JPEG PNG TIFF X ZLIB"
26 26
27 : ${CHOST:=$(uname -m)-linux-musl} 27 : ${CHOST:=$(uname -m)-linux-musl}
28 : ${CBUILD:=$(uname -m)-linux-musl} 28 : ${CBUILD:=$(uname -m)-linux-musl}
29 : ${CC:=clang} 29 : ${CC:=clang}
30 : ${CFLAGS:=-O2} 30 : ${CFLAGS:=-O2}
31 : ${LDFLAGS:=} 31 : ${LDFLAGS:=}
32 : ${LIBS:=} 32 : ${LIBS:=}
33 : ${BZIP2:=yes} 33 : ${BZIP2:=yes}
34 : ${GIF:=yes} # TODO: allow "libungif" as optional value 34 : ${GIF:=yes} # TODO: allow "libungif" as optional value
35 : ${ID3:=yes} 35 : ${ID3:=yes}
36 : ${JPEG:=yes}
36 : ${PNG:=yes} 37 : ${PNG:=yes}
37 : ${TIFF:=yes} 38 : ${TIFF:=yes}
38 : ${X:=yes} 39 : ${X:=yes}
39 : ${ZLIB:=yes} 40 : ${ZLIB:=yes}
40 41
50 with_gif="--with-gif" 51 with_gif="--with-gif"
51 else 52 else
52 with_gif="--without-gif" 53 with_gif="--without-gif"
53 fi 54 fi
54 55
56 if [ "$JPEG" = "yes" ]; then
57 PKGDEPENDS="libjpeg-turbo $PKGDEPENDS"
58 with_jpeg="--with-jpeg"
59 else
60 with_jpeg="--without-jpeg"
61 fi
62
55 if [ "$ID3" = "yes" ]; then 63 if [ "$ID3" = "yes" ]; then
56 PKGDEPENDS="libid3tag $PKGDEPENDS" 64 PKGDEPENDS="libid3tag $PKGDEPENDS"
57 with_id3="--with-id3" 65 with_id3="--with-id3"
58 else 66 else
59 with_id3="--without-id3" 67 with_id3="--without-id3"
65 else 73 else
66 with_png="--without-png" 74 with_png="--without-png"
67 fi 75 fi
68 76
69 if [ "$TIFF" = "yes" ]; then 77 if [ "$TIFF" = "yes" ]; then
70 PKGDEPENDS="tiff $PKGDEPENDS" 78 PKGDEPENDS="libtiff $PKGDEPENDS"
71 with_tiff="--with-tiff" 79 with_tiff="--with-tiff"
72 else 80 else
73 with_tiff="--without-tiff" 81 with_tiff="--without-tiff"
74 fi 82 fi
75 83
76 if [ "$X" = "yes" ]; then 84 if [ "$X" = "yes" ]; then
77 PKGDEPENDS="libx11 libxext libxcb $PKGDEPENDS" 85 PKGDEPENDS="libx11 libxext libxcb $PKGDEPENDS"
78 with_x="--with-x" 86 with_x="--with-x"
79 else 87 else
80 with_x="--without-x11" 88 with_x="--without-x11"
89 fi
90
91 if [ "$ZLIB" = "yes" ]; then
92 PKGDEPENDS="zlib $PKGDEPENDS"
93 with_zlib="--with-zlib"
94 else
95 with_zlib="--without-zlib"
81 fi 96 fi
82 97
83 build() 98 build()
84 { 99 {
85 rm -rf $PKGNAME-$PKGVERSION 100 rm -rf $PKGNAME-$PKGVERSION
94 --build=$CBUILD \ 109 --build=$CBUILD \
95 --host=$CHOST \ 110 --host=$CHOST \
96 --prefix= \ 111 --prefix= \
97 $with_bzip2 \ 112 $with_bzip2 \
98 $with_gif \ 113 $with_gif \
114 $with_jpeg \
99 $with_id3 \ 115 $with_id3 \
100 $with_png \ 116 $with_png \
101 $with_tiff \ 117 $with_tiff \
102 $with_x \ 118 $with_x \
103 $with_zlib 119 $with_zlib