Mercurial > mxe-octave
annotate src/zlib.mk @ 3926:ee802fc5dd9b
gcc: update to 5.1.0, update isl, libgpg_error
* src/build-gcc.mk: update version, checksum, remove cloog as a dependancy
* src/gcc-isl-1-fixes.patch: remove patch
* src/isl-1-fixes.patch: update patch
* src/isl.mk: update version, checksum
* src/libgpg_error-1-fixes.patch: remove patch
* src/libgpg_error.mk: update version, checksum
* src/native-gcc.mk: update version, checksum, remove cloog as a dependancy
* dist-files.mk: remove gcc-isl-1-fixes.patch, libgpg_error-1-fixes.patch
author | John D |
---|---|
date | Sun, 03 May 2015 20:38:29 -0400 |
parents | 13be64f9f16d |
children | bc8a44d99db6 |
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 := |
3480
13be64f9f16d
move version info from index.html to src/*.mk files
John W. Eaton <jwe@octave.org>
parents:
3293
diff
changeset
|
6 $(PKG)_VERSION := 1.2.8 |
3242
50a4de42ba1e
Update zlib to 1.2.8
John Donoghue <john.donoghue@ieee.org>
parents:
3109
diff
changeset
|
7 $(PKG)_CHECKSUM := b598beb7acc96347cbd1020b71aef7871d374677 |
306
85ffa9259036
validate downloads using SHA-1 checksums
Volker Grabsch <vog@notjusthosting.com>
parents:
265
diff
changeset
|
8 $(PKG)_SUBDIR := zlib-$($(PKG)_VERSION) |
3242
50a4de42ba1e
Update zlib to 1.2.8
John Donoghue <john.donoghue@ieee.org>
parents:
3109
diff
changeset
|
9 $(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
|
10 $(PKG)_URL := http://zlib.net/$($(PKG)_FILE) |
2527
5fc30b512eb1
package zlib: add fallback url
Tony Theodore <tonyt@logyst.com>
parents:
2365
diff
changeset
|
11 $(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
|
12 $(PKG)_DEPS := |
127
364cf286d1ee
translated package: zlib
Volker Grabsch <vog@notjusthosting.com>
parents:
diff
changeset
|
13 |
364cf286d1ee
translated package: zlib
Volker Grabsch <vog@notjusthosting.com>
parents:
diff
changeset
|
14 define $(PKG)_UPDATE |
2525
4d0f3a9da57e
all packages: use $(WGET) portability variable
Tony Theodore <tonyt@logyst.com>
parents:
2519
diff
changeset
|
15 $(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
|
16 $(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
|
17 head -1 |
127
364cf286d1ee
translated package: zlib
Volker Grabsch <vog@notjusthosting.com>
parents:
diff
changeset
|
18 endef |
364cf286d1ee
translated package: zlib
Volker Grabsch <vog@notjusthosting.com>
parents:
diff
changeset
|
19 |
3026
1fbef7559a8b
Add zlib native mingw build rule
John Donoghue <john.donoghue@ieee.org>
parents:
3014
diff
changeset
|
20 ifeq ($(MXE_NATIVE_MINGW_BUILD),yes) |
1fbef7559a8b
Add zlib native mingw build rule
John Donoghue <john.donoghue@ieee.org>
parents:
3014
diff
changeset
|
21 define $(PKG)_BUILD |
3070
d89eccc2edd3
[MSVC] enable zlib compilation
Michael Goffioul <michael.goffioul@gmail.com>
parents:
3048
diff
changeset
|
22 cd '$(1)' && CC='$(MXE_CC)' ./configure \ |
3026
1fbef7559a8b
Add zlib native mingw build rule
John Donoghue <john.donoghue@ieee.org>
parents:
3014
diff
changeset
|
23 --prefix='$(HOST_PREFIX)' |
1fbef7559a8b
Add zlib native mingw build rule
John Donoghue <john.donoghue@ieee.org>
parents:
3014
diff
changeset
|
24 |
3293
cf6f40cededb
Support file list generation in packages.
Michael Goffioul <michael.goffioul@gmail.com>
parents:
3242
diff
changeset
|
25 $(MAKE) -C '$(1)' -j '$(JOBS)' install DESTDIR='$(3)' |
3070
d89eccc2edd3
[MSVC] enable zlib compilation
Michael Goffioul <michael.goffioul@gmail.com>
parents:
3048
diff
changeset
|
26 |
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
|
27 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
|
28 true; \ |
3070
d89eccc2edd3
[MSVC] enable zlib compilation
Michael Goffioul <michael.goffioul@gmail.com>
parents:
3048
diff
changeset
|
29 fi |
3026
1fbef7559a8b
Add zlib native mingw build rule
John Donoghue <john.donoghue@ieee.org>
parents:
3014
diff
changeset
|
30 |
1fbef7559a8b
Add zlib native mingw build rule
John Donoghue <john.donoghue@ieee.org>
parents:
3014
diff
changeset
|
31 if [ "$(BUILD_SHARED)" = yes ]; then \ |
3293
cf6f40cededb
Support file list generation in packages.
Michael Goffioul <michael.goffioul@gmail.com>
parents:
3242
diff
changeset
|
32 $(MAKE_SHARED_FROM_STATIC) --ar '$(MXE_AR)' --ld '$(MXE_CC)' '$(1)/libz.a' --install '$(INSTALL)' --libdir '$(3)$(HOST_LIBDIR)' --bindir '$(3)$(HOST_BINDIR)'; \ |
3026
1fbef7559a8b
Add zlib native mingw build rule
John Donoghue <john.donoghue@ieee.org>
parents:
3014
diff
changeset
|
33 fi |
1fbef7559a8b
Add zlib native mingw build rule
John Donoghue <john.donoghue@ieee.org>
parents:
3014
diff
changeset
|
34 endef |
1fbef7559a8b
Add zlib native mingw build rule
John Donoghue <john.donoghue@ieee.org>
parents:
3014
diff
changeset
|
35 else |
2997 | 36 ifeq ($(MXE_NATIVE_BUILD),yes) |
127
364cf286d1ee
translated package: zlib
Volker Grabsch <vog@notjusthosting.com>
parents:
diff
changeset
|
37 define $(PKG)_BUILD |
2997 | 38 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
|
39 --prefix='$(HOST_PREFIX)' |
2997 | 40 |
3293
cf6f40cededb
Support file list generation in packages.
Michael Goffioul <michael.goffioul@gmail.com>
parents:
3242
diff
changeset
|
41 $(MAKE) -C '$(1)' -j '$(JOBS)' install DESTDIR='$(3)' |
2997 | 42 endef |
43 else | |
44 define $(PKG)_BUILD | |
45 cd '$(1)' && CHOST='$(TARGET)' $(CONFIGURE_CPPFLAGS) $(CONFIGURE_LDFLAGS) \ | |
46 ./configure \ | |
3012
100e618349f7
Improve handling of prefix directories by defining HOST_PREFIX and
John W. Eaton <jwe@octave.org>
parents:
2997
diff
changeset
|
47 --prefix='$(HOST_PREFIX)' \ |
2865
5ebec6b3a79c
Build shared library for zlib by converting static library.
John W. Eaton <jwe@octave.org>
parents:
2855
diff
changeset
|
48 --static |
3293
cf6f40cededb
Support file list generation in packages.
Michael Goffioul <michael.goffioul@gmail.com>
parents:
3242
diff
changeset
|
49 $(MAKE) -C '$(1)' -j '$(JOBS)' install DESTDIR='$(3)' |
2865
5ebec6b3a79c
Build shared library for zlib by converting static library.
John W. Eaton <jwe@octave.org>
parents:
2855
diff
changeset
|
50 |
5ebec6b3a79c
Build shared library for zlib by converting static library.
John W. Eaton <jwe@octave.org>
parents:
2855
diff
changeset
|
51 if [ "$(BUILD_SHARED)" = yes ]; then \ |
3293
cf6f40cededb
Support file list generation in packages.
Michael Goffioul <michael.goffioul@gmail.com>
parents:
3242
diff
changeset
|
52 $(MAKE_SHARED_FROM_STATIC) --ar '$(MXE_AR)' --ld '$(MXE_CC)' '$(1)/libz.a' --install '$(INSTALL)' --libdir '$(3)$(HOST_LIBDIR)' --bindir '$(3)$(HOST_BINDIR)'; \ |
2865
5ebec6b3a79c
Build shared library for zlib by converting static library.
John W. Eaton <jwe@octave.org>
parents:
2855
diff
changeset
|
53 fi |
127
364cf286d1ee
translated package: zlib
Volker Grabsch <vog@notjusthosting.com>
parents:
diff
changeset
|
54 endef |
2997 | 55 endif |
3026
1fbef7559a8b
Add zlib native mingw build rule
John Donoghue <john.donoghue@ieee.org>
parents:
3014
diff
changeset
|
56 endif |