File: optional-progs.patch

package info (click to toggle)
audacity 1.3.12-6
  • links: PTS, VCS
  • area: main
  • in suites: squeeze
  • size: 41,528 kB
  • ctags: 30,395
  • sloc: cpp: 166,518; ansic: 105,310; sh: 24,447; lisp: 7,842; makefile: 1,701; python: 240; perl: 31; xml: 8
file content (53 lines) | stat: -rw-r--r-- 1,670 bytes parent folder | download | duplicates (2)
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
45
46
47
48
49
50
51
52
53
Index: Makefile.in
===================================================================
RCS file: /cvsroot/audacity/lib-src/libvamp/Makefile.in,v
retrieving revision 1.4
diff -u -r1.4 Makefile.in
--- Makefile.in	29 Dec 2008 22:00:31 -0000	1.4
+++ Makefile.in	23 Jan 2009 23:11:52 -0000
@@ -34,7 +34,7 @@
 #   clean     -- remove binary targets
 #   distclean -- remove all targets
 #
-default:	all
+default: @TARGETS@
 
 # Compile flags
 #
Index: configure.ac
===================================================================
RCS file: /cvsroot/audacity/lib-src/libvamp/configure.ac,v
retrieving revision 1.1
diff -u -r1.1 configure.ac
--- configure.ac	29 Dec 2008 22:00:31 -0000	1.1
+++ configure.ac	23 Jan 2009 23:11:52 -0000
@@ -14,7 +14,28 @@
 
 AC_SEARCH_LIBS([dlopen],[dl])
 
-PKG_CHECK_MODULES([SNDFILE],[sndfile])
+dnl See if the user wants to build programs, or just the SDK
+AC_ARG_ENABLE(programs,	[AS_HELP_STRING([--enable-programs],
+	[enable building of example host and RDF generator [default=yes]])],
+	PROGS_ARGUMENT=$enableval,
+	PROGS_ARGUMENT="yes")
+
+dnl if the user wants progs, then we need to check for libsndfile
+if test "x$PROGS_ARGUMENT" = "xyes" ; then 
+	PKG_CHECK_MODULES([SNDFILE],[sndfile], 
+					  have_sndfile="yes", have_sndfile="no")
+	if test "x$have_sndfile" = "xyes" ; then
+		dnl all good, build everything
+		TARGETS="sdk plugins host rdfgen test"
+	else
+		dnl no libsndfile - can't build host!
+		AC_MSG_ERROR([libsndfile not found - cannot build example Vamp host!])
+	fi
+else
+	dnl user didn't want programs - so we won't build them
+	TARGETS="sdk plugins test"
+fi
+
 AC_SUBST(SNDFILE_CFLAGS)
 AC_SUBST(SNDFILE_LIBS)