Mercurial > vanilla
comparison lib/pcre/pcre.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 | b162c8379984 |
comparison
equal
deleted
inserted
replaced
1221:a47aaf9743a0 | 1222:325631424c65 |
---|---|
30 : ${CXX:=clang++} | 30 : ${CXX:=clang++} |
31 : ${CXXFLAGS:=-O2} | 31 : ${CXXFLAGS:=-O2} |
32 : ${LDFLAGS:=} | 32 : ${LDFLAGS:=} |
33 : ${LIBS:=} | 33 : ${LIBS:=} |
34 | 34 |
35 rm -rf $PKGNAME-$PKGVERSION | 35 build() |
36 tar xvf $PKGNAME-$PKGVERSION.tar.bz2 | 36 { |
37 cd $PKGNAME-$PKGVERSION | 37 rm -rf $PKGNAME-$PKGVERSION |
38 tar xvf $PKGNAME-$PKGVERSION.tar.bz2 | |
39 cd $PKGNAME-$PKGVERSION | |
38 | 40 |
39 CC="$CC" \ | 41 CC="$CC" \ |
40 CFLAGS="$CFLAGS" \ | 42 CFLAGS="$CFLAGS" \ |
41 CXX="$CXX" \ | 43 CXX="$CXX" \ |
42 CXXFLAGS="$CXXFLAGS" \ | 44 CXXFLAGS="$CXXFLAGS" \ |
43 LDFLAGS="$LDFLAGS" \ | 45 LDFLAGS="$LDFLAGS" \ |
44 LIBS="$LIBS" \ | 46 LIBS="$LIBS" \ |
45 ./configure \ | 47 ./configure \ |
46 --build=$CBUILD \ | 48 --build=$CBUILD \ |
47 --host=$CHOST \ | 49 --host=$CHOST \ |
48 --prefix=/usr \ | 50 --prefix= \ |
49 --enable-jit \ | 51 --enable-jit \ |
50 --enable-newline-is-anycrlf \ | 52 --enable-newline-is-anycrlf \ |
51 --enable-pcregrep-libz \ | 53 --enable-pcregrep-libz \ |
52 --enable-shared \ | 54 --enable-shared \ |
53 --enable-unicode-properties \ | 55 --enable-unicode-properties \ |
54 --enable-utf8 \ | 56 --enable-utf8 \ |
55 --with-pic | 57 --with-pic |
56 make | 58 make |
57 make install DESTDIR=$DESTDIR | 59 make install DESTDIR=$DESTDIR |
58 find $DESTDIR -type f -name "*.la" -delete | 60 find $DESTDIR -type f -name "*.la" -delete |
59 | 61 |
60 cd .. | 62 cd .. |
61 rm -rf $PKGNAME-$PKGVERSION | 63 rm -rf $PKGNAME-$PKGVERSION |
64 } |