# Copyright 1999-2000 Gentoo Technologies, Inc. # Distributed under the terms of the GNU General Public License, v2 or later # Author Achim Gottinger # $Header: /var/cvsroot/gentoo-x86/media-video/avifile/avifile-0.6.0.20010503-r1.ebuild,v 1.2 2001/10/07 08:05:06 danarmak Exp $ S=${WORKDIR}/${PN}-0.6.0 DESCRIPTION="Library for AVI-Files" SRC_URI="http://www.directfb.org/download/contrib/${P}.tar.gz http://divx.euro.ru/binaries-010122.zip" HOMEPAGE="http://divx.euro.ru/" DEPEND="virtual/glibc qt? ( >=x11-libs/qt-x11-2.3.1-r1 ) >=media-libs/libsdl-1.1.5 app-arch/unzip" RDEPEND="virtual/glibc qt? ( >=x11-libs/qt-x11-2.2.2 ) >=media-libs/libsdl-1.1.5" src_unpack() { unpack ${P}.tar.gz } src_compile() { local myconf if [ -z "`use qt`" ] ; then myconf="$myconf --disable-qt" else myconf="$myconf --with-qt-includes=$QTDIR/include --with-qt-libraries=$QTDIR/lib" fi if [ "`use nas`" ] ; then LDFLAGS="-L/usr/X11R6/lib -lXt" fi export CFLAGS=${CFLAGS/-O?/-O2} try LDFLAGS="$LDFLAGS" ./configure --prefix=/usr --host=${CHOST} \ --enable-quiet --disable-tsc $myconf # cp Makefile Makefile.orig # sed -e "s:/usr/lib/win32:${D}/usr/lib/win32:" \ # Makefile.orig > Makefile try make } src_install () { dodir /usr/lib /usr/bin dodir /usr/lib/win32 make prefix=${D}/usr install cd ${D}/usr/lib/win32 unzip ${DISTDIR}/binaries-010122.zip cd ${S} dodoc COPYING README cd doc dodoc CREDITS EXCEPTIONS FreeBSD LICENSING TODO dodoc VIDEO-PERFORMANCE WARNINGS }