1 | # $Id: Portfile 28574 2007-09-03 23:10:28Z yves@macports.org $ |
---|
2 | |
---|
3 | PortSystem 1.0 |
---|
4 | |
---|
5 | name php5-gtk |
---|
6 | version 2.0.0 |
---|
7 | categories x11 lang php www |
---|
8 | maintainers anant@kix.in |
---|
9 | homepage http://gtk.php.net/ |
---|
10 | distname php-gtk-${version} |
---|
11 | platforms darwin freebsd |
---|
12 | |
---|
13 | description \ |
---|
14 | PHP-GTK: Gtk+ bindings for PHP 5. |
---|
15 | |
---|
16 | long_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 | |
---|
21 | master_sites \ |
---|
22 | http://gtk.php.net/distributions/ |
---|
23 | |
---|
24 | checksums \ |
---|
25 | md5 9e21fdc362655f35aa6c198d612495a0 \ |
---|
26 | sha1 f9172ce64d85479d341c808b44a6127b164cd1a2 |
---|
27 | |
---|
28 | depends_lib \ |
---|
29 | port:gtk2 \ |
---|
30 | port:php5 |
---|
31 | |
---|
32 | configure.args \ |
---|
33 | --mandir=${prefix}/share/man \ |
---|
34 | --infodir=${prefix}/share/info \ |
---|
35 | --with-php-config=${prefix}/bin/php-config \ |
---|
36 | --without-libglade |
---|
37 | |
---|
38 | variant extra { |
---|
39 | depends_lib-append \ |
---|
40 | port:gtk2-extra |
---|
41 | configure.args-append \ |
---|
42 | --with-extra |
---|
43 | } |
---|
44 | |
---|
45 | variant html { |
---|
46 | depends_lib-append \ |
---|
47 | port:libgtkhtml3 |
---|
48 | configure.args-append \ |
---|
49 | --with-html |
---|
50 | } |
---|
51 | |
---|
52 | variant libglade { |
---|
53 | depends_lib-append \ |
---|
54 | port:libglade2 |
---|
55 | configure.args-delete \ |
---|
56 | --without-libglade |
---|
57 | } |
---|
58 | |
---|
59 | variant libsexy { |
---|
60 | depends_lib-append \ |
---|
61 | port:libsexy |
---|
62 | configure.args-append \ |
---|
63 | --with-libsexy |
---|
64 | } |
---|
65 | |
---|
66 | variant sourceview { |
---|
67 | depends_lib-append \ |
---|
68 | port:gtksourceview |
---|
69 | configure.args-append \ |
---|
70 | --with-sourceview |
---|
71 | } |
---|
72 | |
---|
73 | variant spell { |
---|
74 | depends_lib-append \ |
---|
75 | port:gtkspell2 |
---|
76 | configure.args-append \ |
---|
77 | --with-spell |
---|
78 | } |
---|
79 | |
---|
80 | pre-configure { |
---|
81 | cd ${worksrcpath} |
---|
82 | system "./buildconf --with-phpize=${prefix}/bin/phpize" |
---|
83 | } |
---|
84 | |
---|
85 | post-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 | |
---|
94 | post-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 | |
---|