summaryrefslogtreecommitdiff
path: root/community/canorus
diff options
context:
space:
mode:
authorOmar Vega Ramos <ovruni@gnu.org.pe>2012-11-16 18:10:07 -0500
committerOmar Vega Ramos <ovruni@gnu.org.pe>2012-11-16 18:10:07 -0500
commit36128f354db7ef055305ffd69c29af225c6ca182 (patch)
tree5260b9ebcc26f5a391322c241b5773e5762b5ca5 /community/canorus
parentc555c84785ee2d7590d75435d7726f7cd9be6b1f (diff)
Add 0006-Add-lz-and-lpthread-to-linker-flags.patch in canorus
Diffstat (limited to 'community/canorus')
-rw-r--r--community/canorus/0006-Add-lz-and-lpthread-to-linker-flags.patch11
-rw-r--r--community/canorus/PKGBUILD7
2 files changed, 16 insertions, 2 deletions
diff --git a/community/canorus/0006-Add-lz-and-lpthread-to-linker-flags.patch b/community/canorus/0006-Add-lz-and-lpthread-to-linker-flags.patch
new file mode 100644
index 000000000..05317541d
--- /dev/null
+++ b/community/canorus/0006-Add-lz-and-lpthread-to-linker-flags.patch
@@ -0,0 +1,11 @@
+--- canorus-0.7.R1002.orig/src/CMakeLists.txt 2009-03-27 05:25:52.000000000 -0500
++++ canorus-0.7.R1002/src/CMakeLists.txt 2012-11-15 06:26:41.884594717 -0500
+@@ -600,7 +600,7 @@
+ # command. Never remove that line :-)
+ # Add ${QT_QTTEST_LIBRARY} below to add the Qt Test library as well
+ # Add ${POPPLERQT4_LIBRARY} ${POPPLER_LIBRARY} to reactivate poppler libraries
+-TARGET_LINK_LIBRARIES(canorus ${QT_LIBRARIES} ${RUBY_LIBRARY} ${PYTHON_LIBRARY} )
++TARGET_LINK_LIBRARIES(canorus ${QT_LIBRARIES} ${RUBY_LIBRARY} ${PYTHON_LIBRARY} -lz -lpthread)
+
+ ############################
+ # RtMIDI Library additions #
diff --git a/community/canorus/PKGBUILD b/community/canorus/PKGBUILD
index 184290b1e..c2a37de26 100644
--- a/community/canorus/PKGBUILD
+++ b/community/canorus/PKGBUILD
@@ -14,11 +14,14 @@ license=('GPL')
depends=('qt' 'alsa-lib' 'python2' 'swig')
makedepends=('cmake')
options=('strip')
-source=(http://download.berlios.de/$pkgname/$pkgname\_$pkgver\_source.tar.bz2)
-md5sums=('5575b7c54633056a463177579a390318')
+source=(http://download.berlios.de/$pkgname/$pkgname\_$pkgver\_source.tar.bz2
+ 0006-Add-lz-and-lpthread-to-linker-flags.patch)
+md5sums=('5575b7c54633056a463177579a390318'
+ '99e545a1da44006bc5e436728edfda15')
build() {
cd $srcdir/$pkgname-$pkgver
+ patch -Np1 -i ${srcdir}/0006-Add-lz-and-lpthread-to-linker-flags.patch
export QTDIR=/usr
cmake . -DCMAKE_INSTALL_PREFIX=$pkgdir/usr \
-DDEFAULT_DATA_DIR="/usr/share/canorus" \