diff options
author | fuzzard <fuzzard@kodi.tv> | 2024-01-21 17:27:36 +1000 |
---|---|---|
committer | fuzzard <fuzzard@kodi.tv> | 2024-01-28 15:55:30 +1000 |
commit | 79659ef8d9f9e133a77f618d036c1ef32cbca610 (patch) | |
tree | 353f4851445716ba3047270cadbc2cc630cec689 /tools/depends | |
parent | be11ec494e24e421bedf3d77f0abd86aadf22201 (diff) |
[tools/depends][native] Add bison
Bison 3.5 is a dependency of swig 4.2.0 cmake builds. macos ships bison 2.3.
so add as a general native dep
Diffstat (limited to 'tools/depends')
-rw-r--r-- | tools/depends/native/Makefile | 2 | ||||
-rw-r--r-- | tools/depends/native/bison/BISON-VERSION | 4 | ||||
-rw-r--r-- | tools/depends/native/bison/Makefile | 31 |
3 files changed, 37 insertions, 0 deletions
diff --git a/tools/depends/native/Makefile b/tools/depends/native/Makefile index 39cf54edaa..9b9b0158f7 100644 --- a/tools/depends/native/Makefile +++ b/tools/depends/native/Makefile @@ -10,6 +10,7 @@ NATIVE= \ autoconf-archive \ automake \ cmake \ + bison \ gas-preprocessor \ gettext \ giflib \ @@ -69,6 +70,7 @@ download: $(DOWNLOAD_TARGETS) autoconf-archive: autoconf autoconf: m4 automake: autoconf +bison: gettext cargo-c: pkg-config openssl rustup dpkg: automake gettext libtool pkg-config tar heimdal: libtool diff --git a/tools/depends/native/bison/BISON-VERSION b/tools/depends/native/bison/BISON-VERSION new file mode 100644 index 0000000000..5025050a39 --- /dev/null +++ b/tools/depends/native/bison/BISON-VERSION @@ -0,0 +1,4 @@ +LIBNAME=bison +VERSION=3.8.2 +ARCHIVE=$(LIBNAME)-$(VERSION).tar.xz +SHA512=d4d23af6671406e97257892f90651b67f2ab95219831372be032190b7156c10a3435d457857e677445df8b2327aacccc15344acbbc3808a6f332a93cce23b444 diff --git a/tools/depends/native/bison/Makefile b/tools/depends/native/bison/Makefile new file mode 100644 index 0000000000..131a0d98bf --- /dev/null +++ b/tools/depends/native/bison/Makefile @@ -0,0 +1,31 @@ +include ../../Makefile.include BISON-VERSION ../../download-files.include +PREFIX=$(NATIVEPREFIX) +PLATFORM=$(NATIVEPLATFORM) +DEPS=../../Makefile.include Makefile BISON-VERSION ../../download-files.include + +# configuration settings +CONFIGURE=./configure --prefix=$(PREFIX) + +LIBDYLIB=$(PLATFORM)/src/$(LIBNAME) + +all: .installed-$(PLATFORM) + + +$(PLATFORM): $(DEPS) | $(TARBALLS_LOCATION)/$(ARCHIVE).$(HASH_TYPE) + rm -rf $(PLATFORM)/*; mkdir -p $(PLATFORM) + cd $(PLATFORM); $(ARCHIVE_TOOL) $(ARCHIVE_TOOL_FLAGS) $(TARBALLS_LOCATION)/$(ARCHIVE) + cd $(PLATFORM); $(CONFIGURE) + +$(LIBDYLIB): $(PLATFORM) + $(MAKE) -C $(PLATFORM) + +.installed-$(PLATFORM): $(LIBDYLIB) + $(MAKE) -C $(PLATFORM) install + touch $@ + +clean: + $(MAKE) -C $(PLATFORM) clean + rm -f .installed-$(PLATFORM) + +distclean:: + rm -rf $(PLATFORM) .installed-$(PLATFORM) |