Subject: pkgsrc/audio/libao on IRIX
To: None <tech-pkg@netbsd.org>
From: Georg Schwarz <geos@epost.de>
List: tech-pkg
Date: 01/29/2004 21:29:30
Hi,

I've made a patch for libao to compile on IRIX 5.3 (out of the box it
only compiles on IRIX 6.x).

Now there's still a different pkgsrc-related problem (when building for
IRIX):

env PATH=:/usr/local/pkg/bin$PATH LD_LIBRARY_PATH=/usr/local/pkg/lib
/usr/local/pkg/bin/bmake check
pkg_admin: libao-0.8.4: File /usr/local/pkg/lib/ao/plugins-2/liboss.a is
in +CONTENTS but not on filesystem!
pkg_admin: libao-0.8.4: File /usr/local/pkg/lib/ao/plugins-2/liboss.la
is in +CONTENTS but not on filesystem!
pkg_admin: libao-0.8.4: File /usr/local/pkg/lib/ao/plugins-2/liboss.so
is in +CONTENTS but not on filesystem!
pkg_admin: libao-0.8.4: File /usr/local/pkg/lib/ao/plugins-2/libsun.a is
in +CONTENTS but not on filesystem!
pkg_admin: libao-0.8.4: File /usr/local/pkg/lib/ao/plugins-2/libsun.la
is in +CONTENTS but not on filesystem!
pkg_admin: libao-0.8.4: File /usr/local/pkg/lib/ao/plugins-2/libsun.so
is in +CONTENTS but not on filesystem!
.

ls -la /usr/local/pkg/lib/ao/plugins-2/lib*
-rw-r--r--    1 root     sys         7312 Jan 26 22:24
/usr/local/pkg/lib/ao/plugins-2/libirix.a
-rwxr-xr-x    1 root     sys          797 Jan 26 22:24
/usr/local/pkg/lib/ao/plugins-2/libirix.la
-rwxr-xr-x    1 root     sys        92868 Jan 26 22:24
/usr/local/pkg/lib/ao/plugins-2/libirix.so

As you see it of course only installs the IRIX plugins.
They are not in PLIST however, whereas
${LIBOSS}lib/ao/plugins-2/liboss.a
${LIBOSS}lib/ao/plugins-2/liboss.la
${LIBOSS}lib/ao/plugins-2/liboss.so
${LIBSUN}lib/ao/plugins-2/libsun.a
${LIBSUN}lib/ao/plugins-2/libsun.la
${LIBSUN}lib/ao/plugins-2/libsun.so

are.
What would be the best way to fix that?

(BTW, PLIST contains @dirrm lib/ao/plugins-2. Shouldn't that rather be
@dirrm lib/ao?)

I think there is an appropriate addition needed in Makefile.common (as
well as accordingly in PLIST) to properly support IRIX in pkgsrc.

-- 
Georg Schwarz    http://home.pages.de/~schwarz/
 geos@epost.de     +49 177 8811442