Mercurial > vanilla
comparison compression/libarchive/libarchive.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 | 883739c71a8c |
comparison
equal
deleted
inserted
replaced
1221:a47aaf9743a0 | 1222:325631424c65 |
---|---|
109 with_zstd="--with-zstd" | 109 with_zstd="--with-zstd" |
110 else | 110 else |
111 with_zstd="--without-zstd" | 111 with_zstd="--without-zstd" |
112 fi | 112 fi |
113 | 113 |
114 rm -rf $PKGNAME-$PKGVERSION | 114 build() |
115 tar xvf $PKGNAME-$PKGVERSION.tar.gz | 115 { |
116 cd $PKGNAME-$PKGVERSION | 116 rm -rf $PKGNAME-$PKGVERSION |
117 tar xvf $PKGNAME-$PKGVERSION.tar.gz | |
118 cd $PKGNAME-$PKGVERSION | |
117 | 119 |
118 CC="$CC" \ | 120 CC="$CC" \ |
119 CFLAGS="$CFLAGS" \ | 121 CFLAGS="$CFLAGS" \ |
120 CXX="$CXX" \ | 122 CXX="$CXX" \ |
121 CXXFLAGS="$CXXFLAGS" \ | 123 CXXFLAGS="$CXXFLAGS" \ |
122 LDFLAGS="$LDFLAGS" \ | 124 LDFLAGS="$LDFLAGS" \ |
123 LIBS="$LIBS" \ | 125 LIBS="$LIBS" \ |
124 ./configure \ | 126 ./configure \ |
125 --build=$CBUILD \ | 127 --build=$CBUILD \ |
126 --host=$CHOST \ | 128 --host=$CHOST \ |
127 --prefix=/usr \ | 129 --prefix= \ |
128 --enable-shared \ | 130 --enable-shared \ |
129 --enable-bsdtar=shared \ | 131 --enable-bsdtar=shared \ |
130 --enable-bsdcat=shared \ | 132 --enable-bsdcat=shared \ |
131 --enable-bsdcpio=shared \ | 133 --enable-bsdcpio=shared \ |
132 --without-xml2 \ | 134 --without-xml2 \ |
133 $with_acl \ | 135 $with_acl \ |
134 $with_bzip2 \ | 136 $with_bzip2 \ |
135 $with_expat \ | 137 $with_expat \ |
136 $with_lz4 \ | 138 $with_lz4 \ |
137 $with_lzma \ | 139 $with_lzma \ |
138 $with_lzo \ | 140 $with_lzo \ |
139 $with_nettle \ | 141 $with_nettle \ |
140 $with_ssl \ | 142 $with_ssl \ |
141 $with_zlib \ | 143 $with_zlib \ |
142 $with_zstd | 144 $with_zstd |
143 make | 145 make |
144 make install DESTDIR=$DESTDIR | 146 make install DESTDIR=$DESTDIR |
145 find $DESTDIR -type f -name "*.la" -delete | 147 find $DESTDIR -type f -name "*.la" -delete |
146 | 148 |
147 cd .. | 149 cd .. |
148 rm -rf $PKGNAME-$PKGVERSION | 150 rm -rf $PKGNAME-$PKGVERSION |
151 } |