comparison src/libarchive.mk @ 2245:0ce613b66c8c

update package libarchive
author Mark Brand <mabrand@mabrand.nl>
date Tue, 14 Feb 2012 12:47:28 +0100
parents 718a1a5818ee
children f653602a0500
comparison
equal deleted inserted replaced
2244:f3a2d7c8ed0c 2245:0ce613b66c8c
2 # See doc/index.html for further information. 2 # See doc/index.html for further information.
3 3
4 # Libarchive 4 # Libarchive
5 PKG := libarchive 5 PKG := libarchive
6 $(PKG)_IGNORE := 6 $(PKG)_IGNORE :=
7 $(PKG)_VERSION := 2.8.5 7 $(PKG)_VERSION := 3.0.3
8 $(PKG)_CHECKSUM := e48a3b50de84b1d747f5af9ca5ba90eb6d3a4a78 8 $(PKG)_CHECKSUM := b774e2675e5c1abafbd4d667402e8c3e72313944
9 $(PKG)_SUBDIR := $(PKG)-$($(PKG)_VERSION) 9 $(PKG)_SUBDIR := $(PKG)-$($(PKG)_VERSION)
10 $(PKG)_FILE := $(PKG)-$($(PKG)_VERSION).tar.gz 10 $(PKG)_FILE := $(PKG)-$($(PKG)_VERSION).tar.gz
11 $(PKG)_WEBSITE := http://code.google.com/p/libarchive/ 11 $(PKG)_WEBSITE := http://code.google.com/p/libarchive/
12 $(PKG)_URL := http://libarchive.googlecode.com/files/$($(PKG)_FILE) 12 $(PKG)_URL := http://libarchive.googlecode.com/files/$($(PKG)_FILE)
13 $(PKG)_DEPS := gcc bzip2 libxml2 openssl xz zlib 13 $(PKG)_DEPS := gcc bzip2 libiconv libxml2 openssl xz zlib
14 14
15 define $(PKG)_UPDATE 15 define $(PKG)_UPDATE
16 wget -q -O- 'http://code.google.com/p/libarchive/downloads/list?sort=-uploaded' | \ 16 wget -q -O- 'http://code.google.com/p/libarchive/downloads/list?sort=-uploaded' | \
17 $(SED) -n 's,.*libarchive-\([0-9][^<]*\)\.tar.*,\1,p' | \ 17 $(SED) -n 's,.*libarchive-\([0-9][^<]*\)\.tar.*,\1,p' | \
18 head -1 18 head -1
32 $(MAKE) -C '$(1)' -j 1 install man_MANS= 32 $(MAKE) -C '$(1)' -j 1 install man_MANS=
33 33
34 '$(TARGET)-gcc' \ 34 '$(TARGET)-gcc' \
35 -W -Wall -Werror -ansi -pedantic \ 35 -W -Wall -Werror -ansi -pedantic \
36 '$(2).c' -o '$(PREFIX)/$(TARGET)/bin/test-libarchive.exe' \ 36 '$(2).c' -o '$(PREFIX)/$(TARGET)/bin/test-libarchive.exe' \
37 -larchive -lz 37 `'$(TARGET)-pkg-config' --libs-only-l libarchive`
38 endef 38 endef