mirror of
https://gitee.com/open-loongarch/buildroot-2024.08.git
synced 2026-10-28 05:57:13 +08:00
first commit: base 2024.08
Signed-off-by: maoxiaochuan <maoxiaochuan@loongson.cn>
This commit is contained in:
@@ -0,0 +1,59 @@
|
||||
Add options to enable/disable docs and demos
|
||||
|
||||
Originally written by Anthony Viallard
|
||||
<viallard@syscom-instruments.com>.
|
||||
|
||||
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
|
||||
[Vincent: adapt patch to 5.0.5 version]
|
||||
Signed-off-by: Vicente Olivert Riera <Vincent.Riera@imgtec.com>
|
||||
[Michael: adapt patch to 5.4.0 version]
|
||||
Signed-off-by: Michael Fischer <mf@go-sys.de>
|
||||
[Michael: adapt patch to 6.0.0 version]
|
||||
Signed-off-by: Michael Fischer <mf@go-sys.de>
|
||||
|
||||
--- a/configure.ac 2023-12-19 00:28:58.000000000 +0100
|
||||
+++ b/configure.ac 2024-05-13 15:41:18.313920528 +0200
|
||||
@@ -715,6 +715,32 @@
|
||||
|
||||
dnl Process rest of with and enable options
|
||||
|
||||
+dnl Whether we want to build the doc files
|
||||
+dnl Does nothing here, is passed on to the doc subdir
|
||||
+AC_ARG_ENABLE(doc,dnl
|
||||
+[ --disable-doc do not build doc files])
|
||||
+dnl build doc files
|
||||
+if test "$enable_doc" != no; then
|
||||
+ AC_CONFIG_SUBDIRS(docs)
|
||||
+ DOCSUBDIR=docs
|
||||
+else
|
||||
+ DOCSUBDIR=
|
||||
+fi
|
||||
+AC_SUBST(DOCSUBDIR)
|
||||
+
|
||||
+dnl Whether we want to build the demo files
|
||||
+dnl Does nothing here, is passed on to the demo subdir
|
||||
+AC_ARG_ENABLE(demo,dnl
|
||||
+[ --disable-demo do not build demo files])
|
||||
+dnl build demo files
|
||||
+if test "$enable_demo" != no; then
|
||||
+ AC_CONFIG_SUBDIRS(demo)
|
||||
+ DEMOSUBDIR=demo
|
||||
+else
|
||||
+ DEMOSUBDIR=
|
||||
+fi
|
||||
+AC_SUBST(DEMOSUBDIR)
|
||||
+
|
||||
dnl without-extra-coordinate may leave a hole in "struct coordinate"
|
||||
AC_ARG_WITH(extra-coordinate,dnl
|
||||
[ --without-extra-coordinate leave possible hole in struct coordinate],,)
|
||||
--- a/Makefile.am 2023-12-19 00:28:58.000000000 +0100
|
||||
+++ b/Makefile.am 2024-05-13 15:54:21.189906680 +0200
|
||||
@@ -1,7 +1,7 @@
|
||||
## Process this file with automake to produce Makefile.in -*-Makefile-*-
|
||||
AUTOMAKE_OPTIONS = foreign
|
||||
|
||||
-SUBDIRS = config m4 term src docs man demo share
|
||||
+SUBDIRS = config m4 term src $(DOCSUBDIR) man $(DEMOSUBDIR) share
|
||||
|
||||
EXTRA_DIST = BUGS Copyright FAQ.pdf INSTALL INSTALL.gnu \
|
||||
PATCHLEVEL PGPKEYS README RELEASE_NOTES \
|
||||
@@ -0,0 +1,7 @@
|
||||
config BR2_PACKAGE_GNUPLOT
|
||||
bool "gnuplot"
|
||||
select BR2_PACKAGE_READLINE if !BR2_PACKAGE_LIBEDIT
|
||||
help
|
||||
A portable command-line driven graphing utility.
|
||||
|
||||
http://www.gnuplot.info/
|
||||
@@ -0,0 +1,6 @@
|
||||
# From https://sourceforge.net/projects/gnuplot/files/gnuplot/6.0.1/
|
||||
md5 744fde2362fb20db6cfc58de73f96e9c gnuplot-6.0.1.tar.gz
|
||||
sha1 ce1aaeff632c78cba2b3ca8142cf130bfd411478 gnuplot-6.0.1.tar.gz
|
||||
# Locally computed
|
||||
sha256 e85a660c1a2a1808ff24f7e69981ffcbac66a45c9dcf711b65610b26ea71379a gnuplot-6.0.1.tar.gz
|
||||
sha256 895928ec0735cca1c8cec42656c7e314a065d0242813bb8693c0c1bf61fd4e4d Copyright
|
||||
@@ -0,0 +1,56 @@
|
||||
################################################################################
|
||||
#
|
||||
# gnuplot
|
||||
#
|
||||
################################################################################
|
||||
|
||||
GNUPLOT_VERSION = 6.0.1
|
||||
GNUPLOT_SITE = http://downloads.sourceforge.net/project/gnuplot/gnuplot/$(GNUPLOT_VERSION)
|
||||
GNUPLOT_LICENSE = gnuplot license (open source)
|
||||
GNUPLOT_LICENSE_FILES = Copyright
|
||||
GNUPLOT_CPE_ID_VALID = YES
|
||||
|
||||
GNUPLOT_AUTORECONF = YES
|
||||
|
||||
GNUPLOT_CONF_OPTS = \
|
||||
--without-x \
|
||||
--disable-raise-console \
|
||||
--disable-mouse \
|
||||
--without-tutorial \
|
||||
--disable-demo \
|
||||
--without-row-help \
|
||||
--disable-history-file \
|
||||
--disable-wxwidgets \
|
||||
--without-lua \
|
||||
--without-latex \
|
||||
--without-cairo \
|
||||
--without-qt
|
||||
|
||||
# relocation truncated to fit: R_68K_GOT16O
|
||||
ifeq ($(BR2_m68k_cf),y)
|
||||
GNUPLOT_CONF_ENV += CFLAGS="$(TARGET_CFLAGS) -mxgot"
|
||||
endif
|
||||
|
||||
ifeq ($(BR2_PACKAGE_GD)$(BR2_PACKAGE_LIBPNG),yy)
|
||||
GNUPLOT_CONF_OPTS += --with-gd
|
||||
GNUPLOT_DEPENDENCIES += host-pkgconf gd
|
||||
else
|
||||
GNUPLOT_CONF_OPTS += --without-gd
|
||||
endif
|
||||
|
||||
ifeq ($(BR2_PACKAGE_READLINE),y)
|
||||
GNUPLOT_CONF_OPTS += --with-readline=gnu
|
||||
GNUPLOT_DEPENDENCIES += readline
|
||||
else ifeq ($(BR2_PACKAGE_LIBEDIT),y)
|
||||
GNUPLOT_CONF_OPTS += --with-readline=bsd
|
||||
GNUPLOT_DEPENDENCIES += libedit
|
||||
endif
|
||||
|
||||
# Remove Javascript scripts, lua scripts, PostScript files
|
||||
define GNUPLOT_REMOVE_UNNEEDED_FILES
|
||||
$(RM) -rf $(TARGET_DIR)/usr/share/gnuplot
|
||||
endef
|
||||
|
||||
GNUPLOT_POST_INSTALL_TARGET_HOOKS += GNUPLOT_REMOVE_UNNEEDED_FILES
|
||||
|
||||
$(eval $(autotools-package))
|
||||
Reference in New Issue
Block a user