comparison graphics/cairo/cairo.sh @ 1216:6710613b88b9

misc: remove build function
author David Demelier <markand@malikania.fr>
date Wed, 29 Sep 2021 13:49:32 +0200
parents 7cf9db049342
children 27d1a83dc8d6
comparison
equal deleted inserted replaced
1215:3214f7fed454 1216:6710613b88b9
128 with_x="--enable-xcb $with_x" 128 with_x="--enable-xcb $with_x"
129 with_x="--enable-xlib-xcb $with_x" 129 with_x="--enable-xlib-xcb $with_x"
130 with_x="--with-x $with_x" 130 with_x="--with-x $with_x"
131 fi 131 fi
132 132
133 build() 133 rm -rf $PKGNAME-$PKGVERSION
134 { 134 tar xvf $PKGNAME-$PKGVERSION.tar.xz
135 rm -rf $PKGNAME-$PKGVERSION 135 cd $PKGNAME-$PKGVERSION
136 tar xvf $PKGNAME-$PKGVERSION.tar.xz
137 cd $PKGNAME-$PKGVERSION
138 136
139 CC="$CC" \ 137 CC="$CC" \
140 CFLAGS="$CFLAGS" \ 138 CFLAGS="$CFLAGS" \
141 LDFLAGS="$LDFLAGS" \ 139 LDFLAGS="$LDFLAGS" \
142 LIBS="$LIBS" \ 140 LIBS="$LIBS" \
143 ./configure \ 141 ./configure \
144 --build=$CBUILD \ 142 --build=$CBUILD \
145 --host=$CHOST \ 143 --host=$CHOST \
146 --prefix= \ 144 --prefix= \
147 --disable-valgrind \ 145 --disable-valgrind \
148 --enable-shared \ 146 --enable-shared \
149 $with_drm \ 147 $with_drm \
150 $with_fontconfig \ 148 $with_fontconfig \
151 $with_egl \ 149 $with_egl \
152 $with_gles2 \ 150 $with_gles2 \
153 $with_gles3 \ 151 $with_gles3 \
154 $with_glib \ 152 $with_glib \
155 $with_pdf \ 153 $with_pdf \
156 $with_png \ 154 $with_png \
157 $with_svg \ 155 $with_svg \
158 $with_ttf \ 156 $with_ttf \
159 $with_x 157 $with_x
160 make 158 make
161 make install DESTDIR=$DESTDIR 159 make install DESTDIR=$DESTDIR
162 find $DESTDIR -type f -name "*.la" -delete 160 find $DESTDIR -type f -name "*.la" -delete
163 161
164 cd .. 162 cd ..
165 rm -rf $PKGNAME-$PKGVERSION 163 rm -rf $PKGNAME-$PKGVERSION
166 }