Mercurial > mxe-octave
annotate src/pcre.mk @ 408:413750a629be
improved version recognition for sourceforge packages
author | Volker Grabsch <vog@notjusthosting.com> |
---|---|
date | Mon, 10 Aug 2009 13:24:12 +0200 |
parents | 15c74c7af78c |
children | d2a6561bcb6d |
rev | line source |
---|---|
245 | 1 # PCRE |
2 | |
306
85ffa9259036
validate downloads using SHA-1 checksums
Volker Grabsch <vog@notjusthosting.com>
parents:
265
diff
changeset
|
3 PKG := pcre |
320
001f5e9b8374
update version of packages gnutls, pcre, pdflib_lite and pixman
Volker Grabsch <vog@notjusthosting.com>
parents:
306
diff
changeset
|
4 $(PKG)_VERSION := 7.9 |
001f5e9b8374
update version of packages gnutls, pcre, pdflib_lite and pixman
Volker Grabsch <vog@notjusthosting.com>
parents:
306
diff
changeset
|
5 $(PKG)_CHECKSUM := a4a34f71313ac042455355c01ad851791971a7fa |
306
85ffa9259036
validate downloads using SHA-1 checksums
Volker Grabsch <vog@notjusthosting.com>
parents:
265
diff
changeset
|
6 $(PKG)_SUBDIR := pcre-$($(PKG)_VERSION) |
85ffa9259036
validate downloads using SHA-1 checksums
Volker Grabsch <vog@notjusthosting.com>
parents:
265
diff
changeset
|
7 $(PKG)_FILE := pcre-$($(PKG)_VERSION).tar.bz2 |
85ffa9259036
validate downloads using SHA-1 checksums
Volker Grabsch <vog@notjusthosting.com>
parents:
265
diff
changeset
|
8 $(PKG)_WEBSITE := http://www.pcre.org/ |
85ffa9259036
validate downloads using SHA-1 checksums
Volker Grabsch <vog@notjusthosting.com>
parents:
265
diff
changeset
|
9 $(PKG)_URL := http://$(SOURCEFORGE_MIRROR)/pcre/$($(PKG)_FILE) |
85ffa9259036
validate downloads using SHA-1 checksums
Volker Grabsch <vog@notjusthosting.com>
parents:
265
diff
changeset
|
10 $(PKG)_DEPS := gcc |
245 | 11 |
12 define $(PKG)_UPDATE | |
408
413750a629be
improved version recognition for sourceforge packages
Volker Grabsch <vog@notjusthosting.com>
parents:
337
diff
changeset
|
13 $(call SOURCEFORGE_FILES,http://sourceforge.net/projects/pcre/files/pcre/) | \ |
245 | 14 $(SED) -n 's,.*pcre-\([0-9][^>]*\)\.tar.*,\1,p' | \ |
408
413750a629be
improved version recognition for sourceforge packages
Volker Grabsch <vog@notjusthosting.com>
parents:
337
diff
changeset
|
15 tail -1 |
245 | 16 endef |
17 | |
18 define $(PKG)_BUILD | |
337
15c74c7af78c
remove "__declspec(dllimport)" declarations instead of defining PCRE_STATIC in package pcre
Volker Grabsch <vog@notjusthosting.com>
parents:
336
diff
changeset
|
19 $(SED) 's,__declspec(dllimport),,' -i '$(1)/pcre.h.in' |
15c74c7af78c
remove "__declspec(dllimport)" declarations instead of defining PCRE_STATIC in package pcre
Volker Grabsch <vog@notjusthosting.com>
parents:
336
diff
changeset
|
20 $(SED) 's,__declspec(dllimport),,' -i '$(1)/pcreposix.h' |
336
95a831e1dd54
fix for systems where wine confuses the cross-compiling detection of ./configure
Volker Grabsch <vog@notjusthosting.com>
parents:
335
diff
changeset
|
21 # wine confuses the cross-compiling detection, so set it explicitly |
95a831e1dd54
fix for systems where wine confuses the cross-compiling detection of ./configure
Volker Grabsch <vog@notjusthosting.com>
parents:
335
diff
changeset
|
22 $(SED) 's,cross_compiling=no,cross_compiling=yes,' -i '$(1)/configure' |
245 | 23 cd '$(1)' && ./configure \ |
24 --host='$(TARGET)' \ | |
25 --disable-shared \ | |
26 --prefix='$(PREFIX)/$(TARGET)' \ | |
27 --enable-utf8 \ | |
28 --enable-unicode-properties \ | |
29 --disable-pcregrep-libz \ | |
30 --disable-pcregrep-libbz2 \ | |
31 --disable-pcretest-libreadline | |
32 $(MAKE) -C '$(1)' -j '$(JOBS)' install bin_PROGRAMS= sbin_PROGRAMS= noinst_PROGRAMS= | |
33 endef |