wok-next diff rtaudio/receipt @ rev 20533
cairo-clock, grub4dos: fix CFLAGS
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Tue Mar 27 12:50:45 2018 +0200 (2018-03-27) |
parents | fb478984fbc8 |
children | d5aab818505e |
line diff
1.1 --- a/rtaudio/receipt Fri Aug 04 16:04:04 2017 +0300 1.2 +++ b/rtaudio/receipt Tue Mar 27 12:50:45 2018 +0200 1.3 @@ -1,21 +1,20 @@ 1.4 -# SliTaz package receipt. 1.5 +# SliTaz package receipt v2. 1.6 1.7 PACKAGE="rtaudio" 1.8 VERSION="4.0.11" 1.9 CATEGORY="multimedia" 1.10 -SHORT_DESC="Common API for realtime audio input/output (C++ classes)." 1.11 +SHORT_DESC="Common API for realtime audio input/output (C++ classes)" 1.12 MAINTAINER="pankso@slitaz.org" 1.13 LICENSE="MIT" 1.14 +WEB_SITE="http://www.music.mcgill.ca/~gary/rtaudio/" 1.15 + 1.16 TARBALL="${PACKAGE}-${VERSION}.tar.gz" 1.17 -WEB_SITE="http://www.music.mcgill.ca/~gary/rtaudio/" 1.18 WGET_URL="http://www.music.mcgill.ca/~gary/rtaudio/release/$TARBALL" 1.19 1.20 -DEPENDS="alsa-lib jack" 1.21 BUILD_DEPENDS="alsa-lib-dev jack-dev" 1.22 +SPLIT="rtaudio-dev" 1.23 1.24 -# Rules to configure and make the package. 1.25 -compile_rules() 1.26 -{ 1.27 +compile_rules() { 1.28 ./configure \ 1.29 --prefix=/usr \ 1.30 --with-alsa \ 1.31 @@ -28,13 +27,27 @@ 1.32 #python setup.py build 1.33 #python setup.py install --root="$DESTDIR" 1.34 echo "Continuing, any error will remine in pkg build..." 1.35 + 1.36 + mkdir -p $install/usr/lib 1.37 + cp -a $src/librtaudio.so* $install/usr/lib 1.38 + ln -s librtaudio.so.$VERSION $install/usr/lib/librtaudio.so.4 1.39 + 1.40 + mkdir -p $install/usr/bin $install/usr/include/rtaudio 1.41 + cp -a $src/rtaudio-config $install/usr/bin 1.42 + cp -a $src/*.h $install/usr/include/rtaudio 1.43 + cp -a $src/include/*.h $install/usr/include/rtaudio 1.44 + # GCC fix 1.45 + sed -i '/inline/ s|;$||' $install/usr/include/rtaudio/RtAudio.h 1.46 } 1.47 1.48 -# Rules to gen a SliTaz package suitable for Tazpkg. 1.49 -genpkg_rules() 1.50 -{ 1.51 - mkdir -p $fs/usr/lib 1.52 - cp -a $src/librtaudio.so* $fs/usr/lib 1.53 - cd $fs/usr/lib 1.54 - ln -s librtaudio.so.$VERSION librtaudio.so.4 1.55 +genpkg_rules() { 1.56 + case $PACKAGE in 1.57 + rtaudio) 1.58 + copy @std 1.59 + DEPENDS="alsa-lib jack" 1.60 + ;; 1.61 + *-dev) 1.62 + copy @dev 1.63 + ;; 1.64 + esac 1.65 }