Mercurial > mxe-octave
annotate src/libarchive.mk @ 1064:ae7bf5ed7620
test program for package libarchive (by Natalie Tasman)
author | Volker Grabsch <vog@notjusthosting.com> |
---|---|
date | Tue, 15 Jun 2010 18:36:52 +0200 |
parents | 89a26644a624 |
children | e878941387e3 |
rev | line source |
---|---|
1017
56ceea3973a4
new package: libarchive (by Tony Theodore)
Volker Grabsch <vog@notjusthosting.com>
parents:
diff
changeset
|
1 # This file is part of mingw-cross-env. |
56ceea3973a4
new package: libarchive (by Tony Theodore)
Volker Grabsch <vog@notjusthosting.com>
parents:
diff
changeset
|
2 # See doc/index.html for further information. |
56ceea3973a4
new package: libarchive (by Tony Theodore)
Volker Grabsch <vog@notjusthosting.com>
parents:
diff
changeset
|
3 |
56ceea3973a4
new package: libarchive (by Tony Theodore)
Volker Grabsch <vog@notjusthosting.com>
parents:
diff
changeset
|
4 # Libarchive |
56ceea3973a4
new package: libarchive (by Tony Theodore)
Volker Grabsch <vog@notjusthosting.com>
parents:
diff
changeset
|
5 PKG := libarchive |
56ceea3973a4
new package: libarchive (by Tony Theodore)
Volker Grabsch <vog@notjusthosting.com>
parents:
diff
changeset
|
6 $(PKG)_IGNORE := |
56ceea3973a4
new package: libarchive (by Tony Theodore)
Volker Grabsch <vog@notjusthosting.com>
parents:
diff
changeset
|
7 $(PKG)_VERSION := 2.8.3 |
56ceea3973a4
new package: libarchive (by Tony Theodore)
Volker Grabsch <vog@notjusthosting.com>
parents:
diff
changeset
|
8 $(PKG)_CHECKSUM := e0634a326cce2b46c8dc637de84d7556257e59e0 |
56ceea3973a4
new package: libarchive (by Tony Theodore)
Volker Grabsch <vog@notjusthosting.com>
parents:
diff
changeset
|
9 $(PKG)_SUBDIR := $(PKG)-$($(PKG)_VERSION) |
56ceea3973a4
new package: libarchive (by Tony Theodore)
Volker Grabsch <vog@notjusthosting.com>
parents:
diff
changeset
|
10 $(PKG)_FILE := $(PKG)-$($(PKG)_VERSION).tar.gz |
56ceea3973a4
new package: libarchive (by Tony Theodore)
Volker Grabsch <vog@notjusthosting.com>
parents:
diff
changeset
|
11 $(PKG)_WEBSITE := http://code.google.com/p/libarchive/ |
56ceea3973a4
new package: libarchive (by Tony Theodore)
Volker Grabsch <vog@notjusthosting.com>
parents:
diff
changeset
|
12 $(PKG)_URL := http://libarchive.googlecode.com/files/$($(PKG)_FILE) |
56ceea3973a4
new package: libarchive (by Tony Theodore)
Volker Grabsch <vog@notjusthosting.com>
parents:
diff
changeset
|
13 $(PKG)_DEPS := gcc bzip2 libxml2 openssl xz zlib |
56ceea3973a4
new package: libarchive (by Tony Theodore)
Volker Grabsch <vog@notjusthosting.com>
parents:
diff
changeset
|
14 |
56ceea3973a4
new package: libarchive (by Tony Theodore)
Volker Grabsch <vog@notjusthosting.com>
parents:
diff
changeset
|
15 define $(PKG)_UPDATE |
56ceea3973a4
new package: libarchive (by Tony Theodore)
Volker Grabsch <vog@notjusthosting.com>
parents:
diff
changeset
|
16 wget -q -O- 'http://code.google.com/p/libarchive/downloads/list?sort=-uploaded' | \ |
56ceea3973a4
new package: libarchive (by Tony Theodore)
Volker Grabsch <vog@notjusthosting.com>
parents:
diff
changeset
|
17 $(SED) -n 's,.*libarchive-\([0-9][^<]*\)\.tar.*,\1,p' | \ |
56ceea3973a4
new package: libarchive (by Tony Theodore)
Volker Grabsch <vog@notjusthosting.com>
parents:
diff
changeset
|
18 head -1 |
56ceea3973a4
new package: libarchive (by Tony Theodore)
Volker Grabsch <vog@notjusthosting.com>
parents:
diff
changeset
|
19 endef |
56ceea3973a4
new package: libarchive (by Tony Theodore)
Volker Grabsch <vog@notjusthosting.com>
parents:
diff
changeset
|
20 |
56ceea3973a4
new package: libarchive (by Tony Theodore)
Volker Grabsch <vog@notjusthosting.com>
parents:
diff
changeset
|
21 define $(PKG)_BUILD |
1063
89a26644a624
workaround for static linking of package libarchive
Volker Grabsch <vog@notjusthosting.com>
parents:
1056
diff
changeset
|
22 $(SED) -i '1i#ifndef LIBARCHIVE_STATIC\n#define LIBARCHIVE_STATIC\n#endif' -i '$(1)/libarchive/archive.h' |
89a26644a624
workaround for static linking of package libarchive
Volker Grabsch <vog@notjusthosting.com>
parents:
1056
diff
changeset
|
23 $(SED) -i '1i#ifndef LIBARCHIVE_STATIC\n#define LIBARCHIVE_STATIC\n#endif' -i '$(1)/libarchive/archive_entry.h' |
1017
56ceea3973a4
new package: libarchive (by Tony Theodore)
Volker Grabsch <vog@notjusthosting.com>
parents:
diff
changeset
|
24 cd '$(1)' && ./configure \ |
56ceea3973a4
new package: libarchive (by Tony Theodore)
Volker Grabsch <vog@notjusthosting.com>
parents:
diff
changeset
|
25 --host='$(TARGET)' \ |
56ceea3973a4
new package: libarchive (by Tony Theodore)
Volker Grabsch <vog@notjusthosting.com>
parents:
diff
changeset
|
26 --prefix='$(PREFIX)/$(TARGET)' \ |
56ceea3973a4
new package: libarchive (by Tony Theodore)
Volker Grabsch <vog@notjusthosting.com>
parents:
diff
changeset
|
27 --disable-shared \ |
56ceea3973a4
new package: libarchive (by Tony Theodore)
Volker Grabsch <vog@notjusthosting.com>
parents:
diff
changeset
|
28 --disable-bsdtar \ |
56ceea3973a4
new package: libarchive (by Tony Theodore)
Volker Grabsch <vog@notjusthosting.com>
parents:
diff
changeset
|
29 --disable-bsdcpio \ |
56ceea3973a4
new package: libarchive (by Tony Theodore)
Volker Grabsch <vog@notjusthosting.com>
parents:
diff
changeset
|
30 XML2_CONFIG='$(PREFIX)/$(TARGET)'/bin/xml2-config |
56ceea3973a4
new package: libarchive (by Tony Theodore)
Volker Grabsch <vog@notjusthosting.com>
parents:
diff
changeset
|
31 $(MAKE) -C '$(1)' -j '$(JOBS)' man_MANS= |
56ceea3973a4
new package: libarchive (by Tony Theodore)
Volker Grabsch <vog@notjusthosting.com>
parents:
diff
changeset
|
32 $(MAKE) -C '$(1)' -j 1 install man_MANS= |
1064
ae7bf5ed7620
test program for package libarchive (by Natalie Tasman)
Volker Grabsch <vog@notjusthosting.com>
parents:
1063
diff
changeset
|
33 |
ae7bf5ed7620
test program for package libarchive (by Natalie Tasman)
Volker Grabsch <vog@notjusthosting.com>
parents:
1063
diff
changeset
|
34 '$(TARGET)-gcc' \ |
ae7bf5ed7620
test program for package libarchive (by Natalie Tasman)
Volker Grabsch <vog@notjusthosting.com>
parents:
1063
diff
changeset
|
35 -W -Wall -Werror -ansi -pedantic \ |
ae7bf5ed7620
test program for package libarchive (by Natalie Tasman)
Volker Grabsch <vog@notjusthosting.com>
parents:
1063
diff
changeset
|
36 '$(2).c' -o '$(PREFIX)/$(TARGET)/bin/test-libarchive.exe' \ |
ae7bf5ed7620
test program for package libarchive (by Natalie Tasman)
Volker Grabsch <vog@notjusthosting.com>
parents:
1063
diff
changeset
|
37 -larchive -lz |
1017
56ceea3973a4
new package: libarchive (by Tony Theodore)
Volker Grabsch <vog@notjusthosting.com>
parents:
diff
changeset
|
38 endef |