annotate src/libarchive.mk @ 5534:372ea4c0afb2

Move of-ocs PKG_XXXX to inst dir and add break patch * src/of-ocs-3-break-fixes.patch, src/of-ocs-4-pkgadd-fixes.patch: new files * dist-files.mk: add ref to files
author John Donoghue <john.donoghue@ieee.org>
date Sun, 13 Sep 2020 08:15:14 -0400
parents 5875a3c3404c
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
2333
f653602a0500 Rebrand to new project name MXE
Volker Grabsch <vog@notjusthosting.com>
parents: 2245
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.
1017
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 PKG := libarchive
56ceea3973a4 new package: libarchive (by Tony Theodore)
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
5 $(PKG)_IGNORE :=
3480
13be64f9f16d move version info from index.html to src/*.mk files
John W. Eaton <jwe@octave.org>
parents: 3048
diff changeset
6 $(PKG)_VERSION := 3.0.3
2245
0ce613b66c8c update package libarchive
Mark Brand <mabrand@mabrand.nl>
parents: 1978
diff changeset
7 $(PKG)_CHECKSUM := b774e2675e5c1abafbd4d667402e8c3e72313944
1017
56ceea3973a4 new package: libarchive (by Tony Theodore)
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
8 $(PKG)_SUBDIR := $(PKG)-$($(PKG)_VERSION)
56ceea3973a4 new package: libarchive (by Tony Theodore)
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
9 $(PKG)_FILE := $(PKG)-$($(PKG)_VERSION).tar.gz
56ceea3973a4 new package: libarchive (by Tony Theodore)
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
10 $(PKG)_URL := http://libarchive.googlecode.com/files/$($(PKG)_FILE)
3048
5ef49fb3299d treat gcc and binutils as build tools
John W. Eaton <jwe@octave.org>
parents: 3031
diff changeset
11 $(PKG)_DEPS := bzip2 libiconv libxml2 openssl xz zlib
1017
56ceea3973a4 new package: libarchive (by Tony Theodore)
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
12
56ceea3973a4 new package: libarchive (by Tony Theodore)
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
13 define $(PKG)_UPDATE
4538
979f5b397e51 maint: update PKG_UPDATE targets
John D
parents: 3480
diff changeset
14 $(WGET) -q -O- 'https://www.libarchive.org/downloads/' | \
1017
56ceea3973a4 new package: libarchive (by Tony Theodore)
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
15 $(SED) -n 's,.*libarchive-\([0-9][^<]*\)\.tar.*,\1,p' | \
4538
979f5b397e51 maint: update PKG_UPDATE targets
John D
parents: 3480
diff changeset
16 $(SORT) -V | \
4580
5875a3c3404c update additional PKG_UPDATE rules
John Donoghue <john.donoghue@ieee.org>
parents: 4538
diff changeset
17 tail -1
1017
56ceea3973a4 new package: libarchive (by Tony Theodore)
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
18 endef
56ceea3973a4 new package: libarchive (by Tony Theodore)
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
19
56ceea3973a4 new package: libarchive (by Tony Theodore)
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
20 define $(PKG)_BUILD
1063
89a26644a624 workaround for static linking of package libarchive
Volker Grabsch <vog@notjusthosting.com>
parents: 1056
diff changeset
21 $(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
22 $(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
23 cd '$(1)' && ./configure \
3013
bcc26ffe9a0f use variable for --host and --build configure arguments
John W. Eaton <jwe@octave.org>
parents: 3012
diff changeset
24 $(HOST_AND_BUILD_CONFIGURE_OPTIONS) \
3012
100e618349f7 Improve handling of prefix directories by defining HOST_PREFIX and
John W. Eaton <jwe@octave.org>
parents: 2855
diff changeset
25 --prefix='$(HOST_PREFIX)' \
2855
47558e958113 Allow static/shared libraries to be configured in top-level Makefile.
John W. Eaton <jwe@octave.org>
parents: 2525
diff changeset
26 $(ENABLE_SHARED_OR_STATIC) \
1017
56ceea3973a4 new package: libarchive (by Tony Theodore)
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
27 --disable-bsdtar \
56ceea3973a4 new package: libarchive (by Tony Theodore)
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
28 --disable-bsdcpio \
3014
b6c7244a2f66 Use HOST_BINDIR, HOST_LIBDIR, and HOST_INCDIR instead of MXE_BINDIR, MXE_LIBDIR, and MXE_INCDIR. Attempt to use these variables consistently instead of using $(HOST_PREFIX)/bin, $(HOST_PREFIX)/lib, and $(HOST_PREFIX)/include
John W. Eaton <jwe@octave.org>
parents: 3013
diff changeset
29 XML2_CONFIG='$(HOST_BINDIR)'/xml2-config
1017
56ceea3973a4 new package: libarchive (by Tony Theodore)
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
30 $(MAKE) -C '$(1)' -j '$(JOBS)' man_MANS=
56ceea3973a4 new package: libarchive (by Tony Theodore)
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
31 $(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
32
3031
951da75fd09c improve handling of cross tool prefix
John W. Eaton <jwe@octave.org>
parents: 3014
diff changeset
33 '$(MXE_CC)' \
1064
ae7bf5ed7620 test program for package libarchive (by Natalie Tasman)
Volker Grabsch <vog@notjusthosting.com>
parents: 1063
diff changeset
34 -W -Wall -Werror -ansi -pedantic \
3014
b6c7244a2f66 Use HOST_BINDIR, HOST_LIBDIR, and HOST_INCDIR instead of MXE_BINDIR, MXE_LIBDIR, and MXE_INCDIR. Attempt to use these variables consistently instead of using $(HOST_PREFIX)/bin, $(HOST_PREFIX)/lib, and $(HOST_PREFIX)/include
John W. Eaton <jwe@octave.org>
parents: 3013
diff changeset
35 '$(2).c' -o '$(HOST_BINDIR)/test-libarchive.exe' \
3031
951da75fd09c improve handling of cross tool prefix
John W. Eaton <jwe@octave.org>
parents: 3014
diff changeset
36 `'$(MXE_PKG_CONFIG)' --libs-only-l libarchive`
1017
56ceea3973a4 new package: libarchive (by Tony Theodore)
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
37 endef