summaryrefslogtreecommitdiff
path: root/community/portmidi/PKGBUILD
diff options
context:
space:
mode:
Diffstat (limited to 'community/portmidi/PKGBUILD')
-rw-r--r--community/portmidi/PKGBUILD41
1 files changed, 41 insertions, 0 deletions
diff --git a/community/portmidi/PKGBUILD b/community/portmidi/PKGBUILD
new file mode 100644
index 000000000..255c2e077
--- /dev/null
+++ b/community/portmidi/PKGBUILD
@@ -0,0 +1,41 @@
+# $Id: PKGBUILD 31348 2010-10-30 15:46:33Z lfleischer $
+# Maintainer: Lukas Fleischer <archlinux at cryptocrack dot de>
+# Contributor: SpepS <dreamspepser at yahoo dot it>
+# Contributor: Denis Martinez <deuns.martinez AT gmail DOT com>
+
+pkgname=portmidi
+pkgver=217
+pkgrel=2
+pkgdesc="Platform independent library for real-time MIDI input/output."
+arch=('i686' 'x86_64')
+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")
+md5sums=('03f46fd3947e2ef4c8c465baaf832241')
+
+build() {
+ cd "${srcdir}/${pkgname}"
+
+ sed -i "s#/usr/local#/usr#" */CMakeLists.txt pm_python/setup.py
+ mkdir -p pm_java/Release
+
+ cmake . -DCMAKE_INSTALL_PREFIX=/usr \
+ -DCMAKE_ARCHIVE_OUTPUT_DIRECTORY=Release \
+ -DCMAKE_LIBRARY_OUTPUT_DIRECTORY=Release \
+ -DCMAKE_RUNTIME_OUTPUT_DIRECTORY=Release
+
+ make
+}
+
+package() {
+ cd "${srcdir}/${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"
+}