summaryrefslogtreecommitdiff
path: root/media-libs/flac/files/flac-1.2.1-dontbuild-examples.patch
diff options
context:
space:
mode:
Diffstat (limited to 'media-libs/flac/files/flac-1.2.1-dontbuild-examples.patch')
-rw-r--r--media-libs/flac/files/flac-1.2.1-dontbuild-examples.patch34
1 files changed, 34 insertions, 0 deletions
diff --git a/media-libs/flac/files/flac-1.2.1-dontbuild-examples.patch b/media-libs/flac/files/flac-1.2.1-dontbuild-examples.patch
new file mode 100644
index 00000000..2c1d55a6
--- /dev/null
+++ b/media-libs/flac/files/flac-1.2.1-dontbuild-examples.patch
@@ -0,0 +1,34 @@
+Index: flac-1.2.1/configure.in
+===================================================================
+--- flac-1.2.1.orig/configure.in
++++ flac-1.2.1/configure.in
+@@ -255,6 +255,12 @@ AC_DEFINE(FLAC__HAS_OGG)
+ AH_TEMPLATE(FLAC__HAS_OGG, [define if you have the ogg library])
+ fi
+
++dnl Build examples?
++AC_ARG_ENABLE(examples,
++ AS_HELP_STRING([--disable-examples], [Don't build examples during make]),,
++ enable_examples="yes")
++AM_CONDITIONAL(EXAMPLES, [test "$enable_examples" = "yes"])
++
+ dnl check for i18n(internationalization); these are from libiconv/gettext
+ AM_ICONV
+ AM_LANGINFO_CODESET
+Index: flac-1.2.1/Makefile.am
+===================================================================
+--- flac-1.2.1.orig/Makefile.am
++++ flac-1.2.1/Makefile.am
+@@ -30,7 +30,11 @@
+
+ AUTOMAKE_OPTIONS = foreign 1.7
+
+-SUBDIRS = doc include m4 man src examples test build obj
++SUBDIRS = doc include m4 man src test build obj
++
++if EXAMPLES
++SUBDIRS += examples
++endif
+
+ DISTCLEANFILES = libtool-disable-static
+