On 10/16/05, James Long <[EMAIL PROTECTED]> wrote: > I've been aware of pkgtools.conf but hadn't buckled down to suss out the > syntax > prior to recently. Thanks to Dru Lavigne's excellent article at onlamp.com, > I'm > working on my first attempt at setting make variables in pkgtools.conf. > > First, is there something I've specified incorrectly in my pkgtools.conf > (below)? > More generally, I haven't found anything in the portupgrade man page that > would > describe a switch that would cause portupgrade to output an indication of what > configuration information it might have parsed from pkgtools.conf, that would > help me figure out (sooner in the build process) whether portupgrade is > parsing > my pkgtools.conf successfully. Is there some way to make portupgrade be > verbose > about what actions it is taking based on pkgtools.conf directives? > > Here is the MAKE_ARGS section of /usr/local/etc/pkgtools.conf: > > MAKE_ARGS = { > 'graphics/ImageMagick-*' => 'WITHOUT_IMAGEMAGICK_TTF=1 > WITHOUT_IMAGEMAGICK_PDF=1 WITHOUT_X11=1 WITHOUT_IMAGEMAGICK_PERL=1', > } > > According to my reading of the Makefile, eliminating TTF and PDF support > ought to > be sufficient to eliminate the need for ghostscript, but still, "portupgrade > -N > ImageMagick" wants to build ghostscript-gnu-7.07_13 as a dependency. > > ns : 22:41:38 /root# ls -l /usr/local/etc/pkgtools.conf > -r--r--r-- 1 root wheel 13872 Oct 15 21:42 /usr/local/etc/pkgtools.conf > > ns : 22:41:45 /root# grep -1 Magick /usr/local/etc/pkgtools.conf > MAKE_ARGS = { > 'graphics/ImageMagick-*' => 'WITHOUT_IMAGEMAGICK_TTF=1 > WITHOUT_IMAGEMAGICK_PDF=1 WITHOUT_X11=1 WITHOUT_IMAGEMAGICK_PERL=1', > } > > Everything else in pkgtools.conf is stock: > > ns : 22:47:01 /root# diff /usr/local/etc/pkgtools.conf.sample > /usr/local/etc/pkgtools.conf > 310a311 > > 'graphics/ImageMagick-*' => 'WITHOUT_IMAGEMAGICK_TTF=1 > > WITHOUT_IMAGEMAGICK_PDF=1 WITHOUT_X11=1 WITHOUT_IMAGEMAGICK_PERL=1', > > After completing a CVS update of my ports tree at 23:08 PDT 10/15/05, > portupgrade shows all the rest of my ports are up to date. > > All of this is on 5.4-STABLE circa 10/1/05. > > _______________________________________________ > freebsd-questions@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-questions > To unsubscribe, send any mail to "[EMAIL PROTECTED]" >
First, the other syntax seems much more readable: 'mplayer' => [ 'WITH_OPTIMIZED_CFLAGS=yes', 'WITHOUT_RUNTIME_CPUDETECTION=yes', ], 'aumix*' => [ 'WITH_GTK2=yes', ], Second, when portupgrade detects MAKE flags in pkgtools.conf, it tells you so: # portupgrade -f mplayer\* ** Custom MAKE_ARGS or -m option is specified (WITH_OPTIMIZED_CFLAGS=yes WITHOUT_RUNTIME_CPUDETECTION=yes WITH_GTK2=yes WITH_LIBDVDNAV=yes WITH_LIBUNGIF=yes WITH_ARTS=yes WITH_FRIBIDI=yes WITH_CDPARANOIA=yes WITH_LIBCACA=yes WITH_LIBDV=yes WITH_MAD=yes WITH_AALIB=yes WITH_THEORA=yes WITH_X264=yes WITH_SDL=yes WITH_ESOUND=yes WITH_VORBIS=yes WITH_XANIM=yes WITH_REALPLAYER=yes WITH_LIVEMEDIA=yes WITH_MATROSKA=yes WITH_XVID=yes WITH_LZO=yes WITH_XMMS=yes ) ** Skipping package ---> Using the port instead of a package ---> Reinstalling 'mplayer-gtk-esound-0.99.7_5' (multimedia/mplayer) ---> Building '/usr/ports/multimedia/mplayer' with make flags: WITH_OPTIMIZED_CFLAGS=yes WITHOUT_RUNTIME_CPUDETECTION=yes WITH_GTK2=yes WITH_LIBDVDNAV=yes WITH_LIBUNGIF=yes WITH_ARTS=yes WITH_FRIBIDI=yes WITH_CDPARANOIA=yes WITH_LIBCACA=yes WITH_LIBDV=yes WITH_MAD=yes WITH_AALIB=yes WITH_THEORA=yes WITH_X264=yes WITH_SDL=yes WITH_ESOUND=yes WITH_VORBIS=yes WITH_XANIM=yes WITH_REALPLAYER=yes WITH_LIVEMEDIA=yes WITH_MATROSKA=yes WITH_XVID=yes WITH_LZO=yes WITH_XMMS=yes <...> Third, your wildcard is wrong. There's no ImageMagick-*, there's only ImageMagick. _______________________________________________ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "[EMAIL PROTECTED]"