add optional native automake and autoconf

This commit is contained in:
Tony Theodore 2013-07-17 13:27:00 +10:00
parent 3a18c57c08
commit 2b8d7eaf67
4 changed files with 57 additions and 1 deletions

View File

@ -37,7 +37,7 @@ TMP_DIR = $(PWD)/tmp-$(1)
MAKEFILE := $(word $(words $(MAKEFILE_LIST)),$(MAKEFILE_LIST))
TOP_DIR := $(patsubst %/,%,$(dir $(MAKEFILE)))
PKGS := $(shell $(SED) -n 's/^.* id="\([^"]*\)-package">.*$$/\1/p' '$(TOP_DIR)/index.html')
PATH := $(PREFIX)/bin:$(PATH)
PATH := $(PREFIX)/bin:$(PREFIX)/native/bin:$(PATH)
# unexport any environment variables that might cause trouble
unexport AR CC CFLAGS C_INCLUDE_PATH CPATH CPLUS_INCLUDE_PATH CPP

View File

@ -1030,6 +1030,16 @@ USE_OSGPLUGIN(<plugin2>)
<td id="aubio-version">0.3.2</td>
<td id="aubio-website"><a href="http://www.aubio.org/">aubio</a></td>
</tr>
<tr>
<td id="autoconf-package">autoconf</td>
<td id="autoconf-version">2.69</td>
<td id="autoconf-website"><a href="http://www.gnu.org/software/autoconf">autoconf</a></td>
</tr>
<tr>
<td id="automake-package">automake</td>
<td id="automake-version">1.13.2</td>
<td id="automake-website"><a href="http://www.gnu.org/software/automake">automake</a></td>
</tr>
<tr>
<td id="bfd-package">bfd</td>
<td id="bfd-version">2.23.2</td>

23
src/autoconf.mk Normal file
View File

@ -0,0 +1,23 @@
# This file is part of MXE.
# See index.html for further information.
PKG := autoconf
$(PKG)_IGNORE :=
$(PKG)_CHECKSUM := e891c3193029775e83e0534ac0ee0c4c711f6d23
$(PKG)_SUBDIR := autoconf-$($(PKG)_VERSION)
$(PKG)_FILE := autoconf-$($(PKG)_VERSION).tar.xz
$(PKG)_URL := ftp://ftp.gnu.org/pub/gnu/autoconf/$($(PKG)_FILE)
$(PKG)_DEPS :=
define $(PKG)_UPDATE
echo 'Warning: Updates are disabled for package autoconf.' >&2;
echo $($(PKG)_VERSION)
endef
define $(PKG)_BUILD_NATIVE
mkdir '$(1).build'
cd '$(1).build' && '$(1)/configure' \
--prefix='$(PREFIX)/native'
$(MAKE) -C '$(1).build' -j '$(JOBS)'
$(MAKE) -C '$(1).build' -j 1 install
endef

23
src/automake.mk Normal file
View File

@ -0,0 +1,23 @@
# This file is part of MXE.
# See index.html for further information.
PKG := automake
$(PKG)_IGNORE :=
$(PKG)_CHECKSUM := 72ee9fcd180c54fd7c067155d85fa071a99c3ea3
$(PKG)_SUBDIR := automake-$($(PKG)_VERSION)
$(PKG)_FILE := automake-$($(PKG)_VERSION).tar.gz
$(PKG)_URL := ftp://ftp.gnu.org/pub/gnu/automake/$($(PKG)_FILE)
$(PKG)_DEPS := autoconf
define $(PKG)_UPDATE
echo 'Warning: Updates are disabled for package automake.' >&2;
echo $($(PKG)_VERSION)
endef
define $(PKG)_BUILD_NATIVE
mkdir '$(1).build'
cd '$(1).build' && '$(1)/configure' \
--prefix='$(PREFIX)/native'
$(MAKE) -C '$(1).build' -j '$(JOBS)'
$(MAKE) -C '$(1).build' -j 1 install
endef