wok annotate portmidi/receipt @ rev 7294
Up: pcmciautils to 017.
author | Christopher Rogers <slaxemulator@gmail.com> |
---|---|
date | Tue Nov 16 23:58:35 2010 +0000 (2010-11-16) |
parents | |
children | be13f25e790b |
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" |
slaxemulator@6917 | 8 DEPENDS="alsa-lib" |
slaxemulator@6917 | 9 BUILD_DEPENDS="alsa-lib-dev cmake" |
slaxemulator@6917 | 10 TARBALL="$PACKAGE-src-$VERSION.zip" |
slaxemulator@6917 | 11 WEB_SITE="http://portmedia.sourceforge.net/portmidi/" |
slaxemulator@6917 | 12 WGET_URL="$SF_MIRROR/portmedia/$PACKAGE/$VERSION/$TARBALL" |
slaxemulator@6917 | 13 |
slaxemulator@6917 | 14 # Rules to configure and make the package. |
slaxemulator@6917 | 15 compile_rules() |
slaxemulator@6917 | 16 { |
slaxemulator@6917 | 17 src=$WOK/$PACKAGE/$PACKAGE |
slaxemulator@6917 | 18 cd $src |
slaxemulator@6917 | 19 patch -Np1 -i ../stuff/portmidi-217-Makefile.patch |
slaxemulator@6917 | 20 |
slaxemulator@6917 | 21 # Prefix Fix |
slaxemulator@6917 | 22 sed -i "s_\(/usr\)/local_\1_" \ |
slaxemulator@6917 | 23 */CMakeLists.txt \ |
slaxemulator@6917 | 24 pm_python/setup.py |
slaxemulator@6917 | 25 |
slaxemulator@6917 | 26 # Installation Fix |
slaxemulator@6917 | 27 #mkdir -p pm_java/Release |
slaxemulator@6917 | 28 |
slaxemulator@6917 | 29 # CMake configuration |
slaxemulator@6917 | 30 cmake . \ |
slaxemulator@6917 | 31 -DCMAKE_INSTALL_PREFIX=/usr \ |
slaxemulator@6917 | 32 -DCMAKE_ARCHIVE_OUTPUT_DIRECTORY=Release \ |
slaxemulator@6917 | 33 -DCMAKE_LIBRARY_OUTPUT_DIRECTORY=Release \ |
slaxemulator@6917 | 34 -DCMAKE_RUNTIME_OUTPUT_DIRECTORY=Release |
slaxemulator@6917 | 35 |
slaxemulator@6917 | 36 make && make DESTDIR=$PWD/_pkg install |
slaxemulator@6917 | 37 } |
slaxemulator@6917 | 38 |
slaxemulator@6917 | 39 # Rules to gen a SliTaz package suitable for Tazpkg. |
slaxemulator@6917 | 40 genpkg_rules() |
slaxemulator@6917 | 41 { |
slaxemulator@6917 | 42 _pkg=$WOK/$PACKAGE/$PACKAGE/_pkg |
slaxemulator@6917 | 43 mkdir -p $fs/usr |
slaxemulator@6917 | 44 cp -a $_pkg/usr/* $fs/usr |
slaxemulator@6917 | 45 } |
slaxemulator@6917 | 46 |