Mercurial > vanilla
comparison x11/libxrender/libxrender.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 |
---|---|
28 : ${CC:=clang} | 28 : ${CC:=clang} |
29 : ${CFLAGS:=-O2} | 29 : ${CFLAGS:=-O2} |
30 : ${LDFLAGS:=} | 30 : ${LDFLAGS:=} |
31 : ${LIBS:=} | 31 : ${LIBS:=} |
32 | 32 |
33 rm -rf libXrender-$PKGVERSION | 33 build() |
34 tar xvf libXrender-$PKGVERSION.tar.gz | 34 { |
35 cd libXrender-$PKGVERSION | 35 rm -rf libXrender-$PKGVERSION |
36 tar xvf libXrender-$PKGVERSION.tar.gz | |
37 cd libXrender-$PKGVERSION | |
36 | 38 |
37 CC="$CC" \ | 39 CC="$CC" \ |
38 CFLAGS="$CFLAGS" \ | 40 CFLAGS="$CFLAGS" \ |
39 LDFLAGS="$LDFLAGS" \ | 41 LDFLAGS="$LDFLAGS" \ |
40 LIBS="$LIBS" \ | 42 LIBS="$LIBS" \ |
41 ./configure \ | 43 ./configure \ |
42 --build=$CBUILD \ | 44 --build=$CBUILD \ |
43 --host=$CHOST \ | 45 --host=$CHOST \ |
44 --prefix=/usr \ | 46 --prefix= \ |
45 --enable-shared | 47 --enable-shared |
46 make | 48 make |
47 make install DESTDIR=$DESTDIR | 49 make install DESTDIR=$DESTDIR |
48 find $DESTDIR -type f -name "*.la" -delete | 50 find $DESTDIR -type f -name "*.la" -delete |
49 | 51 |
50 cd .. | 52 cd .. |
51 rm -rf libXrender-$PKGVERSION | 53 rm -rf libXrender-$PKGVERSION |
54 } |