add package waf

This commit is contained in:
Boris Nagaev 2016-01-03 16:13:26 +03:00
parent 0731545422
commit 3560fdb16c
2 changed files with 26 additions and 0 deletions

View File

@ -2550,6 +2550,10 @@ local-pkg-list: $(LOCAL_PKG_LIST)</pre>
<td class="package">vtk6</td>
<td class="website"><a href="http://www.vtk.org/">VTK6</a></td>
</tr>
<tr>
<td class="package">waf</td>
<td class="website"><a href="https://waf.io/">Waf: the meta build system</a></td>
</tr>
<tr>
<td class="package">wavpack</td>
<td class="website"><a href="http://www.wavpack.com/">WavPack</a></td>

22
src/waf.mk Normal file
View File

@ -0,0 +1,22 @@
# This file is part of MXE.
# See index.html for further information.
PKG := waf
$(PKG)_IGNORE :=
$(PKG)_VERSION := 1.8.17
$(PKG)_CHECKSUM := 63c53b03dd23afde1008dced06a011dad581d24392818c8069a40af99f6ac2b6
$(PKG)_SUBDIR := $(PKG)-$($(PKG)_VERSION)
$(PKG)_FILE := $(PKG)-$($(PKG)_VERSION).tar.bz2
$(PKG)_URL := https://waf.io/$($(PKG)_FILE)
$(PKG)_TARGETS := $(BUILD) $(MXE_TARGETS)
define $(PKG)_UPDATE
$(WGET) -q -O- 'https://waf.io/' | \
$(SED) -n 's,.*waf-\([0-9][^>]*\)\.tar.*,\1,p' | \
head -1
endef
define $(PKG)_BUILD_$(BUILD)
mkdir -p '$(PREFIX)/$(BUILD)/bin'
cp '$(1)/waf' '$(PREFIX)/$(BUILD)/bin/waf'
endef