Mercurial > mxe-octave
view 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 |
line wrap: on
line source
# This file is part of mxe. # See doc/index.html for further information. PKG := log4cxx $(PKG)_IGNORE := $(PKG)_CHECKSUM := d79c053e8ac90f66c5e873b712bb359fd42b648d $(PKG)_SUBDIR := apache-log4cxx-$($(PKG)_VERSION) $(PKG)_FILE := apache-log4cxx-$($(PKG)_VERSION).tar.gz $(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://logging.apache.org/log4cxx/download.html' | \ $(SED) -n 's,.*log4cxx-\([0-9.]*\)\.tar.*,\1,p' | \ head -1 endef define $(PKG)_BUILD cd '$(1)' && ./configure \ --prefix='$(PREFIX)/$(TARGET)' \ --host='$(TARGET)' \ --disable-shared \ --enable-static \ --with-apr='$(PREFIX)/$(TARGET)' \ --with-apr-util='$(PREFIX)/$(TARGET)' \ CFLAGS=-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