diff options
author | Samuli Suominen <ssuominen@gentoo.org> | 2012-09-06 13:03:41 +0000 |
---|---|---|
committer | Samuli Suominen <ssuominen@gentoo.org> | 2012-09-06 13:03:41 +0000 |
commit | 1c2eb79d6f7ac9780e04ca69fa23bd65bdbcca60 (patch) | |
tree | 1cb7285a588aa645b89a24c7dfb806ee56bd7232 /media-video/subtitler-yuv | |
parent | typing error (diff) | |
download | gentoo-2-1c2eb79d6f7ac9780e04ca69fa23bd65bdbcca60.tar.gz gentoo-2-1c2eb79d6f7ac9780e04ca69fa23bd65bdbcca60.tar.bz2 gentoo-2-1c2eb79d6f7ac9780e04ca69fa23bd65bdbcca60.zip |
Respect optimization flags from the environment (and more) wrt #335218 by Diego Elio Pettenò. Link to libX11 instead of unsed libXpm for missing symbols like "XPutImage" wrt #368877 by Diego Elio Pettenò.
(Portage version: 2.2.0_alpha124/cvs/Linux x86_64)
Diffstat (limited to 'media-video/subtitler-yuv')
-rw-r--r-- | media-video/subtitler-yuv/ChangeLog | 10 | ||||
-rw-r--r-- | media-video/subtitler-yuv/subtitler-yuv-0.6.5.ebuild | 42 |
2 files changed, 32 insertions, 20 deletions
diff --git a/media-video/subtitler-yuv/ChangeLog b/media-video/subtitler-yuv/ChangeLog index 32cd61f52862..abcc96bdd7bd 100644 --- a/media-video/subtitler-yuv/ChangeLog +++ b/media-video/subtitler-yuv/ChangeLog @@ -1,6 +1,12 @@ # ChangeLog for media-video/subtitler-yuv -# Copyright 1999-2010 Gentoo Foundation; Distributed under the GPL v2 -# $Header: /var/cvsroot/gentoo-x86/media-video/subtitler-yuv/ChangeLog,v 1.7 2010/07/21 00:01:16 sbriesen Exp $ +# Copyright 1999-2012 Gentoo Foundation; Distributed under the GPL v2 +# $Header: /var/cvsroot/gentoo-x86/media-video/subtitler-yuv/ChangeLog,v 1.8 2012/09/06 13:03:41 ssuominen Exp $ + + 06 Sep 2012; Samuli Suominen <ssuominen@gentoo.org> + subtitler-yuv-0.6.5.ebuild: + Respect optimization flags from the environment (and more) wrt #335218 by + Diego Elio Pettenò. Link to libX11 instead of unsed libXpm for missing + symbols like "XPutImage" wrt #368877 by Diego Elio Pettenò. 21 Jul 2010; Stefan Briesenick <sbriesen@gentoo.org> subtitler-yuv-0.6.5.ebuild: diff --git a/media-video/subtitler-yuv/subtitler-yuv-0.6.5.ebuild b/media-video/subtitler-yuv/subtitler-yuv-0.6.5.ebuild index fd61d46ade0d..4ac4a4d55a50 100644 --- a/media-video/subtitler-yuv/subtitler-yuv-0.6.5.ebuild +++ b/media-video/subtitler-yuv/subtitler-yuv-0.6.5.ebuild @@ -1,36 +1,42 @@ -# Copyright 1999-2010 Gentoo Foundation +# Copyright 1999-2012 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 -# $Header: /var/cvsroot/gentoo-x86/media-video/subtitler-yuv/subtitler-yuv-0.6.5.ebuild,v 1.4 2010/07/21 00:01:16 sbriesen Exp $ - -EAPI="2" +# $Header: /var/cvsroot/gentoo-x86/media-video/subtitler-yuv/subtitler-yuv-0.6.5.ebuild,v 1.5 2012/09/06 13:03:41 ssuominen Exp $ +EAPI=4 inherit toolchain-funcs DESCRIPTION="for mjpegtools for adding subtitles, pictures, and effects embedded in the picture" -HOMEPAGE="http://home.zonnet.nl/panteltje/subtitles/" -#SRC_URI="http://home.zonnet.nl/panteltje/subtitles/${P}.tgz" -# using ibibio mirror as the webpage itself seems to be offline at the moment -SRC_URI="http://www.ibiblio.org/pub/linux/apps/video/subtitler-yuv-0.6.5.tgz" +HOMEPAGE="http://panteltje.com/panteltje/subtitles/" +SRC_URI="mirror://gentoo/${P}.tgz" + LICENSE="GPL-2" SLOT="0" -KEYWORDS="~amd64 ~x86 ~ppc" +KEYWORDS="~amd64 ~ppc ~x86" IUSE="" -DEPEND="x11-libs/libXaw" -RDEPEND="${DEPEND}" + +RDEPEND="x11-libs/libX11 + x11-libs/libXaw + x11-libs/libXt" +DEPEND="${RDEPEND}" src_prepare() { - sed -i -e 's:/usr/X11R6:/usr:' \ - -e 's:gcc:$(CC):g' \ - Makefile || die "sed failed in Makefile" + sed -i \ + -e '/^CFLAGS/s:= -O2:+=:' \ + -e '/CFLAGS/s:gcc:$(CC):' \ + -e 's:gcc -o:$(CC) $(LDFLAGS) -o:' \ + -e 's:-L/usr/X11R6/lib/::' \ + -e 's:-lXpm:-lX11:' \ + Makefile || die } src_compile() { - emake CC="$(tc-getCC)" CFLAGS="${CFLAGS}" || die "emake failed" + tc-export CC + emake } src_install() { - dobin subtitler-yuv - dodoc CHANGES HOWTO_USE_THIS README README.COLOR.PROCESSOR README.PPML + dobin ${PN} + dodoc CHANGES HOWTO_USE_THIS README* insinto /usr/share/${PN} - doins demo-yuv.ppml rose.ppm sun.ppm mp-arial-iso-8859-1.zip + doins *.{ppm,ppml,zip} } |