blob: ff916c7552decd6e3f6c6f9317b7ec289700b996 (
plain)
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
|
Index: libdvdnav-0.1.10/configure.ac
===================================================================
--- libdvdnav-0.1.10.orig/configure.ac
+++ libdvdnav-0.1.10/configure.ac
@@ -171,6 +171,12 @@ case $host in
;;
esac
+AC_ARG_ENABLE([examples],
+ AS_HELP_STRING([--disable-examples], [Don't build examples during build phase]),
+ [enable_examples=$enableval], [enable_examples=yes])
+
+AM_CONDITIONAL([BUILD_EXAMPLES], [test "x$enable_examples" = "xyes"])
+
dnl ---------------------------------------------
dnl cflags
dnl ---------------------------------------------
Index: libdvdnav-0.1.10/Makefile.am
===================================================================
--- libdvdnav-0.1.10.orig/Makefile.am
+++ libdvdnav-0.1.10/Makefile.am
@@ -2,7 +2,11 @@ include $(top_srcdir)/misc/Makefile.comm
AUTOMAKE_OPTIONS = 1.3
-SUBDIRS = src examples doc misc m4
+SUBDIRS = src doc misc m4
+
+if BUILD_EXAMPLES
+SUBDIRS += examples
+endif
DEBFILES = debian/README.Debian debian/bug-presubj debian/changelog \
debian/control debian/copyright debian/dvdnav-config.1 \
|