| 1 | NAME = pcre |
|---|
| 2 | VERSION = 8.30 |
|---|
| 3 | CATEGORIES = lib |
|---|
| 4 | GARTYPE = v2 |
|---|
| 5 | |
|---|
| 6 | DESCRIPTION = Perl-compatible regular expression tools |
|---|
| 7 | define BLURB |
|---|
| 8 | The PCRE library is a set of functions that implement regular |
|---|
| 9 | expression pattern matching using the same syntax and semantics |
|---|
| 10 | as Perl 5. PCRE has its own native API, as well as a set of |
|---|
| 11 | wrapper functions that correspond to the POSIX regular expression API. |
|---|
| 12 | endef |
|---|
| 13 | |
|---|
| 14 | MASTER_SITES = ftp://ftp.csx.cam.ac.uk/pub/software/programming/pcre/ |
|---|
| 15 | DISTFILES = $(DISTNAME).tar.bz2 |
|---|
| 16 | PATCHFILES = 0001-Allow-norunpath-for-libtool.patch |
|---|
| 17 | |
|---|
| 18 | # Use patch until this is fixed: |
|---|
| 19 | # http://bugs.exim.org/show_bug.cgi?id=1206 |
|---|
| 20 | PATCHFILES += 0002-Remove-bashism.patch |
|---|
| 21 | |
|---|
| 22 | VENDOR_URL = http://www.pcre.org |
|---|
| 23 | |
|---|
| 24 | PACKAGES = CSWpcre |
|---|
| 25 | CATALOGNAME_CSWpcre = pcre |
|---|
| 26 | SPKG_DESC_CSWpcre = Perl-compatible regular expression tools |
|---|
| 27 | RUNTIME_DEP_PKGS_CSWpcre += CSWlibreadline6 |
|---|
| 28 | RUNTIME_DEP_PKGS_CSWpcre += CSWlibpcre1 |
|---|
| 29 | RUNTIME_DEP_PKGS_CSWpcre += CSWlibpcre16-0 |
|---|
| 30 | RUNTIME_DEP_PKGS_CSWpcre += CSWlibbz2-1-0 |
|---|
| 31 | RUNTIME_DEP_PKGS_CSWpcre += CSWlibz1 |
|---|
| 32 | RUNTIME_DEP_PKGS_CSWpcre += CSWlibpcreposix0 |
|---|
| 33 | |
|---|
| 34 | PACKAGES += CSWlibpcre-dev |
|---|
| 35 | SPKG_DESC_CSWlibpcre-dev = Development files for libpcre.so.1, libpcre16.so.0, libpcrecpp.so.0 and libpcreposix.so.0 |
|---|
| 36 | RUNTIME_DEP_PKGS_CSWlibpcre-dev += CSWlibpcre1 |
|---|
| 37 | RUNTIME_DEP_PKGS_CSWlibpcre-dev += CSWlibpcre16-0 |
|---|
| 38 | RUNTIME_DEP_PKGS_CSWlibpcre-dev += CSWlibpcreposix0 |
|---|
| 39 | RUNTIME_DEP_PKGS_CSWlibpcre-dev += CSWlibpcrecpp0 |
|---|
| 40 | PKGFILES_CSWlibpcre-dev += $(PKGFILES_DEVEL) |
|---|
| 41 | PKGFILES_CSWlibpcre-dev += $(docdir)/.* |
|---|
| 42 | OBSOLETED_BY_CSWlibpcre-dev += CSWpcre-devel |
|---|
| 43 | # Leave these in the docs for now |
|---|
| 44 | CHECKPKG_OVERRIDES_CSWlibpcre-dev += file-with-bad-content|/usr/local|root/opt/csw/share/doc/pcre/pcre-config.txt |
|---|
| 45 | CHECKPKG_OVERRIDES_CSWlibpcre-dev += file-with-bad-content|/usr/local|root/opt/csw/share/doc/pcre/pcre.txt |
|---|
| 46 | CHECKPKG_OVERRIDES_CSWlibpcre-dev += file-with-bad-content|/usr/local|root/opt/csw/share/doc/pcre/README |
|---|
| 47 | CHECKPKG_OVERRIDES_CSWlibpcre-dev += file-with-bad-content|/usr/local|root/opt/csw/share/doc/pcre/html/pcre-config.html |
|---|
| 48 | CHECKPKG_OVERRIDES_CSWlibpcre-dev += file-with-bad-content|/usr/local|root/opt/csw/share/doc/pcre/html/pcresample.html |
|---|
| 49 | CHECKPKG_OVERRIDES_CSWlibpcre-dev += file-with-bad-content|/usr/local|root/opt/csw/share/doc/pcre/html/pcredemo.html |
|---|
| 50 | |
|---|
| 51 | PACKAGES += CSWlibpcre1 |
|---|
| 52 | SPKG_DESC_CSWlibpcre1 = Perl-compatible regular expression tools, libpcre.so.1 |
|---|
| 53 | PKGFILES_CSWlibpcre1 = $(call pkgfiles_lib,libpcre.so.1) |
|---|
| 54 | |
|---|
| 55 | PACKAGES += CSWlibpcre16-0 |
|---|
| 56 | SPKG_DESC_CSWlibpcre16-0 = Perl-compatible regular expression tools, libpcre16.so.0 |
|---|
| 57 | PKGFILES_CSWlibpcre16-0 = $(call pkgfiles_lib,libpcre16.so.0) |
|---|
| 58 | |
|---|
| 59 | PACKAGES += CSWlibpcrecpp0 |
|---|
| 60 | SPKG_DESC_CSWlibpcrecpp0 += Perl-compatible regular expression tools, libpcrecpp.so.0 |
|---|
| 61 | PKGFILES_CSWlibpcrecpp0 += $(call pkgfiles_lib,libpcrecpp.so.0) |
|---|
| 62 | RUNTIME_DEP_PKGS_CSWlibpcrecpp0 += CSWlibpcre0 |
|---|
| 63 | |
|---|
| 64 | PACKAGES += CSWlibpcreposix0 |
|---|
| 65 | SPKG_DESC_CSWlibpcreposix0 += Perl-compatible regular expression tools, libpcreposix.so.0 |
|---|
| 66 | PKGFILES_CSWlibpcreposix0 += $(call pkgfiles_lib,libpcreposix.so.0) |
|---|
| 67 | RUNTIME_DEP_PKGS_CSWlibpcreposix0 += CSWlibpcre0 |
|---|
| 68 | |
|---|
| 69 | REINPLACE_USRLOCAL += doc/pcre-config.1 |
|---|
| 70 | REINPLACE_USRLOCAL += doc/pcresample.3 |
|---|
| 71 | |
|---|
| 72 | BUILD64_LIBS_ONLY = 1 |
|---|
| 73 | |
|---|
| 74 | EXTRA_LINKER_FLAGS = -norunpath |
|---|
| 75 | |
|---|
| 76 | CONFIGURE_ARGS = $(DIRPATHS) |
|---|
| 77 | CONFIGURE_ARGS += --enable-unicode-properties |
|---|
| 78 | CONFIGURE_ARGS += --enable-pcregrep-libz |
|---|
| 79 | CONFIGURE_ARGS += --enable-pcregrep-libbz2 |
|---|
| 80 | CONFIGURE_ARGS += --enable-pcretest-libreadline |
|---|
| 81 | CONFIGURE_ARGS += --enable-pcre16 |
|---|
| 82 | |
|---|
| 83 | # No JIT for Sparc, may try for x86 at some later time |
|---|
| 84 | #CONFIGURE_ARGS += --enable-jit |
|---|
| 85 | |
|---|
| 86 | # We need more than the default 8 MB of stack space |
|---|
| 87 | TEST_SCRIPTS = custom |
|---|
| 88 | |
|---|
| 89 | include gar/category.mk |
|---|
| 90 | |
|---|
| 91 | # The testcases need 'diff -u' which Solaris 8 diff does not have, |
|---|
| 92 | # but we need Solaris strip, otherwise pcregrep is broken and 200m in size... |
|---|
| 93 | PATH := /usr/ccs/bin:/opt/csw/gnu:$(PATH) |
|---|
| 94 | |
|---|
| 95 | test-custom: |
|---|
| 96 | @echo " ==> Running make $(TEST_TARGET) in $*" |
|---|
| 97 | cd $(WORKSRC) && /usr/bin/ulimit -s 16384 && /usr/bin/env -i $(TEST_ENV) $(MAKE) $(PARALLELMFLAGS) $(foreach TTT,$(TEST_OVERRIDE_VARS),$(TTT)="$(TEST_OVERRIDE_VAR_$(TTT))") $(foreach TTT,$(TEST_OVERRIDE_DIRS),$(TTT)="$($(TTT))") -C $(OBJDIR) $(TEST_ARGS) $(TEST_TARGET) |
|---|
| 98 | @$(MAKECOOKIE) |
|---|
| 99 | |
|---|