mxe/src/apr.mk

36 lines
1.2 KiB
Makefile
Raw Normal View History

# This file is part of MXE.
# See index.html for further information.
2012-05-02 08:06:54 +01:00
PKG := apr
$(PKG)_IGNORE :=
2015-06-19 03:09:45 +01:00
$(PKG)_VERSION := 1.5.2
$(PKG)_CHECKSUM := 84af18355b65bb0d047be03ec7d659c746d6dbdb
2012-05-02 08:06:54 +01:00
$(PKG)_SUBDIR := apr-$($(PKG)_VERSION)
$(PKG)_FILE := apr-$($(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)
2012-05-02 08:06:54 +01:00
$(PKG)_DEPS := gcc
define $(PKG)_UPDATE
$(WGET) -q -O- 'http://apr.apache.org/download.cgi' | \
grep 'apr1.*best' |
$(SED) -n 's,.*APR \([0-9.]*\).*,\1,p'
endef
2012-05-02 08:06:54 +01:00
define $(PKG)_BUILD
cp -Rp '$(1)' '$(1).native'
cd '$(1).native' && ./configure
2014-11-30 10:02:46 +00:00
cd '$(1).native' && $(MAKE) tools/gen_test_char \
CFLAGS='-DNEED_ENHANCED_ESCAPES'
2012-05-02 08:06:54 +01:00
cd '$(1)' && ./configure \
$(MXE_CONFIGURE_OPTS) \
2012-05-02 08:06:54 +01:00
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
$(MAKE) -C '$(1)' -j 1 install GEN_TEST_CHAR='$(1).native/tools/gen_test_char'
ln -sf '$(PREFIX)/$(TARGET)/bin/apr-1-config' '$(PREFIX)/bin/$(TARGET)-apr-1-config'
2012-05-02 08:06:54 +01:00
endef