Mercurial > mxe-octave
comparison src/log4cxx.mk @ 2466:a7a203db74c5
packages apr, apr-util, log4cxx: various changes and add log4cxx test program
author | Tony Theodore <tonyt@logyst.com> |
---|---|
date | Wed, 02 May 2012 19:36:28 +1000 |
parents | c5d8bb3beb28 |
children | 51a4ed33302d |
comparison
equal
deleted
inserted
replaced
2465:c5d8bb3beb28 | 2466:a7a203db74c5 |
---|---|
1 # This file is part of mingw-cross-env. | 1 # This file is part of mxe. |
2 # See doc/index.html for further information. | 2 # See doc/index.html for further information. |
3 | |
4 # Special flags | |
5 # | |
6 # -no-undefined | |
7 # | |
8 # Can't find any documentation on this option | |
9 # (--no-undefined is there, but this aint!) | |
10 # Anyway, it bombs when gcc tries to use it, | |
11 # but seems to help libtool at the final | |
12 # linking stage. If its not there, then | |
13 # mingw aborts with unfound symbol errors. | |
14 # That too is a problem, and maybe should | |
15 # resolved better than just by saying | |
16 # -no-undefined. | |
17 | 3 |
18 PKG := log4cxx | 4 PKG := log4cxx |
19 $(PKG)_IGNORE := | 5 $(PKG)_IGNORE := |
20 $(PKG)_VERSION := 0.10.0 | |
21 $(PKG)_CHECKSUM := d79c053e8ac90f66c5e873b712bb359fd42b648d | 6 $(PKG)_CHECKSUM := d79c053e8ac90f66c5e873b712bb359fd42b648d |
22 $(PKG)_SUBDIR := apache-log4cxx-$($(PKG)_VERSION) | 7 $(PKG)_SUBDIR := apache-log4cxx-$($(PKG)_VERSION) |
23 $(PKG)_FILE := apache-log4cxx-$($(PKG)_VERSION).tar.gz | 8 $(PKG)_FILE := apache-log4cxx-$($(PKG)_VERSION).tar.gz |
24 $(PKG)_WEBSITE := http://logging.apache.org/log4cxx/index.html | 9 $(PKG)_URL := http://apache.naggo.co.kr/logging/log4cxx/0.10.0/$($(PKG)_FILE) |
25 $(PKG)_URL := http://apache.naggo.co.kr//logging/log4cxx/0.10.0/$($(PKG)_FILE) | |
26 $(PKG)_URL_2 := http://apache.mirror.cdnetworks.com//logging/log4cxx/0.10.0/$($(PKG)_FILE) | 10 $(PKG)_URL_2 := http://apache.mirror.cdnetworks.com//logging/log4cxx/0.10.0/$($(PKG)_FILE) |
27 $(PKG)_DEPS := gcc apr-util | 11 $(PKG)_DEPS := gcc apr-util |
28 | 12 |
29 #define $(PKG)_UPDATE | 13 define $(PKG)_UPDATE |
30 # wget -q -O- 'http://www.ijg.org/' | \ | 14 wget -q -O- 'http://logging.apache.org/log4cxx/download.html' | \ |
31 # $(SED) -n 's,.*jpegsrc\.v\([0-9][^>]*\)\.tar.*,\1,p' | \ | 15 $(SED) -n 's,.*log4cxx-\([0-9.]*\)\.tar.*,\1,p' | \ |
32 # head -1 | 16 head -1 |
33 #endef | 17 endef |
34 | 18 |
35 define $(PKG)_BUILD | 19 define $(PKG)_BUILD |
36 cd '$(1)' && ./configure \ | 20 cd '$(1)' && ./configure \ |
37 --prefix='$(PREFIX)/$(TARGET)' \ | 21 --prefix='$(PREFIX)/$(TARGET)' \ |
38 --host='$(TARGET)' \ | 22 --host='$(TARGET)' \ |
39 --disable-shared \ | 23 --disable-shared \ |
40 --enable-static \ | 24 --enable-static \ |
41 --with-apr='$(PREFIX)/$(TARGET)' \ | 25 --with-apr='$(PREFIX)/$(TARGET)' \ |
42 --with-apr-util='$(PREFIX)/$(TARGET)' \ | 26 --with-apr-util='$(PREFIX)/$(TARGET)' \ |
43 CFLAGS=-D_WIN32_WINNT=0x0500 \ | 27 CFLAGS=-D_WIN32_WINNT=0x0500 \ |
44 CXXFLAGS=-D_WIN32_WINNT=0x0500 | 28 CXXFLAGS=-D_WIN32_WINNT=0x0500 |
45 $(MAKE) -C '$(1)' -j '$(JOBS)' install bin_PROGRAMS= sbin_PROGRAMS= noinst_PROGRAMS= man_MANS= | 29 $(MAKE) -C '$(1)' -j '$(JOBS)' install bin_PROGRAMS= sbin_PROGRAMS= noinst_PROGRAMS= man_MANS= |
30 | |
31 '$(TARGET)-g++' \ | |
32 -W -Wall -Werror -ansi -pedantic \ | |
33 '$(2).cpp' -o '$(PREFIX)/$(TARGET)/bin/test-log4cxx.exe' \ | |
34 `i686-pc-mingw32-pkg-config liblog4cxx --libs` | |
46 endef | 35 endef |