On Oct 11, 2006, at 16:24, Mark Hattam wrote:
On Oct 11, 2006, at 12:14, Aurélien Lignel wrote:
How can I build a soft with specific built command?
example : port install <soft> <"--disable-nls"> It's possible?
MacPorts takes the view that not every configure option is useful, and that you shouldn't have to look through the output of "./ configure --help" and read a bunch of text to figure out which ones are useful. So part of the job of a port author is to determine which options are useful, and turn these into so-called port variants. So you should say "port info foo" where "foo" is the name of the software you want to install, and it will list the variants that the port author has included, and there will hopefully be a variant or variants matching your desires. Then you install with those variants by saying "sudo port install foo +variant1 +variant2" where "variant1" and "variant2" are variants from the list printed by "port info foo".
So how do I install something like php4 with gd support when gd isn't listed among the variants?
Please keep discussion on the mailing list by using Reply To All. The php4 port version 4.4.4 revision 2 does include a gd variant. Make sure you have the latest version of the port by first saying "sudo port sync"
At 17:24 -0500 11/10/06, Ryan Schmidt wrote:
On Oct 11, 2006, at 16:24, Mark Hattam wrote:
On Oct 11, 2006, at 12:14, Aurélien Lignel wrote:
How can I build a soft with specific built command?
example : port install <soft> <"--disable-nls"> It's possible?
MacPorts takes the view that not every configure option is useful, and that you shouldn't have to look through the output of "./configure --help" and read a bunch of text to figure out which ones are useful. So part of the job of a port author is to determine which options are useful, and turn these into so-called port variants. So you should say "port info foo" where "foo" is the name of the software you want to install, and it will list the variants that the port author has included, and there will hopefully be a variant or variants matching your desires. Then you install with those variants by saying "sudo port install foo +variant1 +variant2" where "variant1" and "variant2" are variants from the list printed by "port info foo".
So how do I install something like php4 with gd support when gd isn't listed among the variants?
Please keep discussion on the mailing list by using Reply To All.
The php4 port version 4.4.4 revision 2 does include a gd variant. Make sure you have the latest version of the port by first saying "sudo port sync"
Well, I'm obviously missing something, because after doing a sudo port sync sudo port uninstall php4 sudo port clean -f php4 then a sudo port install -f php4 +apache2+darwin_8+macosx+mysql4+gd it seems to have ignored the +gd bit altogether, as it went through all the usual parts of the install without apparently doing anything about gd. I expected it to download and install gd as part of the php4 install, like it does with expat, gettext, openssl and the like. Mark
On Oct 12, 2006, at 4:01 PM, Mark Hattam wrote:
The php4 port version 4.4.4 revision 2 does include a gd variant. Make sure you have the latest version of the port by first saying "sudo port sync"
it seems to have ignored the +gd bit altogether, as it went through all the usual parts of the install without apparently doing anything about gd. I expected it to download and install gd as part of the php4 install, like it does with expat, gettext, openssl and the like.
At a quick glance, this looks like a bug: variant gd { depends_lib-append port:jpeg port:libpng port:freetype configure.args-append --with-gd \ --with-jpeg-dir=${prefix} \ --with-png-dir=${prefix} \ --enable-gd-native-ttf \ --with-freetype-dir=${prefix} } The depends_lib does not include port:gd. Should the user should beforehand decide which particular version of gd to install (gd, gd2, or gd2-nox11)? Try installing one of those first, then install php4 with the +gd variant. Chris
On Oct 12, 2006, at 16:01, Mark Hattam wrote:
The php4 port version 4.4.4 revision 2 does include a gd variant. Make sure you have the latest version of the port by first saying "sudo port sync"
Well, I'm obviously missing something, because after doing a
sudo port sync sudo port uninstall php4 sudo port clean -f php4
then a
sudo port install -f php4 +apache2+darwin_8+macosx+mysql4+gd
it seems to have ignored the +gd bit altogether, as it went through all the usual parts of the install without apparently doing anything about gd. I expected it to download and install gd as part of the php4 install, like it does with expat, gettext, openssl and the like.
Well, no, it doesn't need to download gd. The php distribution already includes a version of gd, so that gets used. If you look into the portfile (which you can see by typing "port edit php4") you'll see this section: variant gd { depends_lib-append port:jpeg port:libpng port:freetype configure.args-append --with-gd \ --with-jpeg-dir=${prefix} \ --with-png-dir=${prefix} \ --enable-gd-native-ttf \ --with-freetype-dir=${prefix} } So you see that when you add the gd variant, it then makes sure the jpeg, libpng and freetype ports are installed. But no gd port is required.
On Oct 12, 2006, at 5:23 PM, cssdev@mac.com wrote:
On Oct 12, 2006, at 4:01 PM, Mark Hattam wrote:
The php4 port version 4.4.4 revision 2 does include a gd variant. Make sure you have the latest version of the port by first saying "sudo port sync"
it seems to have ignored the +gd bit altogether, as it went through all the usual parts of the install without apparently doing anything about gd. I expected it to download and install gd as part of the php4 install, like it does with expat, gettext, openssl and the like.
At a quick glance, this looks like a bug:
[snip]
The depends_lib does not include port:gd. Should the user should beforehand decide which particular version of gd to install (gd, gd2, or gd2-nox11)? Try installing one of those first, then install php4 with the +gd variant.
I believe php4 comes with it's own copy of gd that gets statically linked in when you use the +gd variant. I don't really use php, so I can't comment as to whether or not it would be a good idea to have the port depend on a macports-supplied gd or if it's better to just use the php-provided version. -- Daniel J. Luke +========================================================+ | *---------------- dluke@geeklair.net ----------------* | | *-------------- http://www.geeklair.net -------------* | +========================================================+ | Opinions expressed are mine and do not necessarily | | reflect the opinions of my employer. | +========================================================+
At 16:23 -0500 12/10/06, cssdev@mac.com wrote:
On Oct 12, 2006, at 4:01 PM, Mark Hattam wrote:
The php4 port version 4.4.4 revision 2 does include a gd variant. Make sure you have the latest version of the port by first saying "sudo port sync"
it seems to have ignored the +gd bit altogether, as it went through all the usual parts of the install without apparently doing anything about gd. I expected it to download and install gd as part of the php4 install, like it does with expat, gettext, openssl and the like.
At a quick glance, this looks like a bug:
variant gd { depends_lib-append port:jpeg port:libpng port:freetype
configure.args-append --with-gd \ --with-jpeg-dir=${prefix} \ --with-png-dir=${prefix} \ --enable-gd-native-ttf \ --with-freetype-dir=${prefix} }
The depends_lib does not include port:gd. Should the user should beforehand decide which particular version of gd to install (gd, gd2, or gd2-nox11)? Try installing one of those first, then install php4 with the +gd variant.
Chris
I've now manually installed gd 1.8.4_3 ... and re-installed php4 ... but it didn't notice. So now trying by manually installing gd2 2.0.33 Mark
On Oct 12, 2006, at 16:01, Mark Hattam wrote:
The php4 port version 4.4.4 revision 2 does include a gd variant. Make sure you have the latest version of the port by first saying "sudo port sync"
Well, I'm obviously missing something, because after doing a
sudo port sync sudo port uninstall php4 sudo port clean -f php4
then a
sudo port install -f php4 +apache2+darwin_8+macosx+mysql4+gd
it seems to have ignored the +gd bit altogether, as it went through all the usual parts of the install without apparently doing anything about gd. I expected it to download and install gd as part of the php4 install, like it does with expat, gettext, openssl and the like.
Well, no, it doesn't need to download gd. The php distribution already includes a version of gd, so that gets used.
If you look into the portfile (which you can see by typing "port edit php4") you'll see this section:
variant gd { depends_lib-append port:jpeg port:libpng port:freetype
configure.args-append --with-gd \ --with-jpeg-dir=${prefix} \ --with-png-dir=${prefix} \ --enable-gd-native-ttf \ --with-freetype-dir=${prefix} }
So you see that when you add the gd variant, it then makes sure the jpeg, libpng and freetype ports are installed. But no gd port is required.
It doesn't seem to pick it up though. For instance this function testing for it returns TRUE, and gives the warning, and there's no section for gd in the standard php test.php informational page. if (!function_exists('imagecreatefromjpeg')) { $warnings[] = "The GD imaging library does not exist. Go to <a href=\"http://www.php.net/manual/en/ref.image.php\">http://www.php.net/manual/en/ref.image.php</a> for more information."; } http://www.php.net/manual/en/ref.image.php Mark
On Oct 12, 2006, at 16:32, Daniel J. Luke wrote:
I believe php4 comes with it's own copy of gd that gets statically linked in when you use the +gd variant.
I don't really use php, so I can't comment as to whether or not it would be a good idea to have the port depend on a macports-supplied gd or if it's better to just use the php-provided version.
Yes, php includes gd, and this gd is preferred to any other. See http://www.php.net/gd :
Note: Since PHP 4.3 there is a bundled version of the GD lib. This bundled version has some additional features like alpha blending, and should be used in preference to the external library since its codebase is better maintained and more stable.
So we should continue to use the gd included in the php distribution, and not make php look at any gd port.
participants (4)
-
cssdev@mac.com
-
Daniel J. Luke
-
Mark Hattam
-
Ryan Schmidt