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
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
204
f79850118439 new package: bzip2
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
1 # bzip2
f79850118439 new package: bzip2
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
2
f79850118439 new package: bzip2
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
3 PKG := bzip2
f79850118439 new package: bzip2
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
4 $(PKG)_VERSION := 1.0.5
f79850118439 new package: bzip2
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
5 $(PKG)_SUBDIR := bzip2-$($(PKG)_VERSION)
f79850118439 new package: bzip2
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
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
f79850118439 new package: bzip2
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
8 $(PKG)_URL := http://www.bzip.org/$($(PKG)_VERSION)/$($(PKG)_FILE)
f79850118439 new package: bzip2
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
9 $(PKG)_DEPS := gcc
f79850118439 new package: bzip2
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
10
f79850118439 new package: bzip2
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
11 define $(PKG)_UPDATE
f79850118439 new package: bzip2
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
12 wget -q -O- 'http://www.bzip.org/downloads.html' | \
f79850118439 new package: bzip2
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
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
f79850118439 new package: bzip2
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
15 head -1
f79850118439 new package: bzip2
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
16 endef
f79850118439 new package: bzip2
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
17
f79850118439 new package: bzip2
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
18 define $(PKG)_BUILD
f79850118439 new package: bzip2
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
19 $(SED) 's,sys\\stat\.h,sys/stat.h,g' -i '$(1)/bzip2.c'
f79850118439 new package: bzip2
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
20 $(MAKE) -C '$(1)' -j '$(JOBS)' libbz2.a \
f79850118439 new package: bzip2
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
21 PREFIX='$(PREFIX)/$(TARGET)' \
f79850118439 new package: bzip2
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
22 CC='$(TARGET)-gcc' \
f79850118439 new package: bzip2
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
23 AR='$(TARGET)-ar' \
f79850118439 new package: bzip2
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
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
f79850118439 new package: bzip2
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
29 endef