Mercurial > mxe-octave
annotate src/bzip2.mk @ 5895:2db7f803d55d release
librsb: Update to version 1.2.0.10 (bug #60042).
* src/librsb.mk: Update version and checksum. Remove work-around for fixed bug.
author | Markus Mützel <markus.muetzel@gmx.de> |
---|---|
date | Sun, 19 Sep 2021 14:32:07 +0200 |
parents | 3c35245a253c |
children |
rev | line source |
---|---|
2333
f653602a0500
Rebrand to new project name MXE
Volker Grabsch <vog@notjusthosting.com>
parents:
1390
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:
306
diff
changeset
|
3 |
306
85ffa9259036
validate downloads using SHA-1 checksums
Volker Grabsch <vog@notjusthosting.com>
parents:
285
diff
changeset
|
4 PKG := bzip2 |
448
e9afec55fd6b
improved version recognition, enable the notation of ignored (bad) package versions
Volker Grabsch <vog@notjusthosting.com>
parents:
417
diff
changeset
|
5 $(PKG)_IGNORE := |
5260 | 6 $(PKG)_VERSION := 1.0.8 |
7 $(PKG)_CHECKSUM := bf7badf7e248e0ecf465d33c2f5aeec774209227 | |
306
85ffa9259036
validate downloads using SHA-1 checksums
Volker Grabsch <vog@notjusthosting.com>
parents:
285
diff
changeset
|
8 $(PKG)_SUBDIR := bzip2-$($(PKG)_VERSION) |
85ffa9259036
validate downloads using SHA-1 checksums
Volker Grabsch <vog@notjusthosting.com>
parents:
285
diff
changeset
|
9 $(PKG)_FILE := bzip2-$($(PKG)_VERSION).tar.gz |
5260 | 10 $(PKG)_URL := https://sourceware.org/pub/$(PKG)/$($(PKG)_FILE) |
3048
5ef49fb3299d
treat gcc and binutils as build tools
John W. Eaton <jwe@octave.org>
parents:
3031
diff
changeset
|
11 $(PKG)_DEPS := |
204 | 12 |
13 define $(PKG)_UPDATE | |
5260 | 14 $(WGET) -q -O- 'https://sourceware.org/pub/bzip2/' | \ |
15 $(SED) -n 's,.*<a href="$(PKG)-\([0-9][^"]*\)\.tar.*,\1,p' | \ | |
16 $(SORT) -V | tail -1 | |
204 | 17 endef |
18 | |
3071
d11e7f8eab5e
[MSVC] enable bzip2 compilation
Michael Goffioul <michael.goffioul@gmail.com>
parents:
3048
diff
changeset
|
19 ifneq ($(filter mingw msvc,$(MXE_SYSTEM)),) |
204 | 20 define $(PKG)_BUILD |
4179
6409a12147fd
bzip2: use aff patch
John Donoghue <john.donoghue@ieee.org>
parents:
3480
diff
changeset
|
21 #$(SED) -i 's,sys\\stat\.h,sys/stat.h,g' '$(1)/bzip2.c' |
6409a12147fd
bzip2: use aff patch
John Donoghue <john.donoghue@ieee.org>
parents:
3480
diff
changeset
|
22 #$(SED) -i 's,WINAPI,,g' '$(1)/bzlib.h' |
3412
b52660819c01
bzip2: Make and install bzip2.exe in mingw
John Donoghue <john.donoghue@ieee.org>
parents:
3293
diff
changeset
|
23 $(MAKE) -C '$(1)' -j '$(JOBS)' libbz2.a bzip2 \ |
3012
100e618349f7
Improve handling of prefix directories by defining HOST_PREFIX and
John W. Eaton <jwe@octave.org>
parents:
3006
diff
changeset
|
24 PREFIX='$(HOST_PREFIX)' \ |
2997 | 25 CC='$(MXE_CC)' \ |
26 AR='$(MXE_AR)' \ | |
27 RANLIB='$(MXE_RANLIB)' | |
3293
cf6f40cededb
Support file list generation in packages.
Michael Goffioul <michael.goffioul@gmail.com>
parents:
3071
diff
changeset
|
28 $(INSTALL) -d '$(3)$(HOST_INCDIR)' |
cf6f40cededb
Support file list generation in packages.
Michael Goffioul <michael.goffioul@gmail.com>
parents:
3071
diff
changeset
|
29 $(INSTALL) -m644 '$(1)/bzlib.h' '$(3)$(HOST_INCDIR)' |
2889 | 30 |
31 if [ $(BUILD_SHARED) = yes ]; then \ | |
3293
cf6f40cededb
Support file list generation in packages.
Michael Goffioul <michael.goffioul@gmail.com>
parents:
3071
diff
changeset
|
32 $(MAKE_SHARED_FROM_STATIC) --ar '$(MXE_AR)' --ld '$(MXE_CC)' '$(1)/libbz2.a' --install '$(INSTALL)' --libdir '$(3)$(HOST_LIBDIR)' --bindir '$(3)$(HOST_BINDIR)'; \ |
2889 | 33 fi |
3021
6ea3d6ad4f44
Update for build static compile option
John Donoghue <john.donoghue@ieee.org>
parents:
3014
diff
changeset
|
34 |
6ea3d6ad4f44
Update for build static compile option
John Donoghue <john.donoghue@ieee.org>
parents:
3014
diff
changeset
|
35 if [ $(BUILD_STATIC) = yes ]; then \ |
3293
cf6f40cededb
Support file list generation in packages.
Michael Goffioul <michael.goffioul@gmail.com>
parents:
3071
diff
changeset
|
36 $(INSTALL) '$(1)/libbz2.a' '$(3)$(HOST_LIBDIR)/'; \ |
3021
6ea3d6ad4f44
Update for build static compile option
John Donoghue <john.donoghue@ieee.org>
parents:
3014
diff
changeset
|
37 fi |
3412
b52660819c01
bzip2: Make and install bzip2.exe in mingw
John Donoghue <john.donoghue@ieee.org>
parents:
3293
diff
changeset
|
38 |
b52660819c01
bzip2: Make and install bzip2.exe in mingw
John Donoghue <john.donoghue@ieee.org>
parents:
3293
diff
changeset
|
39 $(INSTALL) -d '$(3)$(HOST_BINDIR)' |
5124
e4a0b11c5cc5
* src/bzip2.mk: windows, copy the bzip2.exe if there
John Donoghue
parents:
4815
diff
changeset
|
40 if [ -e '$(1)/bzip2.exe' ]; then \ |
e4a0b11c5cc5
* src/bzip2.mk: windows, copy the bzip2.exe if there
John Donoghue
parents:
4815
diff
changeset
|
41 $(INSTALL) '$(1)/bzip2.exe' '$(3)$(HOST_BINDIR)/bzip2.exe'; \ |
e4a0b11c5cc5
* src/bzip2.mk: windows, copy the bzip2.exe if there
John Donoghue
parents:
4815
diff
changeset
|
42 else \ |
e4a0b11c5cc5
* src/bzip2.mk: windows, copy the bzip2.exe if there
John Donoghue
parents:
4815
diff
changeset
|
43 $(INSTALL) '$(1)/bzip2' '$(3)$(HOST_BINDIR)/bzip2.exe'; \ |
e4a0b11c5cc5
* src/bzip2.mk: windows, copy the bzip2.exe if there
John Donoghue
parents:
4815
diff
changeset
|
44 fi |
3412
b52660819c01
bzip2: Make and install bzip2.exe in mingw
John Donoghue <john.donoghue@ieee.org>
parents:
3293
diff
changeset
|
45 |
204 | 46 endef |
2997 | 47 else |
48 define $(PKG)_BUILD | |
4179
6409a12147fd
bzip2: use aff patch
John Donoghue <john.donoghue@ieee.org>
parents:
3480
diff
changeset
|
49 #$(SED) -i 's,sys\\stat\.h,sys/stat.h,g' '$(1)/bzip2.c' |
6409a12147fd
bzip2: use aff patch
John Donoghue <john.donoghue@ieee.org>
parents:
3480
diff
changeset
|
50 #$(SED) -i 's,WINAPI,,g' '$(1)/bzlib.h' |
2997 | 51 $(MAKE) -C '$(1)' -j '$(JOBS)' -f Makefile-libbz2_so \ |
3012
100e618349f7
Improve handling of prefix directories by defining HOST_PREFIX and
John W. Eaton <jwe@octave.org>
parents:
3006
diff
changeset
|
52 PREFIX='$(HOST_PREFIX)' \ |
2997 | 53 CC='$(MXE_CC)' \ |
54 AR='$(MXE_AR)' \ | |
55 RANLIB='$(MXE_RANLIB)' | |
3293
cf6f40cededb
Support file list generation in packages.
Michael Goffioul <michael.goffioul@gmail.com>
parents:
3071
diff
changeset
|
56 $(INSTALL) -d '$(3)$(HOST_LIBDIR)' |
5262
3c35245a253c
* src/bzip2.mk: fix native install version links
John Donoghue
parents:
5260
diff
changeset
|
57 $(INSTALL) -m755 '$(1)/libbz2.so.$($(PKG)_VERSION)' '$(3)$(HOST_LIBDIR)' |
3293
cf6f40cededb
Support file list generation in packages.
Michael Goffioul <michael.goffioul@gmail.com>
parents:
3071
diff
changeset
|
58 rm -f '$(3)$(HOST_LIBDIR)/libbz2.so.1.0' |
5262
3c35245a253c
* src/bzip2.mk: fix native install version links
John Donoghue
parents:
5260
diff
changeset
|
59 $(LN_SF) libbz2.so.$($(PKG)_VERSION) '$(3)$(HOST_LIBDIR)/libbz2.so.1.0' |
4681
7914e218df3e
bzip2: also create libbz2.so link
John W. Eaton <jwe@octave.org>
parents:
4179
diff
changeset
|
60 $(LN_SF) libbz2.so.1.0 '$(3)$(HOST_LIBDIR)/libbz2.so' |
3293
cf6f40cededb
Support file list generation in packages.
Michael Goffioul <michael.goffioul@gmail.com>
parents:
3071
diff
changeset
|
61 $(INSTALL) -d '$(3)$(HOST_INCDIR)' |
cf6f40cededb
Support file list generation in packages.
Michael Goffioul <michael.goffioul@gmail.com>
parents:
3071
diff
changeset
|
62 $(INSTALL) -m644 '$(1)/bzlib.h' '$(3)$(HOST_INCDIR)' |
2997 | 63 endef |
64 endif |