Mercurial > vanilla
comparison audio/alsa-tools/alsa-tools.sh @ 1216:6710613b88b9
misc: remove build function
author | David Demelier <markand@malikania.fr> |
---|---|
date | Wed, 29 Sep 2021 13:49:32 +0200 |
parents | 598566babc0c |
children | 57dc83a39b13 |
comparison
equal
deleted
inserted
replaced
1215:3214f7fed454 | 1216:6710613b88b9 |
---|---|
64 | 64 |
65 if [ -z "${TOOLS##*rmedigicontrol*}" ] || [ "$TOOLS" = "yes" ]; then | 65 if [ -z "${TOOLS##*rmedigicontrol*}" ] || [ "$TOOLS" = "yes" ]; then |
66 PKGDEPENDS="gtk2 $PKGDEPENDS" | 66 PKGDEPENDS="gtk2 $PKGDEPENDS" |
67 fi | 67 fi |
68 | 68 |
69 build() | 69 rm -rf $PKGNAME-$PKGVERSION |
70 { | 70 tar xvf $PKGNAME-$PKGVERSION.tar.bz2 |
71 rm -rf $PKGNAME-$PKGVERSION | 71 cd $PKGNAME-$PKGVERSION |
72 tar xvf $PKGNAME-$PKGVERSION.tar.bz2 | |
73 cd $PKGNAME-$PKGVERSION | |
74 | 72 |
75 # | 73 # |
76 # The SUBDIRS variable is used in recursive projects so we can't specify | 74 # The SUBDIRS variable is used in recursive projects so we can't specify |
77 # it directly otherwise it will be propagated to the underlying | 75 # it directly otherwise it will be propagated to the underlying |
78 # projects. Instead, rename the variable to PROJECTS. | 76 # projects. Instead, rename the variable to PROJECTS. |
79 # | 77 # |
80 # Also fix many errors that prevents correct handling of configure | 78 # Also fix many errors that prevents correct handling of configure |
81 # arguments and disable qlo10k1 which requires a deprecated Qt version. | 79 # arguments and disable qlo10k1 which requires a deprecated Qt version. |
82 # | 80 # |
83 patch -p0 < ../patch-makefile.patch | 81 patch -p0 < ../patch-makefile.patch |
84 | 82 |
85 CC="$CC" \ | 83 CC="$CC" \ |
86 CFLAGS="$CFLAGS" \ | 84 CFLAGS="$CFLAGS" \ |
87 CXX="$CXX" \ | 85 CXX="$CXX" \ |
88 CXXFLAGS="$CXXFLAGS" \ | 86 CXXFLAGS="$CXXFLAGS" \ |
89 LDFLAGS="$LDFLAGS" \ | 87 LDFLAGS="$LDFLAGS" \ |
90 LIBS="$LIBS" \ | 88 LIBS="$LIBS" \ |
91 make \ | 89 make \ |
92 CONFIGURE_ARGS="--prefix= --bindir=/bin --sbindir=/bin" \ | 90 CONFIGURE_ARGS="--prefix= --bindir=/bin --sbindir=/bin" \ |
93 DESTDIR=$DESTDIR \ | 91 DESTDIR=$DESTDIR \ |
94 $with_tools \ | 92 $with_tools \ |
95 configure install | 93 configure install |
96 find $DESTDIR -type f -name "*.la" -delete | 94 find $DESTDIR -type f -name "*.la" -delete |
97 | 95 |
98 cd .. | 96 cd .. |
99 rm -rf $PKGNAME-$PKGVERSION | 97 rm -rf $PKGNAME-$PKGVERSION |
100 } |