# Copyright 1999-2004 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 # $Header: /var/cvsroot/gentoo-x86/media-video/dvdstyler/dvdstyler-1.05-r1.ebuild,v 1.2 2004/10/05 00:05:56 pkdawson Exp $ inherit eutils MY_P=DVDStyler-${PV} DESCRIPTION="DVD filesystem Builder" HOMEPAGE="http://dvdstyler.sourceforge.net" SRC_URI="mirror://sourceforge/dvdstyler/${MY_P}.tar.gz" RESTRICT="nomirror" LICENSE="GPL-2" SLOT="0" KEYWORDS="~x86" IUSE="" S=${WORKDIR}/${MY_P} RDEPEND="virtual/x11 >=x11-libs/wxGTK-2.4.2 >=media-video/mjpegtools-1.6.2 >=media-video/dvdauthor-0.6.10 media-video/mpgtx >=gnome-base/libgnomeui-2.0 x11-libs/gtk+ dev-libs/expat virtual/libc media-libs/tiff media-libs/libpng media-libs/jpeg dev-libs/glib sys-libs/zlib app-cdr/dvd+rw-tools app-cdr/cdrtools" DEPEND="${RDEPEND} dev-util/pkgconfig sys-devel/gcc sys-devel/automake >=sys-apps/sed-4" # sys-devel/autoconf" #PDEPEND= kde? and gnome src_unpack() { unpack ${A} epatch ${FILESDIR}/${PV}-AutoMakefile.patch epatch ${FILESDIR}/${PV}-code.patch epatch ${FILESDIR}/${PV}-gcc34.patch sed -i -e "s:-O3::g" -e "s:wxXML/expat/Makefile::g" ${S}/configure.in ${S}/configure cd ${S} # use installed expat rm -rf wxXML/expat if [ -f ${ROOT}usr/share/aclocal/wxwin.m4 ]; then rm -f wxwin.m4 ln -s ${ROOT}usr/share/aclocal/wxwin.m4 fi if [ -f ${ROOT}usr/include/wx/xrc/xml.h ]; then cd wxXML rm -f xml.h ln -s ${ROOT}usr/include/wx/xrc/xml.h fi } src_compile() { # Propergate automake patch # autoconf automake econf --with-wx-config=${ROOT}/usr/bin/wxgtk-2.4-config \ || die "Failed to configure" sed -i -e "s:^prefix=.*${PN}\$::g" configure* sed -i -e "s:^dvdstyler_LDADD =:dvdstyler_LDADD =-lexpat:" src/Makefile.in emake -C wxXML CPPFLAGS=-DSYSEXPAT=1 || die "Failed to make wxXML helpers" emake || die "Failed to make" } src_install() { emake DESTDIR=${D} install mv ${D}usr/share/docs/DVDStyler/silence.mp2 ${D}usr/share/DVDStyler mv ${D}usr/share/docs/DVDStyler ${D}usr/share/docs/${PF} }