wok-next view portmidi/receipt @ rev 20730
glib: up (2.56.1) with static libs and Python2
author | Aleksej Bobylev <al.bobylev@gmail.com> |
---|---|
date | Tue May 29 15:17:41 2018 +0300 (2018-05-29) |
parents | 44d6f3a2ee81 |
children | c9a7a7b42a86 |
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 # Prefix Fix
20 sed -i "s_\(/usr\)/local_\1_" \
21 */CMakeLists.txt \
22 pm_python/setup.py
24 # Installation Fix
25 #mkdir -p pm_java/Release
27 # CMake configuration
28 cmake . \
29 -DCMAKE_INSTALL_PREFIX=/usr \
30 -DCMAKE_ARCHIVE_OUTPUT_DIRECTORY=Release \
31 -DCMAKE_LIBRARY_OUTPUT_DIRECTORY=Release \
32 -DCMAKE_RUNTIME_OUTPUT_DIRECTORY=Release
34 make && make DESTDIR=$DESTDIR install
35 }
37 # Rules to gen a SliTaz package suitable for Tazpkg.
38 genpkg_rules()
39 {
40 mkdir -p $fs/usr
41 cp -a $install/usr/* $fs/usr
42 }