blob: d55e01b6882831ff6ed8632b6bb1b1935be2ce0e (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
|
# This file is part of MXE.
# See index.html for further information.
PKG := apr-util
$(PKG)_IGNORE :=
$(PKG)_VERSION := 1.5.4
$(PKG)_CHECKSUM := 72cc3ac693b52fb831063d5c0de18723bc8e0095
$(PKG)_SUBDIR := apr-util-$($(PKG)_VERSION)
$(PKG)_FILE := apr-util-$($(PKG)_VERSION).tar.gz
$(PKG)_URL := http://archive.apache.org/dist/apr/$($(PKG)_FILE)
$(PKG)_URL_2 := http://mirror.apache-kr.org/apr/$($(PKG)_FILE)
$(PKG)_DEPS := gcc apr expat libiconv
define $(PKG)_UPDATE
$(WGET) -q -O- 'http://apr.apache.org/download.cgi' | \
grep 'aprutil1.*best' |
$(SED) -n 's,.*APR-util \([0-9.]*\).*,\1,p'
endef
define $(PKG)_BUILD
cd '$(1)' && ./configure \
$(MXE_CONFIGURE_OPTS) \
--without-pgsql \
--without-sqlite2 \
--without-sqlite3 \
--without-freetds \
--with-apr='$(PREFIX)/$(TARGET)' \
CFLAGS=-D_WIN32_WINNT=0x0500
$(MAKE) -C '$(1)' -j '$(JOBS)' $(MXE_DISABLE_CRUFT) LDFLAGS=-no-undefined
$(MAKE) -C '$(1)' -j 1 install $(MXE_DISABLE_CRUFT)
$(if $(BUILD_STATIC), \
$(SED) -i '1i #define APU_DECLARE_STATIC 1' \
'$(PREFIX)/$(TARGET)/include/apr-1/apu.h')
ln -sf '$(PREFIX)/$(TARGET)/bin/apu-1-config' '$(PREFIX)/bin/$(TARGET)-apu-1-config'
endef
|