wok view portmidi/receipt @ rev 14594

Add libpano13
author Pascal Bellard <pascal.bellard@slitaz.org>
date Mon May 27 13:23:03 2013 +0200 (2013-05-27)
parents 13a3cb28b87c
children 2a5cc8208d36
line source
1 # SliTaz package receipt.
3 PACKAGE="portmidi"
4 VERSION="217"
5 CATEGORY="multimedia"
6 SHORT_DESC="Platform Independent Library for MIDI I/O"
7 MAINTAINER="slaxemulator@gmail.com"
8 DEPENDS="alsa-lib"
9 BUILD_DEPENDS="alsa-lib-dev cmake"
10 TARBALL="$PACKAGE-src-$VERSION.zip"
11 WEB_SITE="http://portmedia.sourceforge.net/portmidi/"
12 WGET_URL="$SF_MIRROR/portmedia/$PACKAGE/$VERSION/$TARBALL"
14 # Rules to configure and make the package.
15 compile_rules()
16 {
17 cd $src
18 patch -Np1 -i $stuff/portmidi-217-Makefile.patch
20 # Prefix Fix
21 sed -i "s_\(/usr\)/local_\1_" \
22 */CMakeLists.txt \
23 pm_python/setup.py
25 # Installation Fix
26 #mkdir -p pm_java/Release
28 # CMake configuration
29 cmake . \
30 -DCMAKE_INSTALL_PREFIX=/usr \
31 -DCMAKE_ARCHIVE_OUTPUT_DIRECTORY=Release \
32 -DCMAKE_LIBRARY_OUTPUT_DIRECTORY=Release \
33 -DCMAKE_RUNTIME_OUTPUT_DIRECTORY=Release
35 make && make DESTDIR=$PWD/_pkg install
36 }
38 # Rules to gen a SliTaz package suitable for Tazpkg.
39 genpkg_rules()
40 {
41 mkdir -p $fs/usr
42 cp -a $_pkg/usr/* $fs/usr
43 }