Mercurial > mxe-octave
annotate src/bzip2.mk @ 285:08a32251156c
portability fix for Open Solaris: when "ginstall" exists, use that instead of "install"
author | Volker Grabsch <vog@notjusthosting.com> |
---|---|
date | Sat, 07 Mar 2009 08:52:50 +0100 |
parents | b94424e6c37f |
children | 85ffa9259036 |
rev | line source |
---|---|
204 | 1 # bzip2 |
2 | |
3 PKG := bzip2 | |
4 $(PKG)_VERSION := 1.0.5 | |
5 $(PKG)_SUBDIR := bzip2-$($(PKG)_VERSION) | |
6 $(PKG)_FILE := bzip2-$($(PKG)_VERSION).tar.gz | |
265
5bf9071e67b6
put all package's project websites into Make variables $($(PKG)_WEBSITE)
Volker Grabsch <vog@notjusthosting.com>
parents:
204
diff
changeset
|
7 $(PKG)_WEBSITE := http://www.bzip.org/ |
204 | 8 $(PKG)_URL := http://www.bzip.org/$($(PKG)_VERSION)/$($(PKG)_FILE) |
9 $(PKG)_DEPS := gcc | |
10 | |
11 define $(PKG)_UPDATE | |
12 wget -q -O- 'http://www.bzip.org/downloads.html' | \ | |
13 grep 'bzip2-' | \ | |
266
b94424e6c37f
improved the regexes for package version recognition
Volker Grabsch <vog@notjusthosting.com>
parents:
265
diff
changeset
|
14 $(SED) -n 's,.*bzip2-\([0-9][^>]*\)\.tar.*,\1,p' | \ |
204 | 15 head -1 |
16 endef | |
17 | |
18 define $(PKG)_BUILD | |
19 $(SED) 's,sys\\stat\.h,sys/stat.h,g' -i '$(1)/bzip2.c' | |
20 $(MAKE) -C '$(1)' -j '$(JOBS)' libbz2.a \ | |
21 PREFIX='$(PREFIX)/$(TARGET)' \ | |
22 CC='$(TARGET)-gcc' \ | |
23 AR='$(TARGET)-ar' \ | |
24 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
|
25 $(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
|
26 $(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
|
27 $(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
|
28 $(INSTALL) -m664 '$(1)/bzlib.h' '$(PREFIX)/$(TARGET)/include/' |
204 | 29 endef |