Mercurial > mxe-octave
annotate src/bzip2.mk @ 2525:4d0f3a9da57e
all packages: use $(WGET) portability variable
author | Tony Theodore <tonyt@logyst.com> |
---|---|
date | Wed, 09 May 2012 01:16:05 +1000 |
parents | b5321bdec505 |
children | 426bca8b039e |
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) |
85ffa9259036
validate downloads using SHA-1 checksums
Volker Grabsch <vog@notjusthosting.com>
parents:
285
diff
changeset
|
10 $(PKG)_DEPS := gcc |
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 | |
19 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
|
20 $(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
|
21 $(SED) -i 's,WINAPI,,g' '$(1)/bzlib.h' |
204 | 22 $(MAKE) -C '$(1)' -j '$(JOBS)' libbz2.a \ |
23 PREFIX='$(PREFIX)/$(TARGET)' \ | |
24 CC='$(TARGET)-gcc' \ | |
25 AR='$(TARGET)-ar' \ | |
26 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
|
27 $(INSTALL) -d '$(PREFIX)/$(TARGET)/lib' |
1390
7fae546007a1
fix dummy permissions (664 -> 644)
Volker Grabsch <vog@notjusthosting.com>
parents:
1170
diff
changeset
|
28 $(INSTALL) -m644 '$(1)/libbz2.a' '$(PREFIX)/$(TARGET)/lib/' |
285
08a32251156c
portability fix for Open Solaris: when "ginstall" exists, use that instead of "install"
Volker Grabsch <vog@notjusthosting.com>
parents:
266
diff
changeset
|
29 $(INSTALL) -d '$(PREFIX)/$(TARGET)/include' |
1390
7fae546007a1
fix dummy permissions (664 -> 644)
Volker Grabsch <vog@notjusthosting.com>
parents:
1170
diff
changeset
|
30 $(INSTALL) -m644 '$(1)/bzlib.h' '$(PREFIX)/$(TARGET)/include/' |
204 | 31 endef |