mxe/src/pcre.mk

41 lines
1.4 KiB
Makefile
Raw Normal View History

2012-03-28 14:46:58 +01:00
# This file is part of MXE.
2012-03-29 11:14:15 +01:00
# See index.html for further information.
2009-02-27 18:04:14 +00:00
PKG := pcre
$(PKG)_IGNORE :=
2016-06-18 10:46:25 +01:00
$(PKG)_VERSION := 8.39
$(PKG)_CHECKSUM := b858099f82483031ee02092711689e7245586ada49e534a06e678b8ea9549e8b
$(PKG)_SUBDIR := pcre-$($(PKG)_VERSION)
$(PKG)_FILE := pcre-$($(PKG)_VERSION).tar.bz2
$(PKG)_URL := http://$(SOURCEFORGE_MIRROR)/project/pcre/pcre/$($(PKG)_VERSION)/$($(PKG)_FILE)
2012-02-05 10:02:18 +00:00
$(PKG)_URL_2 := ftp://ftp.csx.cam.ac.uk/pub/software/programming/pcre/$($(PKG)_FILE)
$(PKG)_DEPS := gcc
2009-02-27 18:04:14 +00:00
define $(PKG)_UPDATE
$(WGET) -q -O- 'http://sourceforge.net/projects/pcre/files/pcre/' | \
$(SED) -n 's,.*/\([0-9][^"]*\)/".*,\1,p' | \
head -1
2009-02-27 18:04:14 +00:00
endef
define $(PKG)_BUILD_SHARED
2009-02-27 18:04:14 +00:00
cd '$(1)' && ./configure \
$(MXE_CONFIGURE_OPTS) \
2012-02-25 14:13:52 +00:00
--enable-pcre16 \
--enable-utf \
2009-02-27 18:04:14 +00:00
--enable-unicode-properties \
--enable-cpp \
2009-02-27 18:04:14 +00:00
--disable-pcregrep-libz \
--disable-pcregrep-libbz2 \
--disable-pcretest-libreadline
$(MAKE) -C '$(1)' -j '$(JOBS)' install $(MXE_DISABLE_PROGRAMS) dist_html_DATA= dist_doc_DATA=
rm -f '$(PREFIX)/$(TARGET)'/share/man/man1/pcre*.1
rm -f '$(PREFIX)/$(TARGET)'/share/man/man3/pcre*.3
ln -sf '$(PREFIX)/$(TARGET)/bin/pcre-config' '$(PREFIX)/bin/$(TARGET)-pcre-config'
2009-02-27 18:04:14 +00:00
endef
define $(PKG)_BUILD
$(SED) -i 's,__declspec(dllimport),,' '$(1)/pcre.h.in'
$(SED) -i 's,__declspec(dllimport),,' '$(1)/pcreposix.h'
$($(PKG)_BUILD_SHARED)
endef