Mercurial > mxe-octave
annotate src/bzip2.mk @ 3293:cf6f40cededb
Support file list generation in packages.
For the following modules:
- arpack
- blas
- build-autoconf
- build-automake
- build-cmake
- build-gperf
- build-libtool
- build-msvctools
- build-pkg-config
- build-texinfo
- bzip2
- curl
- dbus
- expat
- fftw
- fltk
- fontconfig
- freetype
- gettext
- glpk
- gmp
- gnuplot
- gnutls
- graphicsmagick
- hdf5
- jasper
- jpeg
- lapack
- lcms
- libgcrypt
- libgpg_error
- libiconv
- libidn
- libpng
- libssh2
- libxml2
- ncurses
- nettle
- openssl
- pcre
- pstoedit
- zlib
- qhull
- qrupdate
- qscintilla
- qt
- readline
- suitesparse
- texinfo
- tiff
author | Michael Goffioul <michael.goffioul@gmail.com> |
---|---|
date | Sat, 09 Nov 2013 23:28:04 -0500 |
parents | d11e7f8eab5e |
children | b52660819c01 |
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 := |
1170 | 6 $(PKG)_CHECKSUM := 3f89f861209ce81a6bab1fd1998c0ef311712002 |
306
85ffa9259036
validate downloads using SHA-1 checksums
Volker Grabsch <vog@notjusthosting.com>
parents:
285
diff
changeset
|
7 $(PKG)_SUBDIR := bzip2-$($(PKG)_VERSION) |
85ffa9259036
validate downloads using SHA-1 checksums
Volker Grabsch <vog@notjusthosting.com>
parents:
285
diff
changeset
|
8 $(PKG)_FILE := bzip2-$($(PKG)_VERSION).tar.gz |
85ffa9259036
validate downloads using SHA-1 checksums
Volker Grabsch <vog@notjusthosting.com>
parents:
285
diff
changeset
|
9 $(PKG)_URL := http://www.bzip.org/$($(PKG)_VERSION)/$($(PKG)_FILE) |
3048
5ef49fb3299d
treat gcc and binutils as build tools
John W. Eaton <jwe@octave.org>
parents:
3031
diff
changeset
|
10 $(PKG)_DEPS := |
204 | 11 |
12 define $(PKG)_UPDATE | |
2525
4d0f3a9da57e
all packages: use $(WGET) portability variable
Tony Theodore <tonyt@logyst.com>
parents:
2365
diff
changeset
|
13 $(WGET) -q -O- 'http://www.bzip.org/downloads.html' | \ |
204 | 14 grep 'bzip2-' | \ |
266
b94424e6c37f
improved the regexes for package version recognition
Volker Grabsch <vog@notjusthosting.com>
parents:
265
diff
changeset
|
15 $(SED) -n 's,.*bzip2-\([0-9][^>]*\)\.tar.*,\1,p' | \ |
204 | 16 head -1 |
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 |
759
bf4bcb3370fa
changed coding style: make "-i" always the first argument of $(SED) (by Mark Brand)
Volker Grabsch <vog@notjusthosting.com>
parents:
714
diff
changeset
|
21 $(SED) -i 's,sys\\stat\.h,sys/stat.h,g' '$(1)/bzip2.c' |
807
622c0a7b8f0e
bugfix: don't use WINAPI in package bzip2
Volker Grabsch <vog@notjusthosting.com>
parents:
759
diff
changeset
|
22 $(SED) -i 's,WINAPI,,g' '$(1)/bzlib.h' |
204 | 23 $(MAKE) -C '$(1)' -j '$(JOBS)' libbz2.a \ |
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 |
204 | 38 endef |
2997 | 39 else |
40 define $(PKG)_BUILD | |
41 $(SED) -i 's,sys\\stat\.h,sys/stat.h,g' '$(1)/bzip2.c' | |
42 $(SED) -i 's,WINAPI,,g' '$(1)/bzlib.h' | |
43 $(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
|
44 PREFIX='$(HOST_PREFIX)' \ |
2997 | 45 CC='$(MXE_CC)' \ |
46 AR='$(MXE_AR)' \ | |
47 RANLIB='$(MXE_RANLIB)' | |
3293
cf6f40cededb
Support file list generation in packages.
Michael Goffioul <michael.goffioul@gmail.com>
parents:
3071
diff
changeset
|
48 $(INSTALL) -d '$(3)$(HOST_LIBDIR)' |
cf6f40cededb
Support file list generation in packages.
Michael Goffioul <michael.goffioul@gmail.com>
parents:
3071
diff
changeset
|
49 $(INSTALL) -m755 '$(1)/libbz2.so.1.0.6' '$(3)$(HOST_LIBDIR)' |
cf6f40cededb
Support file list generation in packages.
Michael Goffioul <michael.goffioul@gmail.com>
parents:
3071
diff
changeset
|
50 rm -f '$(3)$(HOST_LIBDIR)/libbz2.so.1.0' |
cf6f40cededb
Support file list generation in packages.
Michael Goffioul <michael.goffioul@gmail.com>
parents:
3071
diff
changeset
|
51 $(LN_SF) libbz2.so.1.0.6 '$(3)$(HOST_LIBDIR)/libbz2.so.1.0' |
cf6f40cededb
Support file list generation in packages.
Michael Goffioul <michael.goffioul@gmail.com>
parents:
3071
diff
changeset
|
52 $(INSTALL) -d '$(3)$(HOST_INCDIR)' |
cf6f40cededb
Support file list generation in packages.
Michael Goffioul <michael.goffioul@gmail.com>
parents:
3071
diff
changeset
|
53 $(INSTALL) -m644 '$(1)/bzlib.h' '$(3)$(HOST_INCDIR)' |
2997 | 54 endef |
55 endif |