comparison multimedia/x264/x264.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
34 with_ffmpeg="--enable-swscale --enable-lavf" 34 with_ffmpeg="--enable-swscale --enable-lavf"
35 else 35 else
36 with_ffmpeg="--disable-swscale --disable-lavf" 36 with_ffmpeg="--disable-swscale --disable-lavf"
37 fi 37 fi
38 38
39 rm -rf $PKGNAME-snapshot-$PKGVERSION 39 build()
40 tar xvf $PKGNAME-snapshot-$PKGVERSION.tar.bz2 40 {
41 cd $PKGNAME-snapshot-$PKGVERSION 41 rm -rf $PKGNAME-snapshot-$PKGVERSION
42 tar xvf $PKGNAME-snapshot-$PKGVERSION.tar.bz2
43 cd $PKGNAME-snapshot-$PKGVERSION
42 44
43 sed -i -e "s|/bin/bash|/bin/busybox sh|" configure 45 sed -i -e "s|/bin/bash|/bin/busybox sh|" configure
44 CC="$CC" \ 46 CC="$CC" \
45 CFLAGS="$CFLAGS" \ 47 CFLAGS="$CFLAGS" \
46 LDFLAGS="$LDFLAGS" \ 48 LDFLAGS="$LDFLAGS" \
47 LIBS="$LIBS" \ 49 LIBS="$LIBS" \
48 ./configure \ 50 ./configure \
49 --prefix=/usr \ 51 --prefix= \
50 --enable-shared \ 52 --enable-shared \
51 --enable-static 53 --enable-static
52 make 54 make
53 make install DESTDIR=$DESTDIR 55 make install DESTDIR=$DESTDIR
54 56
55 cd .. 57 cd ..
56 rm -rf $PKGNAME-snapshot-$PKGVERSION 58 rm -rf $PKGNAME-snapshot-$PKGVERSION
59 }