wok-current annotate ardour/receipt @ rev 25096

created recipe for wordgrinder
author Hans-G?nter Theisgen
date Sat Jun 18 15:13:12 2022 +0100 (2022-06-18)
parents 9bbac86a37f7
children c45b858c787a
rev   line source
jozee@6828 1 # SliTaz package receipt.
jozee@6828 2
jozee@6828 3 PACKAGE="ardour"
pascal@13404 4 VERSION="2.8.14"
jozee@6828 5 CATEGORY="multimedia"
jozee@6828 6 MAINTAINER="jozee@slitaz.org"
pascal@15000 7 LICENSE="GPL2"
jozee@6828 8 SHORT_DESC="A multichannel hard disk recorder and digital audio workstation"
jozee@6828 9 WEB_SITE="http://ardour.org"
pascal@24061 10 TARBALL="$PACKAGE-$VERSION.tar.gz"
pascal@24061 11 WGET_URL="https://github.com/Ardour/ardour/archive/refs/tags/$VERSION.tar.gz"
jozee@6828 12 TAGS="audio recorder mixer"
jozee@6828 13
Hans-G?nter@24360 14 DEPENDS="gcc83-lib-base liblrdf ladspa liblo libgnomecanvas libusb-compat aubio libsndfile \
slaxemulator@13106 15 libsamplerate raptor fftw libxslt libgnomecanvasmm soundtouch"
Hans-G?nter@24360 16 BUILD_DEPENDS="gcc83 scons libboost-dev libboost-thread-dev libboost-math-dev \
slaxemulator@13106 17 jack-audio-connection-kit-dev alsa-lib-dev liblo-dev aubio-dev libxslt-dev \
slaxemulator@13106 18 libsndfile-dev ladspa-dev liblrdf-dev libart_lgpl-dev libusb-dev \
slaxemulator@13106 19 libsamplerate-dev curl-dev fftw-dev soundtouch-dev raptor-dev \
pascal@13403 20 libgnomecanvasmm-dev libgnomecanvas-dev pkg-config liblrdf-dev gtkmm-dev \
pascal@13403 21 libboost-system-dev"
erjo@9906 22
pascal@24061 23 current_version()
pascal@24061 24 {
pascal@24295 25 wget -O - ${WGET_URL%/arch*}/tags 2>/dev/null | \
pascal@24295 26 sed '/archive.*tar/!d;/-pre/d;s|.*/\(.*\).tar.*|\1|;q'
pascal@24061 27 }
pascal@24061 28
jozee@6828 29 # Rules to configure and make the package.
slaxemulator@13106 30 compile_rules()
slaxemulator@13106 31 {
pascal@24066 32 [ -s libs/ardour/svn_revision.cc ] ||
pascal@24066 33 cat > libs/ardour/svn_revision.cc <<EOT
pascal@24066 34 #include "ardour/svn_revision.h"
pascal@24066 35 namespace ARDOUR {
pascal@24066 36 extern const char* svn_revision = "$VERSION";
pascal@24066 37 }
pascal@24066 38 EOT
pascal@21792 39 # glibmm >=2.31 fix
pascal@21792 40 grep -lr signal_timeout * | xargs sed -i '1i#include <glibmm/main.h>'
pascal@21792 41
pascal@20249 42 sed -i 's/uname -m/echo i686/' tools/config.guess
al@19267 43 sed -i '/-O3/d' SConstruct
al@19267 44 mkdir -p $DESTDIR
al@19267 45
Hans-G?nter@24360 46 export CC=gcc-83
Hans-G?nter@24360 47 export CXX=g++-83
al@19267 48 CFLAGS="$CFLAGS -Wl,--copy-dt-needed-entries -lboost_system"
al@19267 49 scons ${MAKEFLAGS} ARCH="${CFLAGS}" \
slaxemulator@13106 50 PREFIX=/usr \
jozee@6828 51 NLS=1 \
jozee@6828 52 FREEDESKTOP=0 \
slaxemulator@13106 53 SYSLIBS=1 \
jozee@6828 54 VST=0 \
jozee@6828 55 WIIMOTE=0 \
jozee@6828 56 LV2=0 \
jozee@6828 57 FREESOUND=1 \
jozee@6828 58 LIBLO=1 \
jozee@6828 59 AUBIO=1 \
jozee@6828 60 TRANZPORT=1 \
al@19267 61 DIST_LIBDIR=lib
al@19267 62
al@19267 63 scons ${MAKEFLAGS} ARCH="${CFLAGS}" \
slaxemulator@13106 64 PREFIX=/usr \
jozee@6828 65 NLS=1 \
jozee@6828 66 FREEDESKTOP=0 \
slaxemulator@13106 67 SYSLIBS=1 \
jozee@6828 68 VST=0 \
jozee@6828 69 WIIMOTE=0 \
jozee@6828 70 LV2=0 \
jozee@6828 71 FREESOUND=1 \
jozee@6828 72 LIBLO=1 \
jozee@6828 73 AUBIO=1 \
jozee@6828 74 TRANZPORT=1 \
jozee@6828 75 DIST_LIBDIR=lib \
al@19267 76 DESTDIR=$DESTDIR install
jozee@6828 77
al@19275 78 cook_pick_manpages $src/ardour.1
al@19267 79 for i in es fr ru; do
al@19267 80 mkdir -p $install/usr/share/man/$i/man1
al@19269 81 cp -a $src/ardour.1.$i $install/usr/share/man/$i/man1/ardour.1
al@19267 82 done
jozee@6828 83 }
jozee@6828 84
jozee@6828 85 # Rules to gen a SliTaz package suitable for Tazpkg.
jozee@6828 86 genpkg_rules()
jozee@6828 87 {
jozee@6828 88 mkdir -p $fs/usr/lib/ardour2 $fs/usr/share
pascal@15000 89 cp -a $install/usr/bin $fs/usr
pascal@15000 90 cp -a $install/usr/lib/ardour2/*so* $fs/usr/lib/ardour2
pascal@15000 91 cp -a $install/usr/share/ardour2 $fs/usr/share
jozee@6828 92 }