4666
|
1 # This file is part of MXE. |
|
2 # See index.html for further information. |
|
3 |
|
4 PKG := build-sed |
|
5 $(PKG)_IGNORE := |
|
6 $(PKG)_VERSION := 4.5 |
|
7 $(PKG)_CHECKSUM := 6635c344956ef928cc33aca798ad20c6c1ea25f7 |
|
8 $(PKG)_SUBDIR := sed-$($(PKG)_VERSION) |
|
9 $(PKG)_FILE := sed-$($(PKG)_VERSION).tar.xz |
|
10 $(PKG)_URL := ftp://ftp.gnu.org/pub/gnu/sed/$($(PKG)_FILE) |
|
11 $(PKG)_DEPS := |
|
12 |
|
13 define $(PKG)_UPDATE |
|
14 $(WGET) -q -O- 'http://ftp.gnu.org/gnu/sed/?C=M;O=D' | \ |
|
15 $(SED) -n 's,.*<a href="sed-\([0-9\.]*\)\.tar.*,\1,p' | \ |
|
16 $(SORT) -V | \ |
|
17 tail -1 |
|
18 endef |
|
19 |
|
20 define $(PKG)_BUILD |
|
21 mkdir '$(1).build' |
|
22 cd '$(1).build' && '$(1)/configure' \ |
|
23 --prefix='$(BUILD_TOOLS_PREFIX)' |
|
24 $(MAKE) -C '$(1).build' -j '$(JOBS)' |
|
25 $(MAKE) -C '$(1).build' -j 1 install |
|
26 endef |