1 # Copyright 1999-2010 Gentoo Foundation
2 # Distributed under the terms of the GNU General Public License v2
7 inherit toolchain-funcs
9 DESCRIPTION="Color Management System (CMS) on the operating system level"
10 HOMEPAGE="http://www.oyranos.org/"
11 SRC_URI="mirror://sourceforge/${PN}/${P}.tar.gz"
15 KEYWORDS="~amd64 ~x86"
16 IUSE="debug doc X xinerama"
18 RDEPEND="app-admin/elektra
32 xinerama? ( x11-libs/libXinerama )
35 doc? ( app-doc/doxygen )
36 X? ( x11-proto/xf86vidmodeproto
37 xinerama? ( x11-proto/xineramaproto )
41 # remove X11R6/g++ from include/lib paths
42 sed -i -e 's:/X11R6::' configure{,.sh} {,fl_i18n/}makefile.in || die
43 sed -i -e 's: -I/usr/include/g++ : :' fl_i18n/makefile.in || die
45 # leave custom flags untouched, do not remove -O1 from LDFLAGS=-Wl,-O1
46 sed -i -e 's:STRIPOPT="sed s/-O.//":STRIPOPT="cat":' configure || die
47 sed -i -e 's:s/-O.// ;::' configure.sh || die
49 # ${S}/oyranos-config is not in PATH
50 sed -i -e 's:oyranos-config :./\0:' configure.sh makefile.in || die
52 # force version number at /usr/share/doc
53 sed -i -e 's:$(datadir)/doc/$(TARGET):\0-$(VERSION):' makefile.in || die
55 # configure.sh calls doxygen --help which is not needed w/o USE=doc, silence QA
56 use doc || { sed -i -e 's:doxygen:#\0:' configure.sh || die ; }
61 econf $(use_enable debug) \
62 $(use_enable X libX11) \
63 $(use_enable X libXext) \
64 $(use_enable X libXxf86vm) \
65 $(use_enable xinerama libXinerama)
69 emake lib${PN}.so.${PV} || die
74 emake DESTDIR="${D}" install_bin || die
75 emake DESTDIR="${D}" install_linguas || die
76 emake DESTDIR="${D}" install-icc || die
78 emake DESTDIR="${D}" install_docu || die
79 rm "${D}/usr/share/doc/${P}/COPYING" || die
81 dodoc AUTHORS ChangeLog README || die