wok-current annotate fluidsynth/receipt @ rev 24068
linld: add cpu detection (again)
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Mon Jul 05 18:07:57 2021 +0000 (2021-07-05) |
parents | 61d28e8be66c |
children | 2c2eb93bb194 |
rev | line source |
---|---|
jozee@6827 | 1 # SliTaz package receipt. |
jozee@6827 | 2 |
jozee@6827 | 3 PACKAGE="fluidsynth" |
Hans-G?nter@22766 | 4 VERSION="2.1.0" |
jozee@6827 | 5 CATEGORY="multimedia" |
Hans-G?nter@20929 | 6 TAGS="synthesizer audio multimedia" |
jozee@6827 | 7 MAINTAINER="jozee@slitaz.org" |
pascal@15004 | 8 LICENSE="LGPL2" |
jozee@6827 | 9 SHORT_DESC="A real-time software synthesizer based on the SoundFont 2 specifications." |
jozee@6827 | 10 WEB_SITE="http://www.fluidsynth.org/" |
Hans-G?nter@20929 | 11 |
Hans-G?nter@20929 | 12 TARBALL="$PACKAGE-$VERSION.tar.gz" |
Hans-G?nter@20929 | 13 WGET_URL="https://github.com/FluidSynth/$PACKAGE/archive/v$VERSION.tar.gz" |
Hans-G?nter@20929 | 14 |
slaxemulator@6932 | 15 DEPENDS="glib jack-audio-connection-kit ladspa" |
Hans-G?nter@22766 | 16 BUILD_DEPENDS="cmake glib-dev jack-audio-connection-kit-dev ladspa-dev |
Hans-G?nter@22766 | 17 pkg-config" |
jozee@6827 | 18 |
pascal@24055 | 19 current_version() |
pascal@24055 | 20 { |
pascal@24055 | 21 wget -O - ${WGET_URL%/arch*}/releases 2>/dev/null | \ |
pascal@24055 | 22 sed '/archive.*tar/!d;s|.*/v\(.*\).tar.*|\1|;q' |
pascal@24055 | 23 } |
pascal@24055 | 24 |
jozee@6827 | 25 # Rules to configure and make the package. |
pascal@19707 | 26 compile_rules() |
pascal@19707 | 27 { |
pascal@19707 | 28 export LDFLAGS="$LDFLAGS -ltinfo" |
Hans-G?nter@22766 | 29 |
Hans-G?nter@22766 | 30 mkdir build |
Hans-G?nter@22766 | 31 cd build |
Hans-G?nter@20929 | 32 cmake -D CMAKE_INSTALL_PREFIX=/usr .. && |
Hans-G?nter@20929 | 33 make -j 1 && |
pascal@19707 | 34 make DESTDIR=$DESTDIR install |
jozee@6827 | 35 } |
jozee@6827 | 36 |
jozee@6827 | 37 # Rules to gen a SliTaz package suitable for Tazpkg. |
jozee@6827 | 38 genpkg_rules() |
jozee@6827 | 39 { |
jozee@6827 | 40 mkdir -p $fs/usr/lib |
Hans-G?nter@22766 | 41 |
Hans-G?nter@22766 | 42 cp -a $install/usr/bin $fs/usr |
Hans-G?nter@22766 | 43 cp -a $install/usr/lib/*so* $fs/usr/lib |
jozee@6827 | 44 } |