• Skip to sidebar navigation
  • Skip to content

Bitbucket

  • More
    ProjectsRepositories
  • Help
    • Online help
    • Learn Git
    • Welcome to Bitbucket
    • Keyboard shortcuts
  • Log In
Alexander Dahl
  1. Alexander Dahl

buildroot

Public
Actions
  • Clone
  • Compare

Learn more about cloning repositories

You have read-only access

Navigation
  • Source
  • Commits
  • Branches
  • All Branches Graph
  • Forks
  1. Alexander Dahl
  2. buildroot

Source

buildroot/package/gnuplot/0001-configure-add-without-demo-option.patch
Vicente Olivert RieraVicente Olivert Riera committed a7adfa9ec1d01 Dec 2016
Raw file
Source viewDiff to previous
 
1
Add options to enable/disable docs and demos
2
​
3
Originally written by Anthony Viallard
4
<viallard@syscom-instruments.com>.
5
​
6
[Vincent: adapt patch to 5.0.5 version]
7
​
8
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
9
Signed-off-by: Vicente Olivert Riera <Vincent.Riera@imgtec.com>
10
​
11
diff -rup a/configure.in b/configure.in
12
--- a/configure.in  2016-09-07 05:14:29.000000000 +0100
13
+++ b/configure.in  2016-12-01 12:09:31.487464774 +0000
14
@@ -818,6 +818,16 @@ if test "$with_cwdrc" = yes; then
15
                [ Define if you want to read .gnuplot from current directory (SECURITY RISK!).])
16
 fi
17
 
18
+dnl Whether we want to build the doc files
19
+dnl Does nothing here, is passed on to the doc subdir
20
+AC_ARG_ENABLE(doc,dnl
21
+[  --disable-doc    do not build doc files])
22
+
23
+dnl Whether we want to build the demo files
24
+dnl Does nothing here, is passed on to the demo subdir
25
+AC_ARG_ENABLE(demo,dnl
26
+[  --disable-demo    do not build demo files])
27
+
28
 dnl Sort help/subtopic tables by row or column
29
 AC_ARG_WITH(row-help,dnl
30
 [  --with-row-help         format help and subtopic tables by row (default)
31
@@ -1303,6 +1313,24 @@ fi
32
 dnl No configuration option for this one yet
33
 AC_DEFINE(MAX_PARALLEL_AXES,7, [Maximum number of parallel axes supported])
34
 
35
+dnl build doc files
36
+if test "$enable_doc" != no; then
37
+  AC_CONFIG_SUBDIRS(docs)
38
+  DOCSUBDIR=docs
39
+else
40
+  DOCSUBDIR=
41
+fi
42
+AC_SUBST(DOCSUBDIR)
43
+
44
+dnl build demo files
45
+if test "$enable_demo" != no; then
46
+  AC_CONFIG_SUBDIRS(demo)
47
+  DEMOSUBDIR=demo
48
+else
49
+  DEMOSUBDIR=
50
+fi
51
+AC_SUBST(DEMOSUBDIR)
52
+
53
 dnl Substitute variables
54
 AC_SUBST(PACKAGE)
55
 AC_SUBST(VERSION_MAJOR)
56
diff -rup a/Makefile.am b/Makefile.am
57
--- a/Makefile.am   2014-05-30 17:38:08.000000000 +0100
58
+++ b/Makefile.am   2016-12-01 12:09:31.488464794 +0000
59
@@ -1,7 +1,7 @@
60
 ## Process this file with automake to produce Makefile.in -*-Makefile-*-
61
 AUTOMAKE_OPTIONS = foreign
62
 
63
-SUBDIRS = config m4 term src docs $(LISPDIR) man demo tutorial share
  • Git repository management for enterprise teams powered by Atlassian Bitbucket
  • Atlassian Bitbucket v6.7.2
  • Documentation
  • Request a feature
  • About
  • Contact Atlassian
Atlassian

Everything looks good. We'll let you know here if there's anything you should know about.