Ticket #14897: Portfile

File Portfile, 2.1 KB (added by anant@…, 16 years ago)

Updated Portfile

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