ccca4e3aa7b9ea0cbe621cc138bb5757f33c4675
[packages/trusty/cirros-testvm.git] / cirros-testvm / src-cirros / buildroot-2015.05 / package / gnuplot / 0001-configure-add-without-demo-option.patch
1 Add options to enable/disable docs and demos
2
3 Originally written by Anthony Viallard
4 <viallard@syscom-instruments.com>.
5
6 Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
7
8 Index: gnuplot-4.6.0/configure.in
9 ===================================================================
10 --- gnuplot-4.6.0.orig/configure.in     2012-03-08 05:34:42.000000000 +0100
11 +++ gnuplot-4.6.0/configure.in  2013-01-07 11:50:03.003804463 +0100
12 @@ -748,6 +748,16 @@
13  AC_ARG_WITH(lisp-files,dnl
14  [  --without-lisp-files    do not build emacs lisp files])
15  
16 +dnl Whether we want to build the demo files
17 +dnl Does nothing here, is passed on to the demo subdir
18 +AC_ARG_ENABLE(demo,dnl
19 +[  --disable-demo    do not build demo files])
20 +
21 +dnl Whether we want to build the doc files
22 +dnl Does nothing here, is passed on to the doc subdir
23 +AC_ARG_ENABLE(doc,dnl
24 +[  --disable-doc    do not build doc files])
25 +
26  dnl Sort help/subtopic tables by row or column
27  AC_ARG_WITH(row-help,dnl
28  [  --with-row-help         format help and subtopic tables by row (default)
29 @@ -1200,6 +1210,24 @@
30  fi
31  AC_SUBST(LISPDIR)
32  
33 +dnl build demo files
34 +if test "$enable_demo" != no; then
35 +  AC_CONFIG_SUBDIRS(demo)
36 +  DEMOSUBDIR=demo
37 +else
38 +  DEMOSUBDIR=
39 +fi
40 +AC_SUBST(DEMOSUBDIR)
41 +
42 +dnl build doc files
43 +if test "$enable_doc" != no; then
44 +  AC_CONFIG_SUBDIRS(docs)
45 +  DOCSUBDIR=docs
46 +else
47 +  DOCSUBDIR=
48 +fi
49 +AC_SUBST(DOCSUBDIR)
50 +
51  dnl Substitute variables
52  AC_SUBST(PACKAGE)
53  AC_SUBST(VERSION_MAJOR)
54 Index: gnuplot-4.6.0/Makefile.am
55 ===================================================================
56 --- gnuplot-4.6.0.orig/Makefile.am      2013-01-04 14:07:02.239120935 +0100
57 +++ gnuplot-4.6.0/Makefile.am   2013-01-07 11:51:12.034846363 +0100
58 @@ -1,7 +1,7 @@
59  ## Process this file with automake to produce Makefile.in -*-Makefile-*-
60  AUTOMAKE_OPTIONS = foreign 1.2h
61  
62 -SUBDIRS = config m4 term src docs $(LISPDIR) man demo tutorial share
63 +SUBDIRS = config m4 term src $(DOCSUBDIR) $(LISPDIR) man $(DEMOSUBDIR) tutorial share
64  
65  EXTRA_DIST = BUGS CodeStyle Copyright FAQ.pdf GNUmakefile INSTALL INSTALL.gnu \
66  Makefile.maint PATCHLEVEL PGPKEYS PORTING README README.1ST \