wok-6.x view portmidi/receipt @ rev 20855
updated dtach (0.8 -> 0.9)
author | Hans-G?nter Theisgen |
---|---|
date | Thu Feb 21 16:54:46 2019 +0100 (2019-02-21) |
parents | 2a5cc8208d36 |
children | 080c1dff8494 |
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 LICENSE="MIT"
9 TARBALL="$PACKAGE-src-$VERSION.zip"
10 WEB_SITE="http://portmedia.sourceforge.net/portmidi/"
11 WGET_URL="$SF_MIRROR/portmedia/$PACKAGE/$VERSION/$TARBALL"
13 DEPENDS="alsa-lib"
14 BUILD_DEPENDS="alsa-lib-dev cmake unzip"
16 # Rules to configure and make the package.
17 compile_rules()
18 {
19 cd $src
20 patch -Np1 -i $stuff/portmidi-217-Makefile.patch
22 # Prefix Fix
23 sed -i "s_\(/usr\)/local_\1_" \
24 */CMakeLists.txt \
25 pm_python/setup.py
27 # Installation Fix
28 #mkdir -p pm_java/Release
30 # CMake configuration
31 cmake . \
32 -DCMAKE_INSTALL_PREFIX=/usr \
33 -DCMAKE_ARCHIVE_OUTPUT_DIRECTORY=Release \
34 -DCMAKE_LIBRARY_OUTPUT_DIRECTORY=Release \
35 -DCMAKE_RUNTIME_OUTPUT_DIRECTORY=Release
37 make && make DESTDIR=$DESTDIR install
38 }
40 # Rules to gen a SliTaz package suitable for Tazpkg.
41 genpkg_rules()
42 {
43 mkdir -p $fs/usr
44 cp -a $install/usr/* $fs/usr
45 }