diff options
author | Tony Theodore <tonyt@logyst.com> | 2012-05-02 09:36:28 (GMT) |
---|---|---|
committer | Tony Theodore <tonyt@logyst.com> | 2012-05-02 09:36:28 (GMT) |
commit | fe2aea1a6d1b7ee05e3c18c4305c72f89f3843ec (patch) | |
tree | 29d041f38777fd6561b7bcd33312feebe4f64ec8 /src/log4cxx.mk | |
parent | 1940a74145dbbe86243068d63312667dd0b46111 (diff) | |
download | mxe-fe2aea1a6d1b7ee05e3c18c4305c72f89f3843ec.zip mxe-fe2aea1a6d1b7ee05e3c18c4305c72f89f3843ec.tar.gz mxe-fe2aea1a6d1b7ee05e3c18c4305c72f89f3843ec.tar.bz2 |
packages apr, apr-util, log4cxx: various changes and add log4cxx test program
Diffstat (limited to 'src/log4cxx.mk')
-rw-r--r-- | src/log4cxx.mk | 37 |
1 files changed, 13 insertions, 24 deletions
diff --git a/src/log4cxx.mk b/src/log4cxx.mk index b26bfaa..190759d 100644 --- a/src/log4cxx.mk +++ b/src/log4cxx.mk @@ -1,36 +1,20 @@ -# This file is part of mingw-cross-env. +# This file is part of mxe. # See doc/index.html for further information. -# Special flags -# -# -no-undefined -# -# Can't find any documentation on this option -# (--no-undefined is there, but this aint!) -# Anyway, it bombs when gcc tries to use it, -# but seems to help libtool at the final -# linking stage. If its not there, then -# mingw aborts with unfound symbol errors. -# That too is a problem, and maybe should -# resolved better than just by saying -# -no-undefined. - PKG := log4cxx $(PKG)_IGNORE := -$(PKG)_VERSION := 0.10.0 $(PKG)_CHECKSUM := d79c053e8ac90f66c5e873b712bb359fd42b648d $(PKG)_SUBDIR := apache-log4cxx-$($(PKG)_VERSION) $(PKG)_FILE := apache-log4cxx-$($(PKG)_VERSION).tar.gz -$(PKG)_WEBSITE := http://logging.apache.org/log4cxx/index.html -$(PKG)_URL := http://apache.naggo.co.kr//logging/log4cxx/0.10.0/$($(PKG)_FILE) +$(PKG)_URL := http://apache.naggo.co.kr/logging/log4cxx/0.10.0/$($(PKG)_FILE) $(PKG)_URL_2 := http://apache.mirror.cdnetworks.com//logging/log4cxx/0.10.0/$($(PKG)_FILE) $(PKG)_DEPS := gcc apr-util -#define $(PKG)_UPDATE -# wget -q -O- 'http://www.ijg.org/' | \ -# $(SED) -n 's,.*jpegsrc\.v\([0-9][^>]*\)\.tar.*,\1,p' | \ -# head -1 -#endef +define $(PKG)_UPDATE + wget -q -O- 'http://logging.apache.org/log4cxx/download.html' | \ + $(SED) -n 's,.*log4cxx-\([0-9.]*\)\.tar.*,\1,p' | \ + head -1 +endef define $(PKG)_BUILD cd '$(1)' && ./configure \ @@ -41,6 +25,11 @@ define $(PKG)_BUILD --with-apr='$(PREFIX)/$(TARGET)' \ --with-apr-util='$(PREFIX)/$(TARGET)' \ CFLAGS=-D_WIN32_WINNT=0x0500 \ - CXXFLAGS=-D_WIN32_WINNT=0x0500 + CXXFLAGS=-D_WIN32_WINNT=0x0500 $(MAKE) -C '$(1)' -j '$(JOBS)' install bin_PROGRAMS= sbin_PROGRAMS= noinst_PROGRAMS= man_MANS= + + '$(TARGET)-g++' \ + -W -Wall -Werror -ansi -pedantic \ + '$(2).cpp' -o '$(PREFIX)/$(TARGET)/bin/test-log4cxx.exe' \ + `i686-pc-mingw32-pkg-config liblog4cxx --libs` endef |