source: trunk/dports/devel/pcre/Portfile @ 80293

Last change on this file since 80293 was 80293, checked in by jmr@…, 6 years ago

pcre: license

  • Property svn:eol-style set to native
  • Property svn:keywords set to Id
File size: 1.9 KB
Line 
1# -*- coding: utf-8; mode: tcl; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- vim:fenc=utf-8:filetype=tcl:et:sw=4:ts=4:sts=4
2# $Id: Portfile 80293 2011-07-08 18:36:41Z jmr@macports.org $
3
4PortSystem      1.0
5
6name            pcre
7version         8.12
8categories      devel
9license         BSD
10platforms       darwin freebsd
11maintainers     nomaintainer
12description     Perl Compatible Regular Expressions Library
13
14long_description \
15    The PCRE library is a set of functions that implement regular \
16    expression pattern matching using the same syntax and semantics as \
17    Perl 5. PCRE has its own native API, as well as a set of wrapper \
18    functions that correspond to the POSIX regular expression API.
19
20homepage        http://www.pcre.org/
21use_bzip2       yes
22
23master_sites    ftp://ftp.fu-berlin.de/unix/misc/${name}/ \
24                ftp://ftp.tin.org/pub/libs/${name}/ \
25                ftp://ftp.csx.cam.ac.uk/pub/software/programming/${name}/ \
26                sourceforge
27
28checksums           md5     f14a9fef3c92f3fc6c5ac92d7a2c7eb3 \
29                    sha1    2219b372bff53ee29a7e44ecf5977ad15df01cea \
30                    rmd160  ec7978604cdf92d8dbd98e0d0c360fe35eb62021
31
32depends_lib     port:readline \
33                port:zlib \
34                port:bzip2
35
36configure.args  --docdir=${prefix}/share/doc/${name}-${version} \
37                --enable-unicode-properties \
38                --enable-pcretest-libreadline \
39                --enable-pcregrep-libz \
40                --enable-pcregrep-libbz2
41
42platform darwin 8 {
43    # ticket #18448
44    if {[variant_isset universal]} {
45        configure.ldflags-append -lncurses
46    }
47}
48
49post-patch {
50    if {![variant_isset doc]} {
51        reinplace -E "/^install-data-am:/s/install-dist_htmlDATA//" ${worksrcpath}/Makefile.in
52        reinplace -E "/install-man/s/install-htmlDATA//" ${worksrcpath}/Makefile.in
53    }
54}
55
56use_parallel_build  yes
57
58test.run        yes
59
60variant doc description {Install extra documentation} {}
Note: See TracBrowser for help on using the repository browser.