Package: vamp-plugin-sdk / 2.5+repack0-2

01-fix_multiarch.patch Patch series | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
Description: Patch fixing multiarch build 
Author: Jaromír Mikeš <mira.mikes@seznam.cz>
Forwarded: yes

Index: vamp-plugin-sdk-2.5/Makefile.in
===================================================================
--- vamp-plugin-sdk-2.5.orig/Makefile.in	2013-05-26 00:43:52.787522806 +0200
+++ vamp-plugin-sdk-2.5/Makefile.in	2013-05-26 00:43:52.783522806 +0200
@@ -41,6 +41,8 @@
 CC		= @CC@
 CXX		= @CXX@
 CXXFLAGS	= -I. @CXXFLAGS@ @SNDFILE_CFLAGS@
+SUFFIX		:= $(shell uname -m | sed -e 's/^unknown/$//' -e 's/^i.86/$//' -e 's/^x86_64/$/64/')
+LIBDIR		?= lib$(SUFFIX)
 
 # ar, ranlib
 #
@@ -73,8 +75,8 @@
 INSTALL_API_HEADERS	  = $(INSTALL_PREFIX)/include/vamp
 INSTALL_SDK_HEADERS	  = $(INSTALL_PREFIX)/include/vamp-sdk
 INSTALL_HOSTSDK_HEADERS	  = $(INSTALL_PREFIX)/include/vamp-hostsdk
-INSTALL_SDK_LIBS	  = $(INSTALL_PREFIX)/lib
-INSTALL_PLUGINS		  = $(INSTALL_PREFIX)/lib/vamp
+INSTALL_SDK_LIBS	  = $(INSTALL_PREFIX)/$(LIBDIR)
+INSTALL_PLUGINS		  = $(INSTALL_PREFIX)/$(LIBDIR)/vamp
 INSTALL_BINARIES	  = $(INSTALL_PREFIX)/bin 
 
 INSTALL_SDK_LIBNAME	  = libvamp-sdk.so.2.5.0
@@ -89,7 +91,7 @@
 INSTALL_HOSTSDK_STATIC    = libvamp-hostsdk.a
 INSTALL_HOSTSDK_LA        = libvamp-hostsdk.la
 
-INSTALL_PKGCONFIG	  = $(INSTALL_PREFIX)/lib/pkgconfig
+INSTALL_PKGCONFIG	  = $(INSTALL_PREFIX)/$(LIBDIR)/pkgconfig
 
 # Flags required to tell the compiler to create a dynamically loadable object
 #