Mercurial > vanilla
diff audio/jack2/jack2.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/audio/jack2/jack2.sh Fri Oct 15 16:07:30 2021 +0200 +++ b/audio/jack2/jack2.sh Wed Oct 27 11:32:16 2021 +0200 @@ -88,27 +88,30 @@ with_sndfile="--sndfile=no" fi -rm -rf $PKGNAME-$PKGVERSION -tar xvf $PKGNAME-$PKGVERSION.tar.gz -cd $PKGNAME-$PKGVERSION +build() +{ + rm -rf $PKGNAME-$PKGVERSION + tar xvf $PKGNAME-$PKGVERSION.tar.gz + cd $PKGNAME-$PKGVERSION -patch -p0 < ../patch-clang.patch -CC="$CC" \ -CFLAGS="$CFLAGS" \ -CXX="$CXX" \ -CXXFLAGS="$CXXFLAGS" \ -LDFLAGS="$LDFLAGS" \ -python2 waf configure \ - --prefix=/usr \ - $with_alsa \ - $with_completion \ - $with_dbus \ - $with_doxygen \ - $with_opus \ - $with_samplerate \ - $with_sndfile -python2 waf build -python2 waf install --destdir=$DESTDIR + patch -p0 < ../patch-clang.patch + CC="$CC" \ + CFLAGS="$CFLAGS" \ + CXX="$CXX" \ + CXXFLAGS="$CXXFLAGS" \ + LDFLAGS="$LDFLAGS" \ + python2 waf configure \ + --prefix= \ + $with_alsa \ + $with_completion \ + $with_dbus \ + $with_doxygen \ + $with_opus \ + $with_samplerate \ + $with_sndfile + python2 waf build + python2 waf install --destdir=$DESTDIR -cd .. -rm -rf $PKGNAME-$PKGVERSION + cd .. + rm -rf $PKGNAME-$PKGVERSION +}