wok-6.x view portmidi/receipt @ rev 8121
Fixed pcsxr-svn to use lzma-alone instead of lzma wrapper script. Turns out the lzma wrapper script for xz is incompatible with lzma-alone compression. Also lzma-alone compress better.
author | Christopher Rogers <slaxemulator@gmail.com> |
---|---|
date | Mon Jan 24 00:57:47 2011 +0000 (2011-01-24) |
parents | |
children | be13f25e790b |
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 src=$WOK/$PACKAGE/$PACKAGE
18 cd $src
19 patch -Np1 -i ../stuff/portmidi-217-Makefile.patch
21 # Prefix Fix
22 sed -i "s_\(/usr\)/local_\1_" \
23 */CMakeLists.txt \
24 pm_python/setup.py
26 # Installation Fix
27 #mkdir -p pm_java/Release
29 # CMake configuration
30 cmake . \
31 -DCMAKE_INSTALL_PREFIX=/usr \
32 -DCMAKE_ARCHIVE_OUTPUT_DIRECTORY=Release \
33 -DCMAKE_LIBRARY_OUTPUT_DIRECTORY=Release \
34 -DCMAKE_RUNTIME_OUTPUT_DIRECTORY=Release
36 make && make DESTDIR=$PWD/_pkg install
37 }
39 # Rules to gen a SliTaz package suitable for Tazpkg.
40 genpkg_rules()
41 {
42 _pkg=$WOK/$PACKAGE/$PACKAGE/_pkg
43 mkdir -p $fs/usr
44 cp -a $_pkg/usr/* $fs/usr
45 }