diff options
author | Daniel Stonier <d.stonier@gmail.com> | 2012-05-02 07:06:54 (GMT) |
---|---|---|
committer | Tony Theodore <tonyt@logyst.com> | 2012-05-02 07:06:54 (GMT) |
commit | 1940a74145dbbe86243068d63312667dd0b46111 (patch) | |
tree | 2b8a5ddb6e905d3278a991b3d47635b963b175f1 /src/apr.mk | |
parent | ae7bd20d37d539dc35a2d9b549320321a1802264 (diff) | |
download | mxe-1940a74145dbbe86243068d63312667dd0b46111.zip mxe-1940a74145dbbe86243068d63312667dd0b46111.tar.gz mxe-1940a74145dbbe86243068d63312667dd0b46111.tar.bz2 |
new packages: apr, apr-util, log4cxx
Diffstat (limited to 'src/apr.mk')
-rw-r--r-- | src/apr.mk | 58 |
1 files changed, 58 insertions, 0 deletions
diff --git a/src/apr.mk b/src/apr.mk new file mode 100644 index 0000000..7f4a425 --- /dev/null +++ b/src/apr.mk @@ -0,0 +1,58 @@ +# This file is part of mingw-cross-env. +# 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. +# +# Type sizes +# +# Sometimes wine has an emulation environment which runs conf tests, +# unfortunately these return like a 4^M, not 4 which breaks all the +# configure script logic. +# ac_cv_sizeof_off_t=4 +# ac_cv_sizeof_pid_t=4 +# ac_cv_sizeof_size_t=4 +# ac_cv_sizeof_ssize_t=4 + +PKG := apr +$(PKG)_IGNORE := +$(PKG)_VERSION := 1.4.2 +$(PKG)_CHECKSUM := d48324efb0280749a5d7ccbb053d68545c568b4b +$(PKG)_SUBDIR := apr-$($(PKG)_VERSION) +$(PKG)_FILE := apr-$($(PKG)_VERSION).tar.gz +$(PKG)_WEBSITE := http://apr.apache.org/ +$(PKG)_URL := http://mirror.apache-kr.org/apr/$($(PKG)_FILE) +$(PKG)_URL_2 := http://apache.mirror.cdnetworks.com/apr/$($(PKG)_FILE) +$(PKG)_DEPS := gcc + +#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)_BUILD + cd '$(1)' && ./configure \ + --prefix='$(PREFIX)/$(TARGET)' \ + --host='$(TARGET)' \ + --disable-shared \ + --enable-static \ + ac_cv_sizeof_off_t=4 \ + ac_cv_sizeof_pid_t=4 \ + ac_cv_sizeof_size_t=4 \ + ac_cv_sizeof_ssize_t=4 \ + CFLAGS=-D_WIN32_WINNT=0x0500 \ + LDFLAGS=-no-undefined + $(MAKE) -C '$(1)' -j '$(JOBS)' install bin_PROGRAMS= sbin_PROGRAMS= noinst_PROGRAMS= man_MANS= +endef |