wok diff portmidi/receipt @ rev 7846
Up: linuxqq v1.0.2
author | Liu Peng <rocky@slitaz.org> |
---|---|
date | Tue Dec 28 16:07:50 2010 +0000 (2010-12-28) |
parents | |
children | be13f25e790b |
line diff
1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 1.2 +++ b/portmidi/receipt Tue Dec 28 16:07:50 2010 +0000 1.3 @@ -0,0 +1,46 @@ 1.4 +# SliTaz package receipt. 1.5 + 1.6 +PACKAGE="portmidi" 1.7 +VERSION="217" 1.8 +CATEGORY="multimedia" 1.9 +SHORT_DESC="Platform Independent Library for MIDI I/O" 1.10 +MAINTAINER="slaxemulator@gmail.com" 1.11 +DEPENDS="alsa-lib" 1.12 +BUILD_DEPENDS="alsa-lib-dev cmake" 1.13 +TARBALL="$PACKAGE-src-$VERSION.zip" 1.14 +WEB_SITE="http://portmedia.sourceforge.net/portmidi/" 1.15 +WGET_URL="$SF_MIRROR/portmedia/$PACKAGE/$VERSION/$TARBALL" 1.16 + 1.17 +# Rules to configure and make the package. 1.18 +compile_rules() 1.19 +{ 1.20 + src=$WOK/$PACKAGE/$PACKAGE 1.21 + cd $src 1.22 + patch -Np1 -i ../stuff/portmidi-217-Makefile.patch 1.23 + 1.24 + # Prefix Fix 1.25 + sed -i "s_\(/usr\)/local_\1_" \ 1.26 + */CMakeLists.txt \ 1.27 + pm_python/setup.py 1.28 + 1.29 + # Installation Fix 1.30 + #mkdir -p pm_java/Release 1.31 + 1.32 + # CMake configuration 1.33 + cmake . \ 1.34 + -DCMAKE_INSTALL_PREFIX=/usr \ 1.35 + -DCMAKE_ARCHIVE_OUTPUT_DIRECTORY=Release \ 1.36 + -DCMAKE_LIBRARY_OUTPUT_DIRECTORY=Release \ 1.37 + -DCMAKE_RUNTIME_OUTPUT_DIRECTORY=Release 1.38 + 1.39 + make && make DESTDIR=$PWD/_pkg install 1.40 +} 1.41 + 1.42 +# Rules to gen a SliTaz package suitable for Tazpkg. 1.43 +genpkg_rules() 1.44 +{ 1.45 + _pkg=$WOK/$PACKAGE/$PACKAGE/_pkg 1.46 + mkdir -p $fs/usr 1.47 + cp -a $_pkg/usr/* $fs/usr 1.48 +} 1.49 +