Mercurial > mxe-octave
changeset 2990:5329f4891fb7
build our own bison and flex
author | John W. Eaton <jwe@octave.org> |
---|---|
date | Thu, 23 May 2013 14:30:06 -0400 |
parents | 59fedb8ce3da |
children | 07a5901747ae |
files | Makefile index.html src/build-bison.mk src/build-flex.mk src/gnuplot.mk src/octave.mk |
diffstat | 6 files changed, 65 insertions(+), 6 deletions(-) [+] |
line wrap: on
line diff
--- a/Makefile Mon May 20 11:32:05 2013 -0400 +++ b/Makefile Thu May 23 14:30:06 2013 -0400 @@ -35,14 +35,12 @@ --user-agent=$(shell wget --version | \ $(SED) -n 's,GNU \(Wget\) \([0-9.]*\).*,\1/\2,p') -REQUIREMENTS := bash bison bzip2 flex \ - gcc intltoolize \ - $(MAKE) openssl $(PATCH) $(PERL) \ - scons $(SED) unzip wget xz yasm +REQUIREMENTS := bash bzip2 gcc intltoolize $(MAKE) openssl \ + $(PATCH) $(PERL) $(SED) unzip wget xz LIBTOOL := libtool LIBTOOLIZE := libtoolize -BUILD_TOOLS := build-autoconf build-automake build-cmake build-libtool build-pkg-config +BUILD_TOOLS := build-autoconf build-automake build-cmake build-libtool build-pkg-config build-bison build-flex PREFIX := $(PWD)/usr LOG_DIR := $(PWD)/log
--- a/index.html Mon May 20 11:32:05 2013 -0400 +++ b/index.html Thu May 23 14:30:06 2013 -0400 @@ -979,11 +979,21 @@ <td id="build-automake-website"><a href="http://www.gnu.org/software/automake">automake</a></td> </tr> <tr> + <td id="build-bison-package">bison</td> + <td id="build-bison-version">2.7.1</td> + <td id="build-bison-website"><a href="http://www.gnu.org/software/bison">bison</a></td> + </tr> + <tr> <td id="build-cmake-package">cmake</td> <td id="build-cmake-version">2.8.9</td> <td id="build-cmake-website"><a href="http://www.cmake.org">cmake</a></td> </tr> <tr> + <td id="build-flex-package">bison</td> + <td id="build-flex-version">2.5.37</td> + <td id="build-flex-website"><a href="http://flex.sourceforge.net">flex</a></td> + </tr> + <tr> <td id="build-libtool-package">libtool</td> <td id="build-libtool-version">2.4.2</td> <td id="build-libtool-website"><a href="http://www.gnu.org/software/libtool">libtool</a></td>
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/src/build-bison.mk Thu May 23 14:30:06 2013 -0400 @@ -0,0 +1,23 @@ +# This file is part of MXE. +# See index.html for further information. + +PKG := build-bison +$(PKG)_IGNORE := +$(PKG)_CHECKSUM := 00ab1b32d864622077c311e4f5420d4e2931fdc8 +$(PKG)_SUBDIR := bison-$($(PKG)_VERSION) +$(PKG)_FILE := bison-$($(PKG)_VERSION).tar.xz +$(PKG)_URL := ftp://ftp.gnu.org/pub/gnu/bison/$($(PKG)_FILE) +$(PKG)_DEPS := + +define $(PKG)_UPDATE + echo 'Warning: Updates are temporarily disabled for package $(PKG).' >&2; + echo $($(PKG)_VERSION) +endef + +define $(PKG)_BUILD + mkdir '$(1).build' + cd '$(1).build' && '$(1)/configure' \ + --prefix='$(PREFIX)' + $(MAKE) -C '$(1).build' -j '$(JOBS)' + $(MAKE) -C '$(1).build' -j 1 install +endef
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/src/build-flex.mk Thu May 23 14:30:06 2013 -0400 @@ -0,0 +1,23 @@ +# This file is part of MXE. +# See index.html for further information. + +PKG := build-flex +$(PKG)_IGNORE := +$(PKG)_CHECKSUM := db4b140f2aff34c6197cab919828cc4146aae218 +$(PKG)_SUBDIR := flex-$($(PKG)_VERSION) +$(PKG)_FILE := flex-$($(PKG)_VERSION).tar.bz2 +$(PKG)_URL := http://prdownloads.sourceforge.net/flex/$($(PKG)_FILE) +$(PKG)_DEPS := + +define $(PKG)_UPDATE + echo 'Warning: Updates are temporarily disabled for package $(PKG).' >&2; + echo $($(PKG)_VERSION) +endef + +define $(PKG)_BUILD + mkdir '$(1).build' + cd '$(1).build' && '$(1)/configure' \ + --prefix='$(PREFIX)' + $(MAKE) -C '$(1).build' -j '$(JOBS)' + $(MAKE) -C '$(1).build' -j 1 install +endef
--- a/src/gnuplot.mk Mon May 20 11:32:05 2013 -0400 +++ b/src/gnuplot.mk Thu May 23 14:30:06 2013 -0400 @@ -24,4 +24,9 @@ $(INSTALL) -m755 '$(1)/config/mingw/wgnuplot.exe' '$(PREFIX)/$(TARGET)/bin/' $(INSTALL) -m644 '$(1)/config/mingw/wgnuplot.mnu' '$(PREFIX)/$(TARGET)/bin/' + $(INSTALL) -d '$(PREFIX)/../gnuplot/bin' + $(INSTALL) -m755 '$(1)/config/mingw/gnuplot.exe' '$(PREFIX)/../gnuplot/bin/' + $(INSTALL) -m755 '$(1)/config/mingw/wgnuplot.exe' '$(PREFIX)/../gnuplot/bin/' + $(INSTALL) -m644 '$(1)/config/mingw/wgnuplot.mnu' '$(PREFIX)/../gnuplot/bin/' + endef
--- a/src/octave.mk Mon May 20 11:32:05 2013 -0400 +++ b/src/octave.mk Thu May 23 14:30:06 2013 -0400 @@ -3,7 +3,7 @@ PKG := octave $(PKG)_IGNORE := -$(PKG)_CHECKSUM := a51f52fa6dfef2e905d0c64f0401caab5a11faca +$(PKG)_CHECKSUM := ea33cb0613dc53971bc4c6e344fed9e955ffeb40 $(PKG)_SUBDIR := $(PKG)-$($(PKG)_VERSION) $(PKG)_FILE := octave-$($(PKG)_VERSION).tar.gz $(PKG)_URL := ftp://alpha.gnu.org/gnu/octave/$($(PKG)_FILE)