Subject: imlib2/buildlink3.mk
To: None <tech-pkg@NetBSD.org>
From: Thomas Klausner <wiz@NetBSD.org>
List: tech-pkg
Date: 07/28/2005 21:14:58
Hi!

imlib2 provides a library libImlib2.so that is linked
against:
/usr/pkg/lib/libImlib2.so:
         -lz.0 => /usr/lib/libz.so.0
         -lfreetype.6 => /usr/pkg/lib/libfreetype.so.6
         -lX11.6 => /usr/X11R6/lib/libX11.so.6
         -lXext.6 => /usr/X11R6/lib/libXext.so.6
         -lm.0 => /usr/lib/libm387.so.0
         -lm.0 => /usr/lib/libm.so.0
and it provides modules for support for various formats (list below).

The buildlink3.mk file includes:
.include "../../devel/libltdl/buildlink3.mk"
.include "../../graphics/freetype2/buildlink3.mk"
.include "../../graphics/jpeg/buildlink3.mk"
.include "../../graphics/libungif/buildlink3.mk"
.include "../../graphics/png/buildlink3.mk"
.include "../../graphics/tiff/buildlink3.mk"

I think it should only include those against which libImlib2
is linked, i.e.
zlib, freetype2, x11

Perhaps libltdl, but I'm not even sure about that one.

Am I right, or is there a point to adding the others,
that are only needed for dynamically loaded modules,
too?
 Thomas

/usr/pkg/lib/imlib2/filters/bumpmap.so:
         -lz.0 => /usr/lib/libz.so.0
         -lfreetype.6 => /usr/pkg/lib/libfreetype.so.6
         -lX11.6 => /usr/X11R6/lib/libX11.so.6
         -lXext.6 => /usr/X11R6/lib/libXext.so.6
         -lm.0 => /usr/lib/libm387.so.0
         -lm.0 => /usr/lib/libm.so.0
         -lImlib2.1 => /usr/pkg/lib/libImlib2.so.1
/usr/pkg/lib/imlib2/filters/colormod.so:
         -lz.0 => /usr/lib/libz.so.0
         -lfreetype.6 => /usr/pkg/lib/libfreetype.so.6
         -lX11.6 => /usr/X11R6/lib/libX11.so.6
         -lXext.6 => /usr/X11R6/lib/libXext.so.6
         -lm.0 => /usr/lib/libm387.so.0
         -lm.0 => /usr/lib/libm.so.0
         -lImlib2.1 => /usr/pkg/lib/libImlib2.so.1
/usr/pkg/lib/imlib2/filters/testfilter.so:
         -lz.0 => /usr/lib/libz.so.0
         -lfreetype.6 => /usr/pkg/lib/libfreetype.so.6
         -lX11.6 => /usr/X11R6/lib/libX11.so.6
         -lXext.6 => /usr/X11R6/lib/libXext.so.6
         -lm.0 => /usr/lib/libm387.so.0
         -lm.0 => /usr/lib/libm.so.0
         -lImlib2.1 => /usr/pkg/lib/libImlib2.so.1
/usr/pkg/lib/imlib2/loaders/argb.so:
         -lz.0 => /usr/lib/libz.so.0
         -lfreetype.6 => /usr/pkg/lib/libfreetype.so.6
         -lX11.6 => /usr/X11R6/lib/libX11.so.6
         -lXext.6 => /usr/X11R6/lib/libXext.so.6
         -lm.0 => /usr/lib/libm387.so.0
         -lm.0 => /usr/lib/libm.so.0
         -lImlib2.1 => /usr/pkg/lib/libImlib2.so.1
/usr/pkg/lib/imlib2/loaders/bmp.so:
         -lz.0 => /usr/lib/libz.so.0
         -lfreetype.6 => /usr/pkg/lib/libfreetype.so.6
         -lX11.6 => /usr/X11R6/lib/libX11.so.6
         -lXext.6 => /usr/X11R6/lib/libXext.so.6
         -lm.0 => /usr/lib/libm387.so.0
         -lm.0 => /usr/lib/libm.so.0
         -lImlib2.1 => /usr/pkg/lib/libImlib2.so.1
/usr/pkg/lib/imlib2/loaders/bz2.so:
         -lbz2.1 => /usr/lib/libbz2.so.1
         -lz.0 => /usr/lib/libz.so.0
         -lfreetype.6 => /usr/pkg/lib/libfreetype.so.6
         -lX11.6 => /usr/X11R6/lib/libX11.so.6
         -lXext.6 => /usr/X11R6/lib/libXext.so.6
         -lm.0 => /usr/lib/libm387.so.0
         -lm.0 => /usr/lib/libm.so.0
         -lImlib2.1 => /usr/pkg/lib/libImlib2.so.1
/usr/pkg/lib/imlib2/loaders/gif.so:
         -lungif.4 => /usr/pkg/lib/libungif.so.4
         -lz.0 => /usr/lib/libz.so.0
         -lfreetype.6 => /usr/pkg/lib/libfreetype.so.6
         -lX11.6 => /usr/X11R6/lib/libX11.so.6
         -lXext.6 => /usr/X11R6/lib/libXext.so.6
         -lm.0 => /usr/lib/libm387.so.0
         -lm.0 => /usr/lib/libm.so.0
         -lImlib2.1 => /usr/pkg/lib/libImlib2.so.1
/usr/pkg/lib/imlib2/loaders/jpeg.so:
         -ljpeg.62 => /usr/pkg/lib/libjpeg.so.62
         -lz.0 => /usr/lib/libz.so.0
         -lfreetype.6 => /usr/pkg/lib/libfreetype.so.6
         -lX11.6 => /usr/X11R6/lib/libX11.so.6
         -lXext.6 => /usr/X11R6/lib/libXext.so.6
         -lm.0 => /usr/lib/libm387.so.0
         -lm.0 => /usr/lib/libm.so.0
         -lImlib2.1 => /usr/pkg/lib/libImlib2.so.1
/usr/pkg/lib/imlib2/loaders/lbm.so:
         -lz.0 => /usr/lib/libz.so.0
         -lfreetype.6 => /usr/pkg/lib/libfreetype.so.6
         -lX11.6 => /usr/X11R6/lib/libX11.so.6
         -lXext.6 => /usr/X11R6/lib/libXext.so.6
         -lm.0 => /usr/lib/libm387.so.0
         -lm.0 => /usr/lib/libm.so.0
         -lImlib2.1 => /usr/pkg/lib/libImlib2.so.1
/usr/pkg/lib/imlib2/loaders/png.so:
         -lz.0 => /usr/lib/libz.so.0
         -lm.0 => /usr/lib/libm387.so.0
         -lm.0 => /usr/lib/libm.so.0
         -lpng.3 => /usr/pkg/lib/libpng.so.3
         -lfreetype.6 => /usr/pkg/lib/libfreetype.so.6
         -lX11.6 => /usr/X11R6/lib/libX11.so.6
         -lXext.6 => /usr/X11R6/lib/libXext.so.6
         -lImlib2.1 => /usr/pkg/lib/libImlib2.so.1
/usr/pkg/lib/imlib2/loaders/pnm.so:
         -lz.0 => /usr/lib/libz.so.0
         -lfreetype.6 => /usr/pkg/lib/libfreetype.so.6
         -lX11.6 => /usr/X11R6/lib/libX11.so.6
         -lXext.6 => /usr/X11R6/lib/libXext.so.6
         -lm.0 => /usr/lib/libm387.so.0
         -lm.0 => /usr/lib/libm.so.0
         -lImlib2.1 => /usr/pkg/lib/libImlib2.so.1
/usr/pkg/lib/imlib2/loaders/tga.so:
         -lz.0 => /usr/lib/libz.so.0
         -lfreetype.6 => /usr/pkg/lib/libfreetype.so.6
         -lX11.6 => /usr/X11R6/lib/libX11.so.6
         -lXext.6 => /usr/X11R6/lib/libXext.so.6
         -lm.0 => /usr/lib/libm387.so.0
         -lm.0 => /usr/lib/libm.so.0
         -lImlib2.1 => /usr/pkg/lib/libImlib2.so.1
/usr/pkg/lib/imlib2/loaders/tiff.so:
         -ljpeg.62 => /usr/pkg/lib/libjpeg.so.62
         -lz.0 => /usr/lib/libz.so.0
         -lm.0 => /usr/lib/libm387.so.0
         -lm.0 => /usr/lib/libm.so.0
         -lc.12 => /usr/lib/libc.so.12
         -ltiff.3 => /usr/pkg/lib/libtiff.so.3
         -lfreetype.6 => /usr/pkg/lib/libfreetype.so.6
         -lX11.6 => /usr/X11R6/lib/libX11.so.6
         -lXext.6 => /usr/X11R6/lib/libXext.so.6
         -lImlib2.1 => /usr/pkg/lib/libImlib2.so.1
/usr/pkg/lib/imlib2/loaders/xpm.so:
         -lz.0 => /usr/lib/libz.so.0
         -lfreetype.6 => /usr/pkg/lib/libfreetype.so.6
         -lX11.6 => /usr/X11R6/lib/libX11.so.6
         -lXext.6 => /usr/X11R6/lib/libXext.so.6
         -lm.0 => /usr/lib/libm387.so.0
         -lm.0 => /usr/lib/libm.so.0
         -lImlib2.1 => /usr/pkg/lib/libImlib2.so.1
/usr/pkg/lib/imlib2/loaders/zlib.so:
         -lz.0 => /usr/lib/libz.so.0
         -lfreetype.6 => /usr/pkg/lib/libfreetype.so.6
         -lX11.6 => /usr/X11R6/lib/libX11.so.6
         -lXext.6 => /usr/X11R6/lib/libXext.so.6
         -lm.0 => /usr/lib/libm387.so.0
         -lm.0 => /usr/lib/libm.so.0
         -lImlib2.1 => /usr/pkg/lib/libImlib2.so.1