Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 58006 - MAC OSX libvorbis
Summary: MAC OSX libvorbis
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: PPC All
: High normal (vote)
Assignee: osx porters
Depends on: 58848
  Show dependency tree
Reported: 2004-07-22 20:01 UTC by sanityimp
Modified: 2005-02-06 13:33 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---

Modified ebuild (libvorbis-1.0.1-r2.ebuild,1.99 KB, text/plain)
2004-07-28 18:04 UTC, Vincent Strubel

Note You need to log in before you can comment on or make changes to this bug.
Description sanityimp 2004-07-22 20:01:42 UTC
the ebuild doesnt compile because the packages defaults to trying to build a static package, where mac osx doesnt ship with static libs (??) --disable-static on ./configure helps but it chokes on examples? if you can disable the examples, itll work fine.

Reproducible: Always
Steps to Reproduce:
Comment 1 Seemant Kulleen (RETIRED) gentoo-dev 2004-07-22 22:53:30 UTC
Alexander, can you and the macos team please create a mail alias and bugzilla
login for that alias for macos@gentoo please
Comment 2 Pieter Van den Abeele (RETIRED) gentoo-dev 2004-07-23 06:56:45 UTC is our alias.
Comment 3 Vincent Strubel 2004-07-28 18:02:02 UTC
Indeed it (libvorbis-1.0.1-r2) fails on examples because of missing -lcrt0.o (OSX only has crt1.o). Works okay without the examples (and a workaround for invalid symlinks on .so). I've put all of this in an ebuild, and it emerged properly (CFLAGS="-Os -pipe -faltivec -mcpu=7450 -mtune=7450", USE="macos X berkdb ldap mysql perl python ruby")... I don't know how important the examples are, but maybe you could put it in ~macos anyway.
It also tested successfully with vorbis-tools (will make a separate bug for that). 

Diff on the original ebuild is :
--- libvorbis-1.0.1-r2.ebuild.orig      Thu Jul 29 04:15:24 2004
+++ libvorbis-1.0.1-r2.ebuild   Thu Jul 29 04:16:15 2004
@@ -48,13 +48,19 @@
        append-ldflags -fPIC
        econf || die
+       use macos && cd ${S} && sed -e 's/examples//' Makefile > Makefile.tmp && mv Makefile.tmp Makefile
        emake || die
 src_install() {
        make DESTDIR=${D} install || die
-       dosym /usr/lib/ /usr/lib/
-       dosym /usr/lib/ /usr/lib/
+       if [ `use macos` ]; then
+               dosym /usr/lib/libvorbisfile.3.1.0.dylib /usr/lib/libvorbisfile.0.dylib
+               dosym /usr/lib/libvorbisenc.2.0.0.dylib /usr/lib/libvorbisenc.0.dylib
+       else
+               dosym /usr/lib/ /usr/lib/
+               dosym /usr/lib/ /usr/lib/
+       fi
        rm -rf ${D}/usr/share/doc
        dodoc AUTHORS COPYING README todo.txt

Comment 4 Vincent Strubel 2004-07-28 18:04:16 UTC
Created attachment 36355 [details]
Modified ebuild

This builds successfully, and seems to work as far as I've tested.
Comment 5 Michael Hanselmann (hansmi) (RETIRED) gentoo-dev 2004-09-12 03:33:55 UTC
Done in CVS.
Comment 6 Hasan Khalil (RETIRED) gentoo-dev 2005-02-06 13:33:09 UTC
Closing out bugs that've been resolved for a while now...