Mercurial > mxe-octave
annotate src/zlib.mk @ 3242:50a4de42ba1e
Update zlib to 1.2.8
* src/zlib.mk: update checksum and zlibfile type to .xz.
* index.html: update zlib-version to 1.2.8
* src/zlib-1-win32-static.patch: update patch to latest mxe patch.
author | John Donoghue <john.donoghue@ieee.org> |
---|---|
date | Fri, 30 Aug 2013 20:41:40 -0400 |
parents | 98e1ed7ae70b |
children | cf6f40cededb |
rev | line source |
---|---|
2333
f653602a0500
Rebrand to new project name MXE
Volker Grabsch <vog@notjusthosting.com>
parents:
2227
diff
changeset
|
1 # This file is part of MXE. |
2353
99516e73b368
Move doc/index.html -> index.html
Volker Grabsch <vog@notjusthosting.com>
parents:
2349
diff
changeset
|
2 # See index.html for further information. |
414
d2a6561bcb6d
add a copyright notice and license to each source file
Volker Grabsch <vog@notjusthosting.com>
parents:
408
diff
changeset
|
3 |
306
85ffa9259036
validate downloads using SHA-1 checksums
Volker Grabsch <vog@notjusthosting.com>
parents:
265
diff
changeset
|
4 PKG := zlib |
448
e9afec55fd6b
improved version recognition, enable the notation of ignored (bad) package versions
Volker Grabsch <vog@notjusthosting.com>
parents:
422
diff
changeset
|
5 $(PKG)_IGNORE := |
3242
50a4de42ba1e
Update zlib to 1.2.8
John Donoghue <john.donoghue@ieee.org>
parents:
3109
diff
changeset
|
6 $(PKG)_CHECKSUM := b598beb7acc96347cbd1020b71aef7871d374677 |
306
85ffa9259036
validate downloads using SHA-1 checksums
Volker Grabsch <vog@notjusthosting.com>
parents:
265
diff
changeset
|
7 $(PKG)_SUBDIR := zlib-$($(PKG)_VERSION) |
3242
50a4de42ba1e
Update zlib to 1.2.8
John Donoghue <john.donoghue@ieee.org>
parents:
3109
diff
changeset
|
8 $(PKG)_FILE := zlib-$($(PKG)_VERSION).tar.xz |
878
49ecbb512ff2
improved URLs and version recognition of package zlib
Volker Grabsch <vog@notjusthosting.com>
parents:
824
diff
changeset
|
9 $(PKG)_URL := http://zlib.net/$($(PKG)_FILE) |
2527
5fc30b512eb1
package zlib: add fallback url
Tony Theodore <tonyt@logyst.com>
parents:
2365
diff
changeset
|
10 $(PKG)_URL_2 := http://$(SOURCEFORGE_MIRROR)/project/libpng/$(PKG)/$($(PKG)_VERSION)/$($(PKG)_FILE) |
3048
5ef49fb3299d
treat gcc and binutils as build tools
John W. Eaton <jwe@octave.org>
parents:
3026
diff
changeset
|
11 $(PKG)_DEPS := |
127
364cf286d1ee
translated package: zlib
Volker Grabsch <vog@notjusthosting.com>
parents:
diff
changeset
|
12 |
364cf286d1ee
translated package: zlib
Volker Grabsch <vog@notjusthosting.com>
parents:
diff
changeset
|
13 define $(PKG)_UPDATE |
2525
4d0f3a9da57e
all packages: use $(WGET) portability variable
Tony Theodore <tonyt@logyst.com>
parents:
2519
diff
changeset
|
14 $(WGET) -q -O- 'http://zlib.net/' | \ |
878
49ecbb512ff2
improved URLs and version recognition of package zlib
Volker Grabsch <vog@notjusthosting.com>
parents:
824
diff
changeset
|
15 $(SED) -n 's,.*zlib-\([0-9][^>]*\)\.tar.*,\1,ip' | \ |
49ecbb512ff2
improved URLs and version recognition of package zlib
Volker Grabsch <vog@notjusthosting.com>
parents:
824
diff
changeset
|
16 head -1 |
127
364cf286d1ee
translated package: zlib
Volker Grabsch <vog@notjusthosting.com>
parents:
diff
changeset
|
17 endef |
364cf286d1ee
translated package: zlib
Volker Grabsch <vog@notjusthosting.com>
parents:
diff
changeset
|
18 |
3026
1fbef7559a8b
Add zlib native mingw build rule
John Donoghue <john.donoghue@ieee.org>
parents:
3014
diff
changeset
|
19 ifeq ($(MXE_NATIVE_MINGW_BUILD),yes) |
1fbef7559a8b
Add zlib native mingw build rule
John Donoghue <john.donoghue@ieee.org>
parents:
3014
diff
changeset
|
20 define $(PKG)_BUILD |
3070
d89eccc2edd3
[MSVC] enable zlib compilation
Michael Goffioul <michael.goffioul@gmail.com>
parents:
3048
diff
changeset
|
21 cd '$(1)' && CC='$(MXE_CC)' ./configure \ |
3026
1fbef7559a8b
Add zlib native mingw build rule
John Donoghue <john.donoghue@ieee.org>
parents:
3014
diff
changeset
|
22 --prefix='$(HOST_PREFIX)' |
1fbef7559a8b
Add zlib native mingw build rule
John Donoghue <john.donoghue@ieee.org>
parents:
3014
diff
changeset
|
23 |
3109
98e1ed7ae70b
Revert part of d89eccc2edd3, it's prevent installation of headers and .pc files.
Michael Goffioul <michael.goffioul@gmail.com>
parents:
3070
diff
changeset
|
24 $(MAKE) -C '$(1)' -j '$(JOBS)' install |
3070
d89eccc2edd3
[MSVC] enable zlib compilation
Michael Goffioul <michael.goffioul@gmail.com>
parents:
3048
diff
changeset
|
25 |
3109
98e1ed7ae70b
Revert part of d89eccc2edd3, it's prevent installation of headers and .pc files.
Michael Goffioul <michael.goffioul@gmail.com>
parents:
3070
diff
changeset
|
26 if [ "$(BUILD_STATIC)" != yes ]; then \ |
98e1ed7ae70b
Revert part of d89eccc2edd3, it's prevent installation of headers and .pc files.
Michael Goffioul <michael.goffioul@gmail.com>
parents:
3070
diff
changeset
|
27 true; \ |
3070
d89eccc2edd3
[MSVC] enable zlib compilation
Michael Goffioul <michael.goffioul@gmail.com>
parents:
3048
diff
changeset
|
28 fi |
3026
1fbef7559a8b
Add zlib native mingw build rule
John Donoghue <john.donoghue@ieee.org>
parents:
3014
diff
changeset
|
29 |
1fbef7559a8b
Add zlib native mingw build rule
John Donoghue <john.donoghue@ieee.org>
parents:
3014
diff
changeset
|
30 if [ "$(BUILD_SHARED)" = yes ]; then \ |
1fbef7559a8b
Add zlib native mingw build rule
John Donoghue <john.donoghue@ieee.org>
parents:
3014
diff
changeset
|
31 $(MAKE_SHARED_FROM_STATIC) --ar '$(MXE_AR)' --ld '$(MXE_CC)' '$(1)/libz.a' --install '$(INSTALL)' --libdir '$(HOST_LIBDIR)' --bindir '$(HOST_BINDIR)'; \ |
1fbef7559a8b
Add zlib native mingw build rule
John Donoghue <john.donoghue@ieee.org>
parents:
3014
diff
changeset
|
32 fi |
1fbef7559a8b
Add zlib native mingw build rule
John Donoghue <john.donoghue@ieee.org>
parents:
3014
diff
changeset
|
33 endef |
1fbef7559a8b
Add zlib native mingw build rule
John Donoghue <john.donoghue@ieee.org>
parents:
3014
diff
changeset
|
34 else |
2997 | 35 ifeq ($(MXE_NATIVE_BUILD),yes) |
127
364cf286d1ee
translated package: zlib
Volker Grabsch <vog@notjusthosting.com>
parents:
diff
changeset
|
36 define $(PKG)_BUILD |
2997 | 37 cd '$(1)' && ./configure \ |
3012
100e618349f7
Improve handling of prefix directories by defining HOST_PREFIX and
John W. Eaton <jwe@octave.org>
parents:
2997
diff
changeset
|
38 --prefix='$(HOST_PREFIX)' |
2997 | 39 |
40 $(MAKE) -C '$(1)' -j '$(JOBS)' install | |
41 endef | |
42 else | |
43 define $(PKG)_BUILD | |
44 cd '$(1)' && CHOST='$(TARGET)' $(CONFIGURE_CPPFLAGS) $(CONFIGURE_LDFLAGS) \ | |
45 ./configure \ | |
3012
100e618349f7
Improve handling of prefix directories by defining HOST_PREFIX and
John W. Eaton <jwe@octave.org>
parents:
2997
diff
changeset
|
46 --prefix='$(HOST_PREFIX)' \ |
2865
5ebec6b3a79c
Build shared library for zlib by converting static library.
John W. Eaton <jwe@octave.org>
parents:
2855
diff
changeset
|
47 --static |
131
ed98f6b98e35
use $(1) instead of $(2) to address to temporary build dir
Volker Grabsch <vog@notjusthosting.com>
parents:
127
diff
changeset
|
48 $(MAKE) -C '$(1)' -j '$(JOBS)' install |
2865
5ebec6b3a79c
Build shared library for zlib by converting static library.
John W. Eaton <jwe@octave.org>
parents:
2855
diff
changeset
|
49 |
5ebec6b3a79c
Build shared library for zlib by converting static library.
John W. Eaton <jwe@octave.org>
parents:
2855
diff
changeset
|
50 if [ "$(BUILD_SHARED)" = yes ]; then \ |
3014
b6c7244a2f66
Use HOST_BINDIR, HOST_LIBDIR, and HOST_INCDIR instead of MXE_BINDIR, MXE_LIBDIR, and MXE_INCDIR. Attempt to use these variables consistently instead of using $(HOST_PREFIX)/bin, $(HOST_PREFIX)/lib, and $(HOST_PREFIX)/include
John W. Eaton <jwe@octave.org>
parents:
3012
diff
changeset
|
51 $(MAKE_SHARED_FROM_STATIC) --ar '$(MXE_AR)' --ld '$(MXE_CC)' '$(1)/libz.a' --install '$(INSTALL)' --libdir '$(HOST_LIBDIR)' --bindir '$(HOST_BINDIR)'; \ |
2865
5ebec6b3a79c
Build shared library for zlib by converting static library.
John W. Eaton <jwe@octave.org>
parents:
2855
diff
changeset
|
52 fi |
127
364cf286d1ee
translated package: zlib
Volker Grabsch <vog@notjusthosting.com>
parents:
diff
changeset
|
53 endef |
2997 | 54 endif |
3026
1fbef7559a8b
Add zlib native mingw build rule
John Donoghue <john.donoghue@ieee.org>
parents:
3014
diff
changeset
|
55 endif |