wok annotate portmidi/receipt @ rev 18927
Add lz5 (again)
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Thu Feb 25 15:56:04 2016 +0100 (2016-02-25) |
parents | 2a5cc8208d36 |
children | 080c1dff8494 |
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 |
slaxemulator@6917 | 16 # Rules to configure and make the package. |
slaxemulator@6917 | 17 compile_rules() |
slaxemulator@6917 | 18 { |
slaxemulator@6917 | 19 cd $src |
slaxemulator@8751 | 20 patch -Np1 -i $stuff/portmidi-217-Makefile.patch |
slaxemulator@6917 | 21 |
slaxemulator@6917 | 22 # Prefix Fix |
slaxemulator@6917 | 23 sed -i "s_\(/usr\)/local_\1_" \ |
slaxemulator@6917 | 24 */CMakeLists.txt \ |
slaxemulator@6917 | 25 pm_python/setup.py |
slaxemulator@6917 | 26 |
slaxemulator@6917 | 27 # Installation Fix |
slaxemulator@6917 | 28 #mkdir -p pm_java/Release |
slaxemulator@6917 | 29 |
slaxemulator@6917 | 30 # CMake configuration |
slaxemulator@6917 | 31 cmake . \ |
slaxemulator@6917 | 32 -DCMAKE_INSTALL_PREFIX=/usr \ |
slaxemulator@6917 | 33 -DCMAKE_ARCHIVE_OUTPUT_DIRECTORY=Release \ |
slaxemulator@6917 | 34 -DCMAKE_LIBRARY_OUTPUT_DIRECTORY=Release \ |
slaxemulator@6917 | 35 -DCMAKE_RUNTIME_OUTPUT_DIRECTORY=Release |
slaxemulator@6917 | 36 |
pascal@15379 | 37 make && make DESTDIR=$DESTDIR install |
slaxemulator@6917 | 38 } |
slaxemulator@6917 | 39 |
slaxemulator@6917 | 40 # Rules to gen a SliTaz package suitable for Tazpkg. |
slaxemulator@6917 | 41 genpkg_rules() |
slaxemulator@6917 | 42 { |
slaxemulator@6917 | 43 mkdir -p $fs/usr |
pascal@15379 | 44 cp -a $install/usr/* $fs/usr |
slaxemulator@6917 | 45 } |
slaxemulator@6917 | 46 |