Mercurial > mxe-octave
comparison src/c-ares.mk @ 4362:85a6cedc88ff
c-ares: add new package
* src/c-ares.mk: new file
* index.html: add c-ares
* dist-files.mk: add c-ares.mk
author | John D |
---|---|
date | Mon, 13 Mar 2017 08:13:06 -0400 |
parents | |
children |
comparison
equal
deleted
inserted
replaced
4361:eb3e153306f3 | 4362:85a6cedc88ff |
---|---|
1 # This file is part of MXE. | |
2 # See index.html for further information. | |
3 | |
4 PKG := c-ares | |
5 $(PKG)_IGNORE := | |
6 $(PKG)_VERSION := 1.12.0 | |
7 $(PKG)_CHECKSUM := 8abfce61d2d788fb60a3441d05275162a460cbed | |
8 $(PKG)_SUBDIR := c-ares-$($(PKG)_VERSION) | |
9 $(PKG)_FILE := c-ares-$($(PKG)_VERSION).tar.gz | |
10 $(PKG)_URL := http://c-ares.haxx.se/download/$($(PKG)_FILE) | |
11 $(PKG)_DEPS := | |
12 | |
13 define $(PKG)_UPDATE | |
14 $(WGET) -q -O- 'http://c-ares.haxx.se/download/?C=M;O=D' | \ | |
15 $(SED) -n 's,.*c-ares-\([0-9][^"]*\)\.tar.*,\1,p' | \ | |
16 head -1 | |
17 endef | |
18 | |
19 define $(PKG)_BUILD | |
20 cd '$(1)' && ./configure \ | |
21 $(CONFIGURE_CPPFLAGS) $(CONFIGURE_LDFLAGS) \ | |
22 $(HOST_AND_BUILD_CONFIGURE_OPTIONS) \ | |
23 $(ENABLE_SHARED_OR_STATIC) \ | |
24 --prefix='$(HOST_PREFIX)' \ | |
25 $($(PKG)_CONFIGURE_OPTS) | |
26 | |
27 $(MAKE) -C '$(1)' -j '$(JOBS)' $(MXE_DISABLE_DOCS) | |
28 $(MAKE) -C '$(1)' -j 1 DESTDIR='$(3)' $(MXE_DISABLE_DOCS) install | |
29 endef |