Mercurial > mxe-octave
annotate src/pcre.mk @ 2349:f48c5b085a38
Move $(PKG)_VERSION and $(PKG)_WEBSITE from src/*.mk into doc/index.html
author | Volker Grabsch <vog@notjusthosting.com> |
---|---|
date | Thu, 29 Mar 2012 11:07:07 +0200 |
parents | f653602a0500 |
children | 99516e73b368 |
rev | line source |
---|---|
2333
f653602a0500
Rebrand to new project name MXE
Volker Grabsch <vog@notjusthosting.com>
parents:
2253
diff
changeset
|
1 # This file is part of MXE. |
714
29f1ba4559ae
point consequently to "doc/index.html" instead of "doc/index.html or doc/README"
Volker Grabsch <vog@notjusthosting.com>
parents:
655
diff
changeset
|
2 # See doc/index.html for further information. |
414
d2a6561bcb6d
add a copyright notice and license to each source file
Volker Grabsch <vog@notjusthosting.com>
parents:
408
diff
changeset
|
3 |
245 | 4 # PCRE |
306
85ffa9259036
validate downloads using SHA-1 checksums
Volker Grabsch <vog@notjusthosting.com>
parents:
265
diff
changeset
|
5 PKG := pcre |
448
e9afec55fd6b
improved version recognition, enable the notation of ignored (bad) package versions
Volker Grabsch <vog@notjusthosting.com>
parents:
425
diff
changeset
|
6 $(PKG)_IGNORE := |
2241 | 7 $(PKG)_CHECKSUM := 68d28fb383325b8af9e3d481d30f586b46c56022 |
306
85ffa9259036
validate downloads using SHA-1 checksums
Volker Grabsch <vog@notjusthosting.com>
parents:
265
diff
changeset
|
8 $(PKG)_SUBDIR := pcre-$($(PKG)_VERSION) |
85ffa9259036
validate downloads using SHA-1 checksums
Volker Grabsch <vog@notjusthosting.com>
parents:
265
diff
changeset
|
9 $(PKG)_FILE := pcre-$($(PKG)_VERSION).tar.bz2 |
422
d2f5eb27e051
improved download URLs for all SourceForge packages to ensure that the selected SOURCEFORGE_MIRROR is really used
Volker Grabsch <vog@notjusthosting.com>
parents:
417
diff
changeset
|
10 $(PKG)_URL := http://$(SOURCEFORGE_MIRROR)/project/pcre/pcre/$($(PKG)_VERSION)/$($(PKG)_FILE) |
2241 | 11 $(PKG)_URL_2 := ftp://ftp.csx.cam.ac.uk/pub/software/programming/pcre/$($(PKG)_FILE) |
306
85ffa9259036
validate downloads using SHA-1 checksums
Volker Grabsch <vog@notjusthosting.com>
parents:
265
diff
changeset
|
12 $(PKG)_DEPS := gcc |
245 | 13 |
14 define $(PKG)_UPDATE | |
1462
61dda1d437e2
improved update script of packages: boost cppunit cunit expat freetype glew pcre pdcurses wxwidgets
Volker Grabsch <vog@notjusthosting.com>
parents:
1120
diff
changeset
|
15 wget -q -O- 'http://sourceforge.net/projects/pcre/files/pcre/' | \ |
1033
dd28c487a6b1
improved version recognition of packages: boost freetype gcc glew libgee mingwrt openssl pcre pdcurses w32api wxwidgets
Volker Grabsch <vog@notjusthosting.com>
parents:
883
diff
changeset
|
16 $(SED) -n 's,.*/\([0-9][^"]*\)/".*,\1,p' | \ |
dd28c487a6b1
improved version recognition of packages: boost freetype gcc glew libgee mingwrt openssl pcre pdcurses w32api wxwidgets
Volker Grabsch <vog@notjusthosting.com>
parents:
883
diff
changeset
|
17 head -1 |
245 | 18 endef |
19 | |
20 define $(PKG)_BUILD | |
759
bf4bcb3370fa
changed coding style: make "-i" always the first argument of $(SED) (by Mark Brand)
Volker Grabsch <vog@notjusthosting.com>
parents:
714
diff
changeset
|
21 $(SED) -i 's,__declspec(dllimport),,' '$(1)/pcre.h.in' |
bf4bcb3370fa
changed coding style: make "-i" always the first argument of $(SED) (by Mark Brand)
Volker Grabsch <vog@notjusthosting.com>
parents:
714
diff
changeset
|
22 $(SED) -i 's,__declspec(dllimport),,' '$(1)/pcreposix.h' |
245 | 23 cd '$(1)' && ./configure \ |
24 --host='$(TARGET)' \ | |
2153
e4c83fa61a5b
replaced $(BUILD) with a more direct and less brittle construct
Volker Grabsch <vog@notjusthosting.com>
parents:
2148
diff
changeset
|
25 --build="`config.guess`" \ |
245 | 26 --disable-shared \ |
27 --prefix='$(PREFIX)/$(TARGET)' \ | |
2253
a7cd38ce7a20
package pcre: enable utf-16 support
Mark Brand <mabrand@mabrand.nl>
parents:
2241
diff
changeset
|
28 --enable-pcre16 \ |
a7cd38ce7a20
package pcre: enable utf-16 support
Mark Brand <mabrand@mabrand.nl>
parents:
2241
diff
changeset
|
29 --enable-utf \ |
245 | 30 --enable-unicode-properties \ |
425
afd650c42ba3
disable C++ support for package pcre
Volker Grabsch <vog@notjusthosting.com>
parents:
422
diff
changeset
|
31 --disable-cpp \ |
245 | 32 --disable-pcregrep-libz \ |
33 --disable-pcregrep-libbz2 \ | |
34 --disable-pcretest-libreadline | |
2253
a7cd38ce7a20
package pcre: enable utf-16 support
Mark Brand <mabrand@mabrand.nl>
parents:
2241
diff
changeset
|
35 rm -f '$(PREFIX)/$(TARGET)'/share/man/man3/pcre16*.3 |
245 | 36 $(MAKE) -C '$(1)' -j '$(JOBS)' install bin_PROGRAMS= sbin_PROGRAMS= noinst_PROGRAMS= |
37 endef |