pkgsrc-WIP-discuss archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: xmms2 buildlink3.mk file and the options framework



On Sun, Sep 18, 2005 at 09:53:45PM +0200, Thomas Klausner wrote:
> Usually, you include the packages that are needed when linking
> against the libraries the package provides.

It still confuses me a bit, sorry..

The default installation gives this:

$ ldd /usr/pkg/lib/xmms2/libxmms_* | grep -- -
         -liconv.2 => /usr/pkg/lib/libiconv.so.2
         -lidn.11 => /usr/pkg/lib/libidn.so.11
         -lssl.3 => /usr/lib/libssl.so.3
         -lcrypto.2 => /usr/lib/libcrypto.so.2
         -lz.0 => /usr/lib/libz.so.0
         -lcurl.3 => /usr/pkg/lib/libcurl.so.3
         -lm.0 => /usr/lib/libm387.so.0
         -lm.0 => /usr/lib/libm.so.0
         -lFLAC.7 => /usr/pkg/lib/libFLAC.so.7
         -lmad.0 => /usr/pkg/lib/libmad.so.0
         -lossaudio.0 => /usr/lib/libossaudio.so.0
         -logg.0 => /usr/pkg/lib/libogg.so.0
         -lm.0 => /usr/lib/libm387.so.0
         -lm.0 => /usr/lib/libm.so.0
         -lvorbis.0 => /usr/pkg/lib/libvorbis.so.0
         -lvorbisfile.3 => /usr/pkg/lib/libvorbisfile.so.3

$ ldd /usr/pkg/bin/xmms2*
/usr/pkg/bin/xmms2:
         -lxmmsclient => /usr/pkg/lib/libxmmsclient.so
         -liconv.2 => /usr/pkg/lib/libiconv.so.2
         -lintl.0 => /usr/lib/libintl.so.0
         -lglib-2.0.0 => /usr/pkg/lib/libglib-2.0.so.0
         -lxmmsclient-glib => /usr/pkg/lib/libxmmsclient-glib.so
         -lc.12 => /usr/lib/libc.so.12
/usr/pkg/bin/xmms2d:
         -liconv.2 => /usr/pkg/lib/libiconv.so.2
         -lintl.0 => /usr/lib/libintl.so.0
         -lglib-2.0.0 => /usr/pkg/lib/libglib-2.0.so.0
         -lgmodule-2.0.0 => /usr/pkg/lib/libgmodule-2.0.so.0
         -lpthread.0 => /usr/lib/libpthread.so.0
         -lgthread-2.0.0 => /usr/pkg/lib/libgthread-2.0.so.0
         -lsqlite3.0 => /usr/pkg/lib/libsqlite3.so.0
         -lm.0 => /usr/lib/libm387.so.0
         -lm.0 => /usr/lib/libm.so.0
         -lc.12 => /usr/lib/libc.so.12

Don't the needed packages vary when using the options framework?
Some things like FLAC or curl can be disabled.

When I include curl in the buildlink3.mk file but disable it through
the options framework it still is a dependency, no?

> Why do you think that this is directly related?
> Did you include the appropriate python mk file(s)?

I do not know.  I just included what is included in options.mk and it
does not work.  I also tried various other variables and mk files, but
with no success.  Disabling pyrex works.

Thank you very much for your help.

Leonard

Attachment: pgpcVwP5mFIIq.pgp
Description: PGP signature



Home | Main Index | Thread Index | Old Index