comparison text/libxml2/libxml2.sh @ 1216:6710613b88b9

misc: remove build function
author David Demelier <markand@malikania.fr>
date Wed, 29 Sep 2021 13:49:32 +0200
parents ddab65a5b3f5
children 27d1a83dc8d6
comparison
equal deleted inserted replaced
1215:3214f7fed454 1216:6710613b88b9
60 with_zlib="--with-zlib" 60 with_zlib="--with-zlib"
61 else 61 else
62 with_zlib="--without-zlib" 62 with_zlib="--without-zlib"
63 fi 63 fi
64 64
65 build() 65 rm -rf $PKGNAME-$PKGVERSION
66 { 66 tar xvf $PKGNAME-$PKGVERSION.tar.gz
67 rm -rf $PKGNAME-$PKGVERSION 67 cd $PKGNAME-$PKGVERSION
68 tar xvf $PKGNAME-$PKGVERSION.tar.gz
69 cd $PKGNAME-$PKGVERSION
70 68
71 sed -i -e '/SUBDIRS/ s/tests//' python/Makefile.am 69 sed -i -e '/SUBDIRS/ s/tests//' python/Makefile.am
72 autoreconf -vif 70 autoreconf -vif
73 CC="$CC" \ 71 CC="$CC" \
74 CFLAGS="$CFLAGS" \ 72 CFLAGS="$CFLAGS" \
75 LDFLAGS="$LDFLAGS" \ 73 LDFLAGS="$LDFLAGS" \
76 LIBS="$LIBS" \ 74 LIBS="$LIBS" \
77 ./configure \ 75 ./configure \
78 --build=$CBUILD \ 76 --build=$CBUILD \
79 --host=$CHOST \ 77 --host=$CHOST \
80 --prefix= \ 78 --prefix= \
81 --docdir=/share/doc/$PKGNAME \ 79 --docdir=/share/doc/$PKGNAME \
82 --with-html-dir=/share/doc/$PKGNAME/html \ 80 --with-html-dir=/share/doc/$PKGNAME/html \
83 --with-html-subdir="" \ 81 --with-html-subdir="" \
84 --enable-shared \ 82 --enable-shared \
85 $with_icu \ 83 $with_icu \
86 $with_lzma \ 84 $with_lzma \
87 $with_python \ 85 $with_python \
88 $with_zlib 86 $with_zlib
89 make 87 make
90 make \ 88 make \
91 DESTDIR=$DESTDIR \ 89 DESTDIR=$DESTDIR \
92 DOC_MODULE=$PKGNAME \ 90 DOC_MODULE=$PKGNAME \
93 docsdir=/share/doc/$PKGNAME/python \ 91 docsdir=/share/doc/$PKGNAME/python \
94 install 92 install
95 find $DESTDIR -type f -name "*.la" -delete 93 find $DESTDIR -type f -name "*.la" -delete
96 94
97 cd .. 95 cd ..
98 rm -rf $PKGNAME-$PKGVERSION 96 rm -rf $PKGNAME-$PKGVERSION
99 }