wok-stable view portmidi/receipt @ rev 10728

Fixed all sourced slitaz-dev-tools receipts. The way cook works is it keeps the .hg folder when downloading mecurial sources. By downloading the $VERSION.tar.bz2 and renaming it $SOURCE-$VERSION.tar.bz2 we don't keep the .hg folder in source tarball. Repos will be backup on source dvd anyway so this does save a little bit of space.
author Christopher Rogers <slaxemulator@gmail.com>
date Sat May 28 21:18:14 2011 +0000 (2011-05-28)
parents 13a3cb28b87c
children
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 }