wok-6.x annotate portmidi/receipt @ rev 24731
updated libdvdread and libdvdread-dev (6.0.2 -> 6.1.2)
author | Hans-G?nter Theisgen |
---|---|
date | Tue Mar 15 17:30:53 2022 +0100 (2022-03-15) |
parents | 44d6f3a2ee81 |
children | b0069c845544 |
rev | line source |
---|---|
slaxemulator@6917 | 1 # SliTaz package receipt. |
slaxemulator@6917 | 2 |
slaxemulator@6917 | 3 PACKAGE="portmidi" |
slaxemulator@6917 | 4 VERSION="217" |
slaxemulator@6917 | 5 CATEGORY="multimedia" |
slaxemulator@6917 | 6 SHORT_DESC="Platform Independent Library for MIDI I/O" |
slaxemulator@6917 | 7 MAINTAINER="slaxemulator@gmail.com" |
pascal@15379 | 8 LICENSE="MIT" |
slaxemulator@6917 | 9 TARBALL="$PACKAGE-src-$VERSION.zip" |
slaxemulator@6917 | 10 WEB_SITE="http://portmedia.sourceforge.net/portmidi/" |
slaxemulator@6917 | 11 WGET_URL="$SF_MIRROR/portmedia/$PACKAGE/$VERSION/$TARBALL" |
slaxemulator@6917 | 12 |
pascal@15379 | 13 DEPENDS="alsa-lib" |
pascal@16644 | 14 BUILD_DEPENDS="alsa-lib-dev cmake unzip" |
pascal@15379 | 15 |
pascal@24396 | 16 # What is the latest version available today? |
pascal@24396 | 17 current_version() |
pascal@24396 | 18 { |
pascal@24396 | 19 wget -O - https://sourceforge.net/projects/portmedia/files/portmidi/ 2>/dev/null | \ |
pascal@24396 | 20 sed '/scope="row/!d;s|.*href="|"https://sourceforge.net|;q' | xargs wget -O - 2>/dev/null | \ |
pascal@24396 | 21 sed '/scope="row/!d;s|.*/portmidi/||;s|/.*||;q' |
pascal@24396 | 22 } |
pascal@24396 | 23 |
slaxemulator@6917 | 24 # Rules to configure and make the package. |
slaxemulator@6917 | 25 compile_rules() |
slaxemulator@6917 | 26 { |
slaxemulator@6917 | 27 cd $src |
slaxemulator@8751 | 28 patch -Np1 -i $stuff/portmidi-217-Makefile.patch |
slaxemulator@6917 | 29 |
slaxemulator@6917 | 30 # Prefix Fix |
slaxemulator@6917 | 31 sed -i "s_\(/usr\)/local_\1_" \ |
slaxemulator@6917 | 32 */CMakeLists.txt \ |
slaxemulator@6917 | 33 pm_python/setup.py |
slaxemulator@6917 | 34 |
slaxemulator@6917 | 35 # Installation Fix |
slaxemulator@6917 | 36 #mkdir -p pm_java/Release |
slaxemulator@6917 | 37 |
slaxemulator@6917 | 38 # CMake configuration |
slaxemulator@6917 | 39 cmake . \ |
slaxemulator@6917 | 40 -DCMAKE_INSTALL_PREFIX=/usr \ |
slaxemulator@6917 | 41 -DCMAKE_ARCHIVE_OUTPUT_DIRECTORY=Release \ |
slaxemulator@6917 | 42 -DCMAKE_LIBRARY_OUTPUT_DIRECTORY=Release \ |
slaxemulator@6917 | 43 -DCMAKE_RUNTIME_OUTPUT_DIRECTORY=Release |
slaxemulator@6917 | 44 |
pascal@15379 | 45 make && make DESTDIR=$DESTDIR install |
slaxemulator@6917 | 46 } |
slaxemulator@6917 | 47 |
slaxemulator@6917 | 48 # Rules to gen a SliTaz package suitable for Tazpkg. |
slaxemulator@6917 | 49 genpkg_rules() |
slaxemulator@6917 | 50 { |
slaxemulator@6917 | 51 mkdir -p $fs/usr |
pascal@15379 | 52 cp -a $install/usr/* $fs/usr |
slaxemulator@6917 | 53 } |
slaxemulator@6917 | 54 |