With the latest PEAR installer (version 0.90), PECL extensions are now
built and installed during "pear install/upgrade" on Unix systems.

First: upgrade PEAR to 0.9 with "pear upgrade PEAR".

If you have the xmms libraries and php_gtk installed, you can see it in
action by doing simply "pear install xmms".  The output is like this:

downloading xmms-0.2.tgz ...
...done: 11,968 bytes
4 source files, building
running: phpize
PHP Api Version        : 20020307
Zend Module Api No     : 20010901
Zend Extension Api No  : 20020429
Xmms library install dir? [autodetect] : 
building in /var/tmp/pear-build-ssb/xmms-0.2
running: /tmp/pear8AzLoo/xmms-0.2/configure --with-xmms
running: make
xmms.so copied to /tmp/pear8AzLoo/xmms-0.2/xmms.so
install ok: xmms 0.2

Add one or more -v options to pear to see more details (pear -v ...)

To make your own, use PECL/xmms/package.xml or
PECL/mailparse/package.xml as examples.  Mailparse is a good example of
a simple, standalone PECL package that uses no external libraries.  Xmms
is more advanced, it requires an external library, as well as php-gtk,
and it also does a few substitutions in installed scripts (gtkxmms).

Remember to use "pear pv" (package-validate) to sanity-check package.xml
files before committing.

 - Stig



-- 
PHP Development Mailing List <http://www.php.net/>
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to