Ticket #12138: Portfile

File Portfile, 2.2 KB (added by anant@…, 17 years ago)

x11/php5-gtk

Line 
1# $Id: Portfile 26022 2007-06-09 08:43:20Z ryandesign@macports.org $
2
3PortSystem          1.0
4
5name                php5-gtk
6version             2.0.0beta
7categories          lang php x11
8maintainers         anant@kix.in
9homepage            http://gtk.php.net/
10distfiles           php-gtk-${version}.tar.gz:release
11worksrcdir          php-gtk-${version}
12platforms           darwin freebsd
13
14description \
15        PHP-GTK: Gtk+ bindings for PHP 5.
16
17long_description \
18        PHP-GTK is a Gtk+ bindings for the PHP 5 scripting \
19        language, allowing you to build rich, cross-platform \
20        desktop applications using PHP.
21
22master_sites \
23        http://gtk.php.net/distributions/:release
24
25checksums \
26        md5 a02568508c2fb13bfc1b20802d8e702b \
27        sha1 1d0de61ee4a082aa103875a87e86c62d5c35327b
28
29depends_lib \
30        port:gtk2 \
31        port:php5
32
33configure.args \
34        --mandir=${prefix}/share/man \
35        --infodir=${prefix}/share/info \
36        --with-php-config=${prefix}/bin/php-config \
37        --without-libglade
38
39variant extra {
40        depends_lib-append \
41                port:gtk2-extra
42        configure.args-append \
43                --with-extra
44}
45
46variant html {
47        depends_lib-append \
48                port:libgtkhtml3
49        configure.args-append \
50                --with-html
51}
52
53variant libglade {
54        depends_lib-append \
55                port:libglade2
56        configure.args-delete \
57                --without-libglade
58}
59
60variant libsexy {
61        depends_lib-append \
62                port:libsexy
63        configure.args-append \
64                --with-libsexy
65}
66
67variant sourceview {
68        depends_lib-append \
69                port:gtksourceview
70        configure.args-append \
71                --with-sourceview
72}
73
74variant spell {
75        depends_lib-append \
76                port:gtkspell2
77        configure.args-append \
78                --with-spell
79}
80
81pre-configure {
82        cd ${workpath}/${worksrcdir}
83        system "./buildconf --with-phpize=${prefix}/bin/phpize"
84}
85
86destroot {
87        cd ${workpath}/${worksrcdir}
88        system "make install"
89        xinstall -m 755 -d ${destroot}${prefix}/share/doc/${name}
90        file copy README ${destroot}${prefix}/share/doc/${name}
91        file copy README.KNOWN-ISSUES ${destroot}${prefix}/share/doc/${name}
92        file copy NEWS ${destroot}${prefix}/share/doc/${name}
93        file copy AUTHORS ${destroot}${prefix}/share/doc/${name}
94}
95
96post-install {
97        ui_msg "\nIf this is your first install, you might want to enable PHP-GTK in the"
98        ui_msg "ini file. Append the line: extension=php_gtk2.so to ${prefix}/etc/php.ini\n"
99}
100