diff 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
line wrap: on
line diff
--- a/multimedia/x264/x264.sh	Fri Oct 15 16:07:30 2021 +0200
+++ b/multimedia/x264/x264.sh	Wed Oct 27 11:32:16 2021 +0200
@@ -36,21 +36,24 @@
 	with_ffmpeg="--disable-swscale --disable-lavf"
 fi
 
-rm -rf $PKGNAME-snapshot-$PKGVERSION
-tar xvf $PKGNAME-snapshot-$PKGVERSION.tar.bz2
-cd $PKGNAME-snapshot-$PKGVERSION
+build()
+{
+	rm -rf $PKGNAME-snapshot-$PKGVERSION
+	tar xvf $PKGNAME-snapshot-$PKGVERSION.tar.bz2
+	cd $PKGNAME-snapshot-$PKGVERSION
 
-sed -i -e "s|/bin/bash|/bin/busybox sh|" configure
-CC="$CC" \
-CFLAGS="$CFLAGS" \
-LDFLAGS="$LDFLAGS" \
-LIBS="$LIBS" \
-./configure \
-	--prefix=/usr \
-	--enable-shared \
-	--enable-static
-make
-make install DESTDIR=$DESTDIR
+	sed -i -e "s|/bin/bash|/bin/busybox sh|" configure
+	CC="$CC" \
+	CFLAGS="$CFLAGS" \
+	LDFLAGS="$LDFLAGS" \
+	LIBS="$LIBS" \
+	./configure \
+		--prefix= \
+		--enable-shared \
+		--enable-static
+	make
+	make install DESTDIR=$DESTDIR
 
-cd ..
-rm -rf $PKGNAME-snapshot-$PKGVERSION
+	cd ..
+	rm -rf $PKGNAME-snapshot-$PKGVERSION
+}