From patchwork Mon Jan 7 13:30:16 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Anthony Viallard X-Patchwork-Id: 209924 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from hemlock.osuosl.org (hemlock.osuosl.org [140.211.166.133]) by ozlabs.org (Postfix) with ESMTP id 03D512C007E for ; Tue, 8 Jan 2013 00:31:52 +1100 (EST) Received: from localhost (localhost [127.0.0.1]) by hemlock.osuosl.org (Postfix) with ESMTP id 1ED38A020C; Mon, 7 Jan 2013 13:31:50 +0000 (UTC) X-Virus-Scanned: amavisd-new at osuosl.org Received: from hemlock.osuosl.org ([127.0.0.1]) by localhost (.osuosl.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id qZP2QOyqpPC1; Mon, 7 Jan 2013 13:31:44 +0000 (UTC) Received: from ash.osuosl.org (ash.osuosl.org [140.211.166.34]) by hemlock.osuosl.org (Postfix) with ESMTP id D487DA020B; Mon, 7 Jan 2013 13:31:39 +0000 (UTC) X-Original-To: buildroot@lists.busybox.net Delivered-To: buildroot@osuosl.org Received: from whitealder.osuosl.org (whitealder.osuosl.org [140.211.166.138]) by ash.osuosl.org (Postfix) with ESMTP id 566868F753 for ; Mon, 7 Jan 2013 13:31:21 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by whitealder.osuosl.org (Postfix) with ESMTP id 2FD7A8BF23 for ; Mon, 7 Jan 2013 13:31:15 +0000 (UTC) X-Virus-Scanned: amavisd-new at osuosl.org Received: from whitealder.osuosl.org ([127.0.0.1]) by localhost (.osuosl.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id bctCTMsJ-ekv for ; Mon, 7 Jan 2013 13:31:10 +0000 (UTC) X-Greylist: domain auto-whitelisted by SQLgrey-1.7.6 Received: from smtp2.infomaniak.ch (smtp2.infomaniak.ch [84.16.68.90]) by whitealder.osuosl.org (Postfix) with ESMTPS id 7590B8C065 for ; Mon, 7 Jan 2013 13:31:10 +0000 (UTC) Received: from avd-box.syscom.ch ([62.12.146.154]) (authenticated bits=0) by smtp2.infomaniak.ch (8.14.2/8.14.2) with ESMTP id r07DV0No012289 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Mon, 7 Jan 2013 14:31:08 +0100 From: Anthony Viallard To: buildroot@busybox.net Date: Mon, 7 Jan 2013 14:30:16 +0100 Message-Id: <1357565417-16782-4-git-send-email-viallard@syscom-instruments.com> X-Mailer: git-send-email 1.7.10.4 In-Reply-To: <1357565417-16782-1-git-send-email-viallard@syscom-instruments.com> References: <1357565417-16782-1-git-send-email-viallard@syscom-instruments.com> Subject: [Buildroot] [PATCH 4/5] gnuplot : add --without-doc and --without-demo options X-BeenThere: buildroot@busybox.net X-Mailman-Version: 2.1.14 Precedence: list List-Id: Discussion and development of buildroot List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Errors-To: buildroot-bounces@busybox.net Sender: buildroot-bounces@busybox.net Create a generic patch to disable compilation/installation of docs and demo with configure options. Signed-off-by: Anthony Viallard --- ...ot-0001-configure-add-without-demo-option.patch | 59 ++++++++++++++++++++ 1 file changed, 59 insertions(+), 0 deletion(-) create mode 100644 package/gnuplot/gnuplot-0001-configure-add-without-demo-option.patch diff --git a/package/gnuplot/gnuplot-0001-configure-add-without-demo-option.patch b/package/gnuplot/gnuplot-0001-configure-add-without-demo-option.patch new file mode 100644 index 0000000..acdc91d --- /dev/null +++ b/package/gnuplot/gnuplot-0001-configure-add-without-demo-option.patch @@ -0,0 +1,59 @@ +Index: gnuplot-4.6.0/configure.in +=================================================================== +--- gnuplot-4.6.0.orig/configure.in 2012-03-08 05:34:42.000000000 +0100 ++++ gnuplot-4.6.0/configure.in 2013-01-07 11:50:03.003804463 +0100 +@@ -748,6 +748,16 @@ + AC_ARG_WITH(lisp-files,dnl + [ --without-lisp-files do not build emacs lisp files]) + ++dnl Whether we want to build the demo files ++dnl Does nothing here, is passed on to the demo subdir ++AC_ARG_WITH(demo,dnl ++[ --without-demo do not build demo files]) ++ ++dnl Whether we want to build the doc files ++dnl Does nothing here, is passed on to the doc subdir ++AC_ARG_WITH(doc,dnl ++[ --without-doc do not build doc files]) ++ + dnl Sort help/subtopic tables by row or column + AC_ARG_WITH(row-help,dnl + [ --with-row-help format help and subtopic tables by row (default) +@@ -1200,6 +1210,24 @@ + fi + AC_SUBST(LISPDIR) + ++dnl build demo files ++if test "$with_demo" != no; then ++ AC_CONFIG_SUBDIRS(demo) ++ DEMODIR=demo ++else ++ DEMODIR= ++fi ++AC_SUBST(DEMODIR) ++ ++dnl build doc files ++if test "$with_doc" != no; then ++ AC_CONFIG_SUBDIRS(docs) ++ DOCDIR=docs ++else ++ DOCDIR= ++fi ++AC_SUBST(DOCDIR) ++ + dnl Substitute variables + AC_SUBST(PACKAGE) + AC_SUBST(VERSION_MAJOR) +Index: gnuplot-4.6.0/Makefile.am +=================================================================== +--- gnuplot-4.6.0.orig/Makefile.am 2013-01-04 14:07:02.239120935 +0100 ++++ gnuplot-4.6.0/Makefile.am 2013-01-07 11:51:12.034846363 +0100 +@@ -1,7 +1,7 @@ + ## Process this file with automake to produce Makefile.in -*-Makefile-*- + AUTOMAKE_OPTIONS = foreign 1.2h + +-SUBDIRS = config m4 term src docs $(LISPDIR) man demo tutorial share ++SUBDIRS = config m4 term src $(DOCDIR) $(LISPDIR) $(DEMODIR) man tutorial share + + EXTRA_DIST = BUGS CodeStyle Copyright FAQ.pdf GNUmakefile INSTALL INSTALL.gnu \ + Makefile.maint PATCHLEVEL PGPKEYS PORTING README README.1ST \