source: trunk/dports/lang/pike/Portfile @ 92837

Last change on this file since 92837 was 92837, checked in by ryandesign@…, 7 years ago

Increase revision of ports depending on pcre since the libpcre library version has increased from 0 to 1

  • Property svn:eol-style set to native
  • Property svn:keywords set to Id
File size: 4.6 KB
Line 
1# -*- coding: utf-8; mode: tcl; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- vim:fenc=utf-8:ft=tcl:et:sw=4:ts=4:sts=4
2# $Id: Portfile 92837 2012-05-09 00:51:48Z ryandesign@macports.org $
3
4PortSystem          1.0
5
6name                pike
7version             7.6.112
8revision            4
9categories          lang
10platforms           darwin
11maintainers         gmx.de:exodusd openmaintainer
12
13description         dynamic programming language
14
15long_description    Pike is a dynamic programming language with a syntax \
16                    similar to Java and C. It is simple to learn, does \
17                    not require long compilation passes and has powerful \
18                    built-in data types allowing simple and really fast \
19                    data manipulation.
20
21homepage            http://pike.ida.liu.se/
22master_sites        ${homepage}pub/pike/all/${version}/
23distname            Pike-v${version}
24
25checksums           md5     3ba03096741d6df839d32a940f4a865c \
26                    sha1    211050346d8efc01068e8ea7443f4743116a51be \
27                    rmd160  8983d5bc150beabd1796ff8f05df43e5cf36f467
28
29patchfiles          patch-Request.pike
30
31depends_lib         port:bzip2 \
32                    port:zlib \
33                    port:gmp \
34                    port:nettle
35
36variant 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 path:include/gif_lib.h:giflib
39}
40
41variant ttf description {TrueType (TTF) support (using FreeType) for Pike} {
42    configure.args-append --with-freetype
43    depends_lib-append port:freetype
44}
45
46variant pcre description {Regular expression support (using PCRE) for Pike} {
47    configure.args-append --with-libpcre
48    depends_lib-append port:pcre
49}
50
51variant gdbm description {GDBM database support for Pike} {
52    configure.args-append --with-gdbm
53    depends_lib-append port:gdbm
54}
55
56variant mysql description {MySQL database support for Pike} {
57    configure.args-append --with-mysql
58    depends_lib-append lib:libmysqlclient:mysql5
59}
60
61variant odbc description {ODBC database support for Pike} {
62    configure.args-append --with-odbc
63    depends_lib-append port:unixODBC
64}
65
66variant postgresql description {Postgres database support for Pike} {
67    configure.args-append --with-postgres
68    depends_lib-append port:postgresql83
69}
70
71variant gtk description {GTK support for Pike} {
72    configure.args-append --with-gtk
73    depends_lib-append port:gtk2
74}
75
76variant opengl description {OpenGL support for Pike} {
77    configure.args-append --with-GL --with-GLUT
78    depends_lib-append port:mesa
79}
80
81#variant perl description {Perl support for Pike} {
82#    configure.args-append --with-perl
83#    depends_lib-append port:perl5.10
84#}
85
86variant sane description {SANE scanner support for Pike} {
87    configure.args-append --with-sane
88    depends_lib-append port:sane-backends
89}
90
91variant sdl description {SDL support for Pike} {
92    configure.args-append --with-SDL
93    depends_lib-append path:lib/pkgconfig/sdl.pc:libsdl port:libsdl_mixer
94}
95
96variant svg description {SVG vector graphics support for Pike} {
97    configure.args-append --with-svg
98    depends_lib-append port:librsvg
99}
100
101variant doc description {Pike documentation} {
102    build.target-append doc
103}
104
105use_configure       no
106
107configure.args      --without-bundles \
108                    --mandir=${prefix}/share/man \
109                    --with-include-path=${prefix}/include \
110                    --with-lib-path=${prefix}/lib \
111                    --with-zlib
112
113pre-build {
114    # setup the build.args here, because then the configure.args from the
115    # variants will have been assembled:
116    build.args      CONFIGUREARGS="${configure.pre_args} ${configure.args}" \
117                    INSTALLARGS="--traditional"
118}
119
120test.run            yes
121test.target         verify
122
123destroot.target     install_nodoc
124destroot.destdir    buildroot=${destroot} INSTALLARGS="--traditional"
125
126post-destroot {
127    file delete -force ${destroot}${prefix}/bin/pike.syms
128    file delete -force ${destroot}${prefix}/doc/pike
129    # move manpage to correct location:
130    move ${destroot}${prefix}/man/man1/pike.1 \
131        ${destroot}${prefix}/share/man/man1/
132    # move documentation to correct location:
133    xinstall -d ${destroot}${prefix}/share/doc/pike-${version}
134    xinstall -W ${worksrcpath} README COPYING COPYRIGHT ANNOUNCE \
135        COMMITTERS ${destroot}${prefix}/share/doc/pike-${version}
136    if {[variant_isset doc]} {
137        move ${worksrcpath}/refdoc/modref \
138            ${destroot}${prefix}/share/doc/pike-${version}
139        move ${worksrcpath}/refdoc/traditional_manual \
140            ${destroot}${prefix}/share/doc/pike-${version}
141    }
142}
Note: See TracBrowser for help on using the repository browser.