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
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
245
05a1787838ba new package: pcre
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
1 # PCRE
05a1787838ba new package: pcre
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
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
05a1787838ba new package: pcre
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
11
05a1787838ba new package: pcre
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
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
05a1787838ba new package: pcre
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
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
05a1787838ba new package: pcre
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
16 endef
05a1787838ba new package: pcre
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
17
05a1787838ba new package: pcre
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
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
05a1787838ba new package: pcre
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
23 cd '$(1)' && ./configure \
05a1787838ba new package: pcre
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
24 --host='$(TARGET)' \
05a1787838ba new package: pcre
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
25 --disable-shared \
05a1787838ba new package: pcre
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
26 --prefix='$(PREFIX)/$(TARGET)' \
05a1787838ba new package: pcre
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
27 --enable-utf8 \
05a1787838ba new package: pcre
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
28 --enable-unicode-properties \
05a1787838ba new package: pcre
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
29 --disable-pcregrep-libz \
05a1787838ba new package: pcre
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
30 --disable-pcregrep-libbz2 \
05a1787838ba new package: pcre
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
31 --disable-pcretest-libreadline
05a1787838ba new package: pcre
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
32 $(MAKE) -C '$(1)' -j '$(JOBS)' install bin_PROGRAMS= sbin_PROGRAMS= noinst_PROGRAMS=
05a1787838ba new package: pcre
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
33 endef