10 | | Pike is a dynamic programming language with a syntax \ |
11 | | similar to Java and C. It is simple to learn, does \ |
12 | | not require long compilation passes and has powerful \ |
13 | | built-in data types allowing simple and really fast \ |
14 | | data manipulation. |
| 11 | Pike is a dynamic programming language with a syntax \ |
| 12 | similar to Java and C. It is simple to learn, does \ |
| 13 | not require long compilation passes and has powerful \ |
| 14 | built-in data types allowing simple and really fast \ |
| 15 | data manipulation. |
20 | | checksums md5 4e39c43a00c6566a9638ef48499bbc82 |
21 | | |
22 | | use_configure no |
23 | | |
24 | | build.args CONFIGUREARGS="--prefix=${prefix}" |
25 | | build.target |
| 21 | checksums md5 3ba03096741d6df839d32a940f4a865c \ |
| 22 | sha1 211050346d8efc01068e8ea7443f4743116a51be \ |
| 23 | rmd160 8983d5bc150beabd1796ff8f05df43e5cf36f467 |
| 24 | |
| 25 | patchfiles patch-Request.pike |
| 26 | |
| 27 | depends_lib port:zlib port:gmp port:nettle |
| 28 | depends_build port:zlib port:gmp port:nettle |
| 29 | #default_variants +image +pcre |
| 30 | |
| 31 | variant newstyle description {New directory layout for Pike, where everything \ |
| 32 | is installed in (prefix)/pike/(pike-version)} { |
| 33 | destroot.violate_mtree yes |
| 34 | } |
| 35 | |
| 36 | variant image description {Images (JPEG, PNG, GIF, TIFF) support for Pike} { |
| 37 | configure.args-append --with-jpeglib --with-gif --with-tifflib |
| 38 | depends_lib-append port:jpeg port:tiff port:libpng port:libungif |
| 39 | depends_build-append port:jpeg port:tiff port:libpng port:libungif |
| 40 | } |
| 41 | |
| 42 | variant ttf description {TrueType (TTF) support (using FreeType) for Pike} { |
| 43 | configure.args-append --with-freetype |
| 44 | depends_lib-append port:freetype |
| 45 | depends_build-append port:freetype |
| 46 | } |
| 47 | |
| 48 | variant pcre description {Regular expression support (using PCRE) for Pike} { |
| 49 | configure.args-append --with-libpcre |
| 50 | depends_lib-append port:pcre |
| 51 | depends_build-append port:pcre |
| 52 | } |
| 53 | |
| 54 | variant mysql description {MySQL database support for Pike} { |
| 55 | configure.args-append --with-mysql |
| 56 | depends_lib-append lib:libmysqlclient:mysql5 |
| 57 | depends_build-append lib:libmysqlclient:mysql5-devel |
| 58 | } |
| 59 | |
| 60 | variant doc description {Pike documentation} { |
| 61 | build.target-append doc |
| 62 | } |
| 63 | |
| 64 | configure.args --mandir=${prefix}/share/man \ |
| 65 | --with-include-path=${prefix}/include \ |
| 66 | --with-lib-path=${prefix}/lib \ |
| 67 | --with-zlib |
| 68 | |
| 69 | configure { |
| 70 | # setup the build.args here, because then the configure.args from the |
| 71 | # variants will have been assembled: |
| 72 | if {[variant_isset newstyle]} { |
| 73 | build.args CONFIGUREARGS="--prefix=${prefix} ${configure.args}" \ |
| 74 | INSTALLARGS="--new-style" |
| 75 | destroot.destdir buildroot=${destroot} INSTALLARGS="--new-style" |
| 76 | } else { |
| 77 | build.args CONFIGUREARGS="--prefix=${prefix} ${configure.args}" \ |
| 78 | INSTALLARGS="--traditional" |
| 79 | destroot.destdir buildroot=${destroot} INSTALLARGS="--traditional" |
| 80 | } |
| 81 | } |
31 | | destroot.destdir buildroot=${destroot} |
| 87 | |
| 88 | post-destroot { |
| 89 | if {[variant_isset newstyle]} { |
| 90 | # new style directory layout: all in ${prefix}/pike/${version}/ |
| 91 | delete file ${destroot}${prefix}/pike/${version}/doc/src |
| 92 | xinstall -d ${destroot}${prefix}/pike/${version}/doc |
| 93 | xinstall -W ${worksrcpath} README COPYING COPYRIGHT ANNOUNCE \ |
| 94 | COMMITTERS ${destroot}${prefix}/pike/${version}/doc/ |
| 95 | if {[variant_isset doc]} { |
| 96 | move ${worksrcpath}/refdoc/modref \ |
| 97 | ${destroot}${prefix}/pike/${version}/doc/ |
| 98 | move ${worksrcpath}/refdoc/traditional_manual \ |
| 99 | ${destroot}${prefix}/pike/${version}/doc/ |
| 100 | } |
| 101 | } else { |
| 102 | # traditional, MacPorts tree compliant directory layout |
| 103 | delete file ${destroot}${prefix}/bin/pike.syms |
| 104 | move ${destroot}${prefix}/man/man1/pike.1 \ |
| 105 | ${destroot}${prefix}/share/man/man1/ |
| 106 | xinstall -d ${destroot}${prefix}/share/doc/pike-${version} |
| 107 | xinstall -W ${worksrcpath} README COPYING COPYRIGHT ANNOUNCE \ |
| 108 | COMMITTERS ${destroot}${prefix}/share/doc/pike-${version} |
| 109 | if {[variant_isset doc]} { |
| 110 | move ${worksrcpath}/refdoc/modref \ |
| 111 | ${destroot}${prefix}/share/doc/pike-${version} |
| 112 | move ${worksrcpath}/refdoc/traditional_manual \ |
| 113 | ${destroot}${prefix}/share/doc/pike-${version} |
| 114 | } |
| 115 | } |
| 116 | } |