comparison graphics/libgd/libgd.sh @ 1222:325631424c65

misc: bring back build function
author David Demelier <markand@malikania.fr>
date Wed, 27 Oct 2021 11:32:16 +0200
parents a47aaf9743a0
children 9867e578b1a9
comparison
equal deleted inserted replaced
1221:a47aaf9743a0 1222:325631424c65
100 with_zlib="--with-zlib" 100 with_zlib="--with-zlib"
101 else 101 else
102 with_zlib="--without-zlib" 102 with_zlib="--without-zlib"
103 fi 103 fi
104 104
105 rm -rf $PKGNAME-$PKGVERSION 105 build()
106 tar xvf $PKGNAME-$PKGVERSION.tar.xz 106 {
107 cd $PKGNAME-$PKGVERSION 107 rm -rf $PKGNAME-$PKGVERSION
108 tar xvf $PKGNAME-$PKGVERSION.tar.xz
109 cd $PKGNAME-$PKGVERSION
108 110
109 CC="$CC" \ 111 CC="$CC" \
110 CFLAGS="$CFLAGS" \ 112 CFLAGS="$CFLAGS" \
111 LDFLAGS="$LDFLAGS" \ 113 LDFLAGS="$LDFLAGS" \
112 LIBS="$LIBS" \ 114 LIBS="$LIBS" \
113 ./configure \ 115 ./configure \
114 --build=$CBUILD \ 116 --build=$CBUILD \
115 --host=$CHOST \ 117 --host=$CHOST \
116 --prefix=/usr \ 118 --prefix= \
117 --enable-shared \ 119 --enable-shared \
118 $with_fontconfig \ 120 $with_fontconfig \
119 $with_jpeg \ 121 $with_jpeg \
120 $with_liq \ 122 $with_liq \
121 $with_png \ 123 $with_png \
122 $with_tiff \ 124 $with_tiff \
123 $with_ttf \ 125 $with_ttf \
124 $with_webp \ 126 $with_webp \
125 $with_x \ 127 $with_x \
126 $with_zlib 128 $with_zlib
127 make 129 make
128 make install DESTDIR=$DESTDIR 130 make install DESTDIR=$DESTDIR
129 find $DESTDIR -type f -name "*.la" -delete 131 find $DESTDIR -type f -name "*.la" -delete
130 132
131 cd .. 133 cd ..
132 rm -rf $PKGNAME-$PKGVERSION 134 rm -rf $PKGNAME-$PKGVERSION
135 }