dvdauthor-0.7.2-r1.ebuild 1.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445
  1. # Copyright 1999-2017 Gentoo Foundation
  2. # Distributed under the terms of the GNU General Public License v2
  3. EAPI=6
  4. inherit eutils flag-o-matic toolchain-funcs
  5. DESCRIPTION="Tools for generating DVD files to be played on standalone DVD players"
  6. HOMEPAGE="http://dvdauthor.sourceforge.net/"
  7. SRC_URI="mirror://sourceforge/${PN}/${P}.tar.gz"
  8. LICENSE="GPL-2"
  9. SLOT="0"
  10. KEYWORDS="~amd64 ~ppc ~ppc64 ~sparc ~x86"
  11. IUSE="graphicsmagick +imagemagick"
  12. REQUIRED_USE="^^ ( graphicsmagick imagemagick )"
  13. RDEPEND=">=dev-libs/fribidi-0.19.2
  14. dev-libs/libxml2
  15. >=media-libs/freetype-2
  16. media-libs/libdvdread
  17. media-libs/libpng:0=
  18. graphicsmagick? ( media-gfx/graphicsmagick:= )
  19. imagemagick? ( media-gfx/imagemagick:= )"
  20. DEPEND="${RDEPEND}
  21. virtual/pkgconfig"
  22. S=${WORKDIR}/${PN}
  23. DOCS=( AUTHORS ChangeLog README TODO )
  24. src_prepare() {
  25. default
  26. if use graphicsmagick ; then
  27. sed -i -e 's:ExportImagePixels:dIsAbLeAuToMaGiC&:' configure \
  28. || die
  29. fi
  30. }
  31. src_configure() {
  32. use graphicsmagick && \
  33. append-cppflags "$($(tc-getPKG_CONFIG) --cflags GraphicsMagick)" #459976
  34. append-cppflags "$($(tc-getPKG_CONFIG) --cflags fribidi)" #417041
  35. econf
  36. }