Mercurial > vanilla
comparison text/libxml2/libxml2.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 | e167885e987e |
comparison
equal
deleted
inserted
replaced
1221:a47aaf9743a0 | 1222:325631424c65 |
---|---|
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 rm -rf $PKGNAME-$PKGVERSION | 65 build() |
66 tar xvf $PKGNAME-$PKGVERSION.tar.gz | 66 { |
67 cd $PKGNAME-$PKGVERSION | 67 rm -rf $PKGNAME-$PKGVERSION |
68 tar xvf $PKGNAME-$PKGVERSION.tar.gz | |
69 cd $PKGNAME-$PKGVERSION | |
68 | 70 |
69 sed -i -e '/SUBDIRS/ s/tests//' python/Makefile.am | 71 sed -i -e '/SUBDIRS/ s/tests//' python/Makefile.am |
70 autoreconf -vif | 72 autoreconf -vif |
71 CC="$CC" \ | 73 CC="$CC" \ |
72 CFLAGS="$CFLAGS" \ | 74 CFLAGS="$CFLAGS" \ |
73 LDFLAGS="$LDFLAGS" \ | 75 LDFLAGS="$LDFLAGS" \ |
74 LIBS="$LIBS" \ | 76 LIBS="$LIBS" \ |
75 ./configure \ | 77 ./configure \ |
76 --build=$CBUILD \ | 78 --build=$CBUILD \ |
77 --host=$CHOST \ | 79 --host=$CHOST \ |
78 --prefix=/usr \ | 80 --prefix= \ |
79 --docdir=/share/doc/$PKGNAME \ | 81 --docdir=/share/doc/$PKGNAME \ |
80 --with-html-dir=/share/doc/$PKGNAME/html \ | 82 --with-html-dir=/share/doc/$PKGNAME/html \ |
81 --with-html-subdir="" \ | 83 --with-html-subdir="" \ |
82 --enable-shared \ | 84 --enable-shared \ |
83 $with_icu \ | 85 $with_icu \ |
84 $with_lzma \ | 86 $with_lzma \ |
85 $with_python \ | 87 $with_python \ |
86 $with_zlib | 88 $with_zlib |
87 make | 89 make |
88 make \ | 90 make \ |
89 DESTDIR=$DESTDIR \ | 91 DESTDIR=$DESTDIR \ |
90 DOC_MODULE=$PKGNAME \ | 92 DOC_MODULE=$PKGNAME \ |
91 docsdir=/share/doc/$PKGNAME/python \ | 93 docsdir=/share/doc/$PKGNAME/python \ |
92 install | 94 install |
93 find $DESTDIR -type f -name "*.la" -delete | 95 find $DESTDIR -type f -name "*.la" -delete |
94 | 96 |
95 cd .. | 97 cd .. |
96 rm -rf $PKGNAME-$PKGVERSION | 98 rm -rf $PKGNAME-$PKGVERSION |
99 } |