Re: Best way to compile specific php5-extensions. Flavors or Subpackages?

2009-08-26 Thread Stephan A. Rickauer
On Tue, 2009-08-25 at 22:36 -0500, David Taveras wrote:

 Questions:
 
 a.) Iam confused with subpackages and flavors. Which method should apply to
 accomplish what I want?
 
 If its the flavors then.. Iam expected to feed it the packages I dont want ?
 Like:
 env FLAVOR=-dba -dbase -imap -ldap -mhash -ncurses -odbc -pdo_pqsql
 -pdo_sqlite -pqsql -pspell -sqlite -sybase_ct -xsl make package
 
 b.) What is the use of the informational package php5-extensions?
 
 Thanks
 David

/usr/ports/www/php5/extensions# cat pkg/DESCR-main  
  
This is a place-holder package to inform you that the PHP port is
now split into small sub-packages, designed to allow you to install
modules independently of the main PHP engine.

For example, to install the IMAP module, just pkg_add the
php5-imap-${V}.tgz package and activate it using the
'phpxs' command.

This package contains no files or dependencies and may be
safely uninstalled.

Cheers,
Stephan

-- 
The best way to predict the future is to invent it.
 Alan Kay



Best way to compile specific php5-extensions. Flavors or Subpackages?

2009-08-25 Thread David Taveras
Hello,

In the past I have compiled the php5-extensions from stable by simply doing:

cd /usr/ports/www/php5/extensions; make; make install

Then, once the packages where generated using pkg_add to install the package
from /usr/ports/packages/i386/all/

However, i noticed that before I actually did this final step the make was
actually installing the dependancies of every single extensions (lots of
them).

Leads to want to install only the following extensions:

php5-bz2 php5-curl php5-gd php5-gmp php5-mbstring php5-mcrypt php5-mhash
php5-mysql php5-shmop


Questions:

a.) Iam confused with subpackages and flavors. Which method should apply to
accomplish what I want?

If its the flavors then.. Iam expected to feed it the packages I dont want ?
Like:
env FLAVOR=-dba -dbase -imap -ldap -mhash -ncurses -odbc -pdo_pqsql
-pdo_sqlite -pqsql -pspell -sqlite -sybase_ct -xsl make package

b.) What is the use of the informational package php5-extensions?

Thanks
David