Mercurial > mxe-octave
annotate src/apr-util.mk @ 3216:11f8ec654cd4
Avoid copying or linking files that are the same when doing native build
Prefer $(INSTALL) over $(LN_SF).
author | John W. Eaton <jwe@octave.org> |
---|---|
date | Wed, 07 Aug 2013 00:41:50 -0400 |
parents | 5ef49fb3299d |
children | 13be64f9f16d |
rev | line source |
---|---|
2469
51a4ed33302d
various packages: fix references to mingw-cross-env and doc/index.html
Tony Theodore <tonyt@logyst.com>
parents:
2466
diff
changeset
|
1 # This file is part of MXE. |
51a4ed33302d
various packages: fix references to mingw-cross-env and doc/index.html
Tony Theodore <tonyt@logyst.com>
parents:
2466
diff
changeset
|
2 # See index.html for further information. |
2465
c5d8bb3beb28
new packages: apr, apr-util, log4cxx
Daniel Stonier <d.stonier@gmail.com>
parents:
diff
changeset
|
3 |
c5d8bb3beb28
new packages: apr, apr-util, log4cxx
Daniel Stonier <d.stonier@gmail.com>
parents:
diff
changeset
|
4 PKG := apr-util |
2466
a7a203db74c5
packages apr, apr-util, log4cxx: various changes and add log4cxx test program
Tony Theodore <tonyt@logyst.com>
parents:
2465
diff
changeset
|
5 $(PKG)_IGNORE := 1.4.1 |
2465
c5d8bb3beb28
new packages: apr, apr-util, log4cxx
Daniel Stonier <d.stonier@gmail.com>
parents:
diff
changeset
|
6 $(PKG)_CHECKSUM := f5aaf15542209fee479679299dc4cb1ac0924a59 |
c5d8bb3beb28
new packages: apr, apr-util, log4cxx
Daniel Stonier <d.stonier@gmail.com>
parents:
diff
changeset
|
7 $(PKG)_SUBDIR := apr-util-$($(PKG)_VERSION) |
c5d8bb3beb28
new packages: apr, apr-util, log4cxx
Daniel Stonier <d.stonier@gmail.com>
parents:
diff
changeset
|
8 $(PKG)_FILE := apr-util-$($(PKG)_VERSION).tar.gz |
c5d8bb3beb28
new packages: apr, apr-util, log4cxx
Daniel Stonier <d.stonier@gmail.com>
parents:
diff
changeset
|
9 $(PKG)_URL := http://mirror.apache-kr.org/apr/$($(PKG)_FILE) |
2466
a7a203db74c5
packages apr, apr-util, log4cxx: various changes and add log4cxx test program
Tony Theodore <tonyt@logyst.com>
parents:
2465
diff
changeset
|
10 $(PKG)_URL_2 := http://archive.apache.org/dist/apr/$($(PKG)_FILE) |
3048
5ef49fb3299d
treat gcc and binutils as build tools
John W. Eaton <jwe@octave.org>
parents:
3031
diff
changeset
|
11 $(PKG)_DEPS := apr expat libiconv |
2465
c5d8bb3beb28
new packages: apr, apr-util, log4cxx
Daniel Stonier <d.stonier@gmail.com>
parents:
diff
changeset
|
12 |
2466
a7a203db74c5
packages apr, apr-util, log4cxx: various changes and add log4cxx test program
Tony Theodore <tonyt@logyst.com>
parents:
2465
diff
changeset
|
13 define $(PKG)_UPDATE |
2525
4d0f3a9da57e
all packages: use $(WGET) portability variable
Tony Theodore <tonyt@logyst.com>
parents:
2469
diff
changeset
|
14 $(WGET) -q -O- 'http://apr.apache.org/download.cgi' | \ |
2466
a7a203db74c5
packages apr, apr-util, log4cxx: various changes and add log4cxx test program
Tony Theodore <tonyt@logyst.com>
parents:
2465
diff
changeset
|
15 grep 'aprutil1.*best' | |
a7a203db74c5
packages apr, apr-util, log4cxx: various changes and add log4cxx test program
Tony Theodore <tonyt@logyst.com>
parents:
2465
diff
changeset
|
16 $(SED) -n 's,.*APR-util \([0-9.]*\).*,\1,p' |
a7a203db74c5
packages apr, apr-util, log4cxx: various changes and add log4cxx test program
Tony Theodore <tonyt@logyst.com>
parents:
2465
diff
changeset
|
17 endef |
2465
c5d8bb3beb28
new packages: apr, apr-util, log4cxx
Daniel Stonier <d.stonier@gmail.com>
parents:
diff
changeset
|
18 |
c5d8bb3beb28
new packages: apr, apr-util, log4cxx
Daniel Stonier <d.stonier@gmail.com>
parents:
diff
changeset
|
19 define $(PKG)_BUILD |
c5d8bb3beb28
new packages: apr, apr-util, log4cxx
Daniel Stonier <d.stonier@gmail.com>
parents:
diff
changeset
|
20 cd '$(1)' && ./configure \ |
3012
100e618349f7
Improve handling of prefix directories by defining HOST_PREFIX and
John W. Eaton <jwe@octave.org>
parents:
3006
diff
changeset
|
21 --prefix='$(HOST_PREFIX)' \ |
3013
bcc26ffe9a0f
use variable for --host and --build configure arguments
John W. Eaton <jwe@octave.org>
parents:
3012
diff
changeset
|
22 $(HOST_AND_BUILD_CONFIGURE_OPTIONS) \ |
2855
47558e958113
Allow static/shared libraries to be configured in top-level Makefile.
John W. Eaton <jwe@octave.org>
parents:
2525
diff
changeset
|
23 $(ENABLE_SHARED_OR_STATIC) \ |
2465
c5d8bb3beb28
new packages: apr, apr-util, log4cxx
Daniel Stonier <d.stonier@gmail.com>
parents:
diff
changeset
|
24 --without-pgsql \ |
c5d8bb3beb28
new packages: apr, apr-util, log4cxx
Daniel Stonier <d.stonier@gmail.com>
parents:
diff
changeset
|
25 --without-sqlite2 \ |
c5d8bb3beb28
new packages: apr, apr-util, log4cxx
Daniel Stonier <d.stonier@gmail.com>
parents:
diff
changeset
|
26 --without-sqlite3 \ |
3012
100e618349f7
Improve handling of prefix directories by defining HOST_PREFIX and
John W. Eaton <jwe@octave.org>
parents:
3006
diff
changeset
|
27 --with-apr='$(HOST_PREFIX)' \ |
2466
a7a203db74c5
packages apr, apr-util, log4cxx: various changes and add log4cxx test program
Tony Theodore <tonyt@logyst.com>
parents:
2465
diff
changeset
|
28 CFLAGS=-D_WIN32_WINNT=0x0500 |
a7a203db74c5
packages apr, apr-util, log4cxx: various changes and add log4cxx test program
Tony Theodore <tonyt@logyst.com>
parents:
2465
diff
changeset
|
29 $(MAKE) -C '$(1)' -j 1 install bin_PROGRAMS= sbin_PROGRAMS= noinst_PROGRAMS= man_MANS= |
3216
11f8ec654cd4
Avoid copying or linking files that are the same when doing native build
John W. Eaton <jwe@octave.org>
parents:
3048
diff
changeset
|
30 if [ $(MXE_NATIVE_BUILD) = no ]; then \ |
11f8ec654cd4
Avoid copying or linking files that are the same when doing native build
John W. Eaton <jwe@octave.org>
parents:
3048
diff
changeset
|
31 $(INSTALL) -m755 '$(HOST_BINDIR)/apu-1-config' '$(BUILD_TOOLS_PREFIX)/bin/$(MXE_TOOL_PREFIX)apu-1-config'; \ |
11f8ec654cd4
Avoid copying or linking files that are the same when doing native build
John W. Eaton <jwe@octave.org>
parents:
3048
diff
changeset
|
32 fi |
2465
c5d8bb3beb28
new packages: apr, apr-util, log4cxx
Daniel Stonier <d.stonier@gmail.com>
parents:
diff
changeset
|
33 endef |