annotate src/bzip2.mk @ 1170:25345fdf9752

upgrade package bzip2
author Mark Brand <mabrand@mabrand.nl>
date Mon, 20 Sep 2010 12:43:07 +0200
parents 622c0a7b8f0e
children 7fae546007a1
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
641
dab071eac9c0 simplified file markers
Volker Grabsch <vog@notjusthosting.com>
parents: 448
diff changeset
1 # This file is part of mingw-cross-env.
714
29f1ba4559ae point consequently to "doc/index.html" instead of "doc/index.html or doc/README"
Volker Grabsch <vog@notjusthosting.com>
parents: 641
diff changeset
2 # See doc/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
204
f79850118439 new package: bzip2
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
4 # bzip2
306
85ffa9259036 validate downloads using SHA-1 checksums
Volker Grabsch <vog@notjusthosting.com>
parents: 285
diff changeset
5 PKG := bzip2
448
e9afec55fd6b improved version recognition, enable the notation of ignored (bad) package versions
Volker Grabsch <vog@notjusthosting.com>
parents: 417
diff changeset
6 $(PKG)_IGNORE :=
1170
25345fdf9752 upgrade package bzip2
Mark Brand <mabrand@mabrand.nl>
parents: 807
diff changeset
7 $(PKG)_VERSION := 1.0.6
25345fdf9752 upgrade package bzip2
Mark Brand <mabrand@mabrand.nl>
parents: 807
diff changeset
8 $(PKG)_CHECKSUM := 3f89f861209ce81a6bab1fd1998c0ef311712002
306
85ffa9259036 validate downloads using SHA-1 checksums
Volker Grabsch <vog@notjusthosting.com>
parents: 285
diff changeset
9 $(PKG)_SUBDIR := bzip2-$($(PKG)_VERSION)
85ffa9259036 validate downloads using SHA-1 checksums
Volker Grabsch <vog@notjusthosting.com>
parents: 285
diff changeset
10 $(PKG)_FILE := bzip2-$($(PKG)_VERSION).tar.gz
85ffa9259036 validate downloads using SHA-1 checksums
Volker Grabsch <vog@notjusthosting.com>
parents: 285
diff changeset
11 $(PKG)_WEBSITE := http://www.bzip.org/
85ffa9259036 validate downloads using SHA-1 checksums
Volker Grabsch <vog@notjusthosting.com>
parents: 285
diff changeset
12 $(PKG)_URL := http://www.bzip.org/$($(PKG)_VERSION)/$($(PKG)_FILE)
85ffa9259036 validate downloads using SHA-1 checksums
Volker Grabsch <vog@notjusthosting.com>
parents: 285
diff changeset
13 $(PKG)_DEPS := gcc
204
f79850118439 new package: bzip2
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
14
f79850118439 new package: bzip2
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
15 define $(PKG)_UPDATE
f79850118439 new package: bzip2
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
16 wget -q -O- 'http://www.bzip.org/downloads.html' | \
f79850118439 new package: bzip2
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
17 grep 'bzip2-' | \
266
b94424e6c37f improved the regexes for package version recognition
Volker Grabsch <vog@notjusthosting.com>
parents: 265
diff changeset
18 $(SED) -n 's,.*bzip2-\([0-9][^>]*\)\.tar.*,\1,p' | \
204
f79850118439 new package: bzip2
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
19 head -1
f79850118439 new package: bzip2
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
20 endef
f79850118439 new package: bzip2
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
21
f79850118439 new package: bzip2
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
22 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
23 $(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
24 $(SED) -i 's,WINAPI,,g' '$(1)/bzlib.h'
204
f79850118439 new package: bzip2
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
25 $(MAKE) -C '$(1)' -j '$(JOBS)' libbz2.a \
f79850118439 new package: bzip2
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
26 PREFIX='$(PREFIX)/$(TARGET)' \
f79850118439 new package: bzip2
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
27 CC='$(TARGET)-gcc' \
f79850118439 new package: bzip2
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
28 AR='$(TARGET)-ar' \
f79850118439 new package: bzip2
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
29 RANLIB='$(TARGET)-ranlib'
285
08a32251156c portability fix for Open Solaris: when "ginstall" exists, use that instead of "install"
Volker Grabsch <vog@notjusthosting.com>
parents: 266
diff changeset
30 $(INSTALL) -d '$(PREFIX)/$(TARGET)/lib'
08a32251156c portability fix for Open Solaris: when "ginstall" exists, use that instead of "install"
Volker Grabsch <vog@notjusthosting.com>
parents: 266
diff changeset
31 $(INSTALL) -m664 '$(1)/libbz2.a' '$(PREFIX)/$(TARGET)/lib/'
08a32251156c portability fix for Open Solaris: when "ginstall" exists, use that instead of "install"
Volker Grabsch <vog@notjusthosting.com>
parents: 266
diff changeset
32 $(INSTALL) -d '$(PREFIX)/$(TARGET)/include'
08a32251156c portability fix for Open Solaris: when "ginstall" exists, use that instead of "install"
Volker Grabsch <vog@notjusthosting.com>
parents: 266
diff changeset
33 $(INSTALL) -m664 '$(1)/bzlib.h' '$(PREFIX)/$(TARGET)/include/'
204
f79850118439 new package: bzip2
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
34 endef