2012-05-02 12:36:59 +01:00
|
|
|
# This file is part of MXE.
|
|
|
|
# See index.html for further information.
|
2012-05-02 08:06:54 +01:00
|
|
|
|
|
|
|
PKG := apr-util
|
2013-06-29 13:50:38 +01:00
|
|
|
$(PKG)_IGNORE := 1.5%
|
2013-07-21 22:26:40 +01:00
|
|
|
$(PKG)_VERSION := 1.4.1
|
2013-04-22 09:55:31 +01:00
|
|
|
$(PKG)_CHECKSUM := ca4db631d186ea13526fd087aebc06799d4c5415
|
2012-05-02 08:06:54 +01:00
|
|
|
$(PKG)_SUBDIR := apr-util-$($(PKG)_VERSION)
|
|
|
|
$(PKG)_FILE := apr-util-$($(PKG)_VERSION).tar.gz
|
|
|
|
$(PKG)_URL := http://mirror.apache-kr.org/apr/$($(PKG)_FILE)
|
2012-05-02 10:36:28 +01:00
|
|
|
$(PKG)_URL_2 := http://archive.apache.org/dist/apr/$($(PKG)_FILE)
|
|
|
|
$(PKG)_DEPS := gcc apr expat libiconv
|
2012-05-02 08:06:54 +01:00
|
|
|
|
2012-05-02 10:36:28 +01:00
|
|
|
define $(PKG)_UPDATE
|
2012-05-08 16:16:05 +01:00
|
|
|
$(WGET) -q -O- 'http://apr.apache.org/download.cgi' | \
|
2012-05-02 10:36:28 +01:00
|
|
|
grep 'aprutil1.*best' |
|
|
|
|
$(SED) -n 's,.*APR-util \([0-9.]*\).*,\1,p'
|
|
|
|
endef
|
2012-05-02 08:06:54 +01:00
|
|
|
|
|
|
|
define $(PKG)_BUILD
|
|
|
|
cd '$(1)' && ./configure \
|
2014-08-18 01:25:10 +01:00
|
|
|
$(MXE_CONFIGURE_OPTS) \
|
2012-05-02 08:06:54 +01:00
|
|
|
--without-pgsql \
|
|
|
|
--without-sqlite2 \
|
|
|
|
--without-sqlite3 \
|
|
|
|
--with-apr='$(PREFIX)/$(TARGET)' \
|
2012-05-02 10:36:28 +01:00
|
|
|
CFLAGS=-D_WIN32_WINNT=0x0500
|
2014-08-18 01:25:10 +01:00
|
|
|
$(MAKE) -C '$(1)' -j 1 install bin_PROGRAMS= sbin_PROGRAMS= noinst_PROGRAMS= man_MANS= LDFLAGS=-no-undefined
|
2012-05-02 10:36:28 +01:00
|
|
|
ln -sf '$(PREFIX)/$(TARGET)/bin/apu-1-config' '$(PREFIX)/bin/$(TARGET)-apu-1-config'
|
2012-05-02 08:06:54 +01:00
|
|
|
endef
|