Mercurial > mxe-octave
annotate src/log4cxx.mk @ 3013:bcc26ffe9a0f
use variable for --host and --build configure arguments
author | John W. Eaton <jwe@octave.org> |
---|---|
date | Sun, 02 Jun 2013 12:40:32 -0400 |
parents | 100e618349f7 |
children | b6c7244a2f66 |
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 := log4cxx |
c5d8bb3beb28
new packages: apr, apr-util, log4cxx
Daniel Stonier <d.stonier@gmail.com>
parents:
diff
changeset
|
5 $(PKG)_IGNORE := |
c5d8bb3beb28
new packages: apr, apr-util, log4cxx
Daniel Stonier <d.stonier@gmail.com>
parents:
diff
changeset
|
6 $(PKG)_CHECKSUM := d79c053e8ac90f66c5e873b712bb359fd42b648d |
c5d8bb3beb28
new packages: apr, apr-util, log4cxx
Daniel Stonier <d.stonier@gmail.com>
parents:
diff
changeset
|
7 $(PKG)_SUBDIR := apache-log4cxx-$($(PKG)_VERSION) |
c5d8bb3beb28
new packages: apr, apr-util, log4cxx
Daniel Stonier <d.stonier@gmail.com>
parents:
diff
changeset
|
8 $(PKG)_FILE := apache-log4cxx-$($(PKG)_VERSION).tar.gz |
2466
a7a203db74c5
packages apr, apr-util, log4cxx: various changes and add log4cxx test program
Tony Theodore <tonyt@logyst.com>
parents:
2465
diff
changeset
|
9 $(PKG)_URL := http://apache.naggo.co.kr/logging/log4cxx/0.10.0/$($(PKG)_FILE) |
2465
c5d8bb3beb28
new packages: apr, apr-util, log4cxx
Daniel Stonier <d.stonier@gmail.com>
parents:
diff
changeset
|
10 $(PKG)_URL_2 := http://apache.mirror.cdnetworks.com//logging/log4cxx/0.10.0/$($(PKG)_FILE) |
c5d8bb3beb28
new packages: apr, apr-util, log4cxx
Daniel Stonier <d.stonier@gmail.com>
parents:
diff
changeset
|
11 $(PKG)_DEPS := gcc apr-util |
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:
2508
diff
changeset
|
14 $(WGET) -q -O- 'http://logging.apache.org/log4cxx/download.html' | \ |
2466
a7a203db74c5
packages apr, apr-util, log4cxx: various changes and add log4cxx test program
Tony Theodore <tonyt@logyst.com>
parents:
2465
diff
changeset
|
15 $(SED) -n 's,.*log4cxx-\([0-9.]*\)\.tar.*,\1,p' | \ |
a7a203db74c5
packages apr, apr-util, log4cxx: various changes and add log4cxx test program
Tony Theodore <tonyt@logyst.com>
parents:
2465
diff
changeset
|
16 head -1 |
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:
2855
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) \ |
3012
100e618349f7
Improve handling of prefix directories by defining HOST_PREFIX and
John W. Eaton <jwe@octave.org>
parents:
2855
diff
changeset
|
24 --with-apr='$(HOST_PREFIX)' \ |
100e618349f7
Improve handling of prefix directories by defining HOST_PREFIX and
John W. Eaton <jwe@octave.org>
parents:
2855
diff
changeset
|
25 --with-apr-util='$(HOST_PREFIX)' \ |
2465
c5d8bb3beb28
new packages: apr, apr-util, log4cxx
Daniel Stonier <d.stonier@gmail.com>
parents:
diff
changeset
|
26 CFLAGS=-D_WIN32_WINNT=0x0500 \ |
2466
a7a203db74c5
packages apr, apr-util, log4cxx: various changes and add log4cxx test program
Tony Theodore <tonyt@logyst.com>
parents:
2465
diff
changeset
|
27 CXXFLAGS=-D_WIN32_WINNT=0x0500 |
2480
1efe881c8227
package log4cxx: disable parallel build and quote paths
Tony Theodore <tonyt@logyst.com>
parents:
2471
diff
changeset
|
28 $(MAKE) -C '$(1)' -j 1 install bin_PROGRAMS= sbin_PROGRAMS= noinst_PROGRAMS= man_MANS= |
3012
100e618349f7
Improve handling of prefix directories by defining HOST_PREFIX and
John W. Eaton <jwe@octave.org>
parents:
2855
diff
changeset
|
29 mkdir -p '$(HOST_PREFIX)/share/cmake/log4cxx' |
100e618349f7
Improve handling of prefix directories by defining HOST_PREFIX and
John W. Eaton <jwe@octave.org>
parents:
2855
diff
changeset
|
30 cp '$(1)/log4cxx-config.cmake' '$(HOST_PREFIX)/share/cmake/log4cxx/log4cxx-config.cmake' |
2466
a7a203db74c5
packages apr, apr-util, log4cxx: various changes and add log4cxx test program
Tony Theodore <tonyt@logyst.com>
parents:
2465
diff
changeset
|
31 |
a7a203db74c5
packages apr, apr-util, log4cxx: various changes and add log4cxx test program
Tony Theodore <tonyt@logyst.com>
parents:
2465
diff
changeset
|
32 '$(TARGET)-g++' \ |
a7a203db74c5
packages apr, apr-util, log4cxx: various changes and add log4cxx test program
Tony Theodore <tonyt@logyst.com>
parents:
2465
diff
changeset
|
33 -W -Wall -Werror -ansi -pedantic \ |
3012
100e618349f7
Improve handling of prefix directories by defining HOST_PREFIX and
John W. Eaton <jwe@octave.org>
parents:
2855
diff
changeset
|
34 '$(2).cpp' -o '$(HOST_PREFIX)/bin/test-log4cxx.exe' \ |
2508
97ebcf793d27
package log4cxx: fix reference to i686-pc-mingw32
Tony Theodore <tonyt@logyst.com>
parents:
2480
diff
changeset
|
35 `$(TARGET)-pkg-config liblog4cxx --libs` |
2465
c5d8bb3beb28
new packages: apr, apr-util, log4cxx
Daniel Stonier <d.stonier@gmail.com>
parents:
diff
changeset
|
36 endef |