File: libvamp-srcdir.patch

package info (click to toggle)
audacity 2.1.2-2
  • links: PTS, VCS
  • area: main
  • in suites: stretch
  • size: 86,844 kB
  • sloc: ansic: 225,005; cpp: 221,240; sh: 27,327; python: 16,896; makefile: 8,186; lisp: 8,002; perl: 317; xml: 307; sed: 16
file content (44 lines) | stat: -rw-r--r-- 1,348 bytes parent folder | download | duplicates (3)
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
38
39
40
41
42
43
44
Index: lib-src/libvamp/Makefile.in
===================================================================
--- lib-src/libvamp/Makefile.in	(revision 13509)
+++ lib-src/libvamp/Makefile.in	(working copy)
@@ -3,6 +3,9 @@
 # libraries, example plugins, and the test host.  Please adjust to
 # suit your operating system requirements.
 
+srcdir      = @srcdir@
+VPATH       = @srcdir@
+
 APIDIR		= vamp
 
 SDKDIR		= vamp-sdk
@@ -40,7 +43,7 @@
 #
 CC		= @CC@
 CXX		= @CXX@
-CXXFLAGS	= -I. @CXXFLAGS@ @SNDFILE_CFLAGS@
+CXXFLAGS	= -I. -I$(srcdir) @CXXFLAGS@ @SNDFILE_CFLAGS@
 
 # ar, ranlib
 #
@@ -104,7 +107,7 @@
 # Additional flags for making a plugin.  This version script tells the
 # GNU linker to make all symbols in the library hidden except for the
 # public entry point.  It's not essential, but makes a tidier library.
-PLUGIN_LDFLAGS		= $(DYNAMIC_LDFLAGS) -Wl,--version-script=build/vamp-plugin.map
+PLUGIN_LDFLAGS		= $(DYNAMIC_LDFLAGS) -Wl,--version-script=${srcdir}/build/vamp-plugin.map
 
 
 ## For OS/X with g++:
@@ -218,8 +221,10 @@
 
 RDFGEN_TARGET	= \
 		$(RDFGENDIR)/vamp-rdf-template-generator
+prep:
+		mkdir -p $(SDKSRCDIR) $(HOSTSDKSRCDIR) $(EXAMPLEDIR)
 
-sdk:		sdkstatic $(SDK_DYNAMIC) $(HOSTSDK_DYNAMIC)
+sdk:		prep sdkstatic $(SDK_DYNAMIC) $(HOSTSDK_DYNAMIC)
 
 sdkstatic:	$(SDK_STATIC) $(HOSTSDK_STATIC)
 		$(RANLIB) $(SDK_STATIC)