wok-current annotate portmidi/receipt @ rev 11594

dropbear/sshx: background
author Pascal Bellard <pascal.bellard@slitaz.org>
date Fri Jan 13 10:58:50 2012 +0100 (2012-01-13)
parents 13a3cb28b87c
children 2a5cc8208d36
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 cd $src
slaxemulator@8751 18 patch -Np1 -i $stuff/portmidi-217-Makefile.patch
slaxemulator@6917 19
slaxemulator@6917 20 # Prefix Fix
slaxemulator@6917 21 sed -i "s_\(/usr\)/local_\1_" \
slaxemulator@6917 22 */CMakeLists.txt \
slaxemulator@6917 23 pm_python/setup.py
slaxemulator@6917 24
slaxemulator@6917 25 # Installation Fix
slaxemulator@6917 26 #mkdir -p pm_java/Release
slaxemulator@6917 27
slaxemulator@6917 28 # CMake configuration
slaxemulator@6917 29 cmake . \
slaxemulator@6917 30 -DCMAKE_INSTALL_PREFIX=/usr \
slaxemulator@6917 31 -DCMAKE_ARCHIVE_OUTPUT_DIRECTORY=Release \
slaxemulator@6917 32 -DCMAKE_LIBRARY_OUTPUT_DIRECTORY=Release \
slaxemulator@6917 33 -DCMAKE_RUNTIME_OUTPUT_DIRECTORY=Release
slaxemulator@6917 34
slaxemulator@6917 35 make && make DESTDIR=$PWD/_pkg install
slaxemulator@6917 36 }
slaxemulator@6917 37
slaxemulator@6917 38 # Rules to gen a SliTaz package suitable for Tazpkg.
slaxemulator@6917 39 genpkg_rules()
slaxemulator@6917 40 {
slaxemulator@6917 41 mkdir -p $fs/usr
slaxemulator@6917 42 cp -a $_pkg/usr/* $fs/usr
slaxemulator@6917 43 }
slaxemulator@6917 44