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