summaryrefslogtreecommitdiff
path: root/extra/portmidi/PKGBUILD
diff options
context:
space:
mode:
Diffstat (limited to 'extra/portmidi/PKGBUILD')
-rw-r--r--extra/portmidi/PKGBUILD50
1 files changed, 21 insertions, 29 deletions
diff --git a/extra/portmidi/PKGBUILD b/extra/portmidi/PKGBUILD
index ac16436ff..bf08d19b5 100644
--- a/extra/portmidi/PKGBUILD
+++ b/extra/portmidi/PKGBUILD
@@ -1,46 +1,38 @@
-# $Id: PKGBUILD 170712 2012-11-10 01:03:47Z eric $
-# Maintainer: Lukas Fleischer <archlinux at cryptocrack dot de>
-# Contributor: SpepS <dreamspepser at yahoo dot it>
-# Contributor: Denis Martinez <deuns.martinez AT gmail DOT com>
+# $Id: PKGBUILD 197308 2013-10-25 02:13:59Z eric $
+# Maintainer: Eric BĂ©langer <eric@archlinux.org>
pkgname=portmidi
pkgver=217
-pkgrel=3
-pkgdesc="Platform independent library for real-time MIDI input/output."
+pkgrel=4
+pkgdesc="Platform independent library for real-time MIDI input/output"
arch=('i686' 'x86_64')
-url='http://portmedia.sourceforge.net/'
+url="http://portmedia.sourceforge.net/"
license=('GPL')
depends=('alsa-lib')
makedepends=('cmake' 'java-environment')
-source=("http://downloads.sourceforge.net/project/portmedia/${pkgname}/${pkgver}/${pkgname}-src-${pkgver}.zip"
- 'portmidi-217-build-fix.patch')
-md5sums=('03f46fd3947e2ef4c8c465baaf832241'
- '59cb428b29a33bab3bb5811cda479a9b')
-
-build() {
- cd "${srcdir}/${pkgname}"
-
- sed -i "s#/usr/local#/usr#" */CMakeLists.txt pm_python/setup.py
- mkdir -p pm_java/Release
-
+optdepends=('java-runtime: for using pmdefaults')
+source=(http://downloads.sourceforge.net/project/portmedia/${pkgname}/${pkgver}/${pkgname}-src-${pkgver}.zip
+ portmidi-217-build-fix.patch)
+sha1sums=('f45bf4e247c0d7617deacd6a65d23d9fddae6117'
+ '7fe10874ea8689e1ba51e8f50da38e79d10b76e1')
+
+prepare() {
+ cd ${pkgname}
# build fix for "pm_java/CMakeLists.txt" (fixes FS#27118)
- patch -p1 -i ../portmidi-217-build-fix.patch
-
- cmake . -DCMAKE_INSTALL_PREFIX=/usr \
- -DCMAKE_ARCHIVE_OUTPUT_DIRECTORY=Release \
- -DCMAKE_LIBRARY_OUTPUT_DIRECTORY=Release \
- -DCMAKE_RUNTIME_OUTPUT_DIRECTORY=Release
+ patch -p1 -i "${srcdir}/portmidi-217-build-fix.patch"
+}
+build() {
+ cd ${pkgname}
+ cmake . -DCMAKE_INSTALL_PREFIX=/usr -DCMAKE_BUILD_TYPE=Release \
+ -DPORTMIDI_ENABLE_TEST=OFF -DPORTMIDI_ENABLE_JAVA=ON
make
}
package() {
- cd "${srcdir}/${pkgname}"
-
+ cd ${pkgname}
make DESTDIR="${pkgdir}" install
# Fix missing symlink for libporttime.so (FS#21528).
- mv "${pkgdir}/usr/lib/libportmidi_s.a" "${pkgdir}/usr/lib/libportmidi.a"
- ln -s "/usr/lib/libportmidi.so" "${pkgdir}/usr/lib/libporttime.so"
- ln -s "/usr/lib/libportmidi.a" "${pkgdir}/usr/lib/libporttime.a"
+ ln -s libportmidi.so "${pkgdir}/usr/lib/libporttime.so"
}