1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78 | # Copyright 1999-2010 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: $
EAPI=2
inherit base toolchain-funcs
DESCRIPTION="Colour Management System (CMS) on operating system level"
HOMEPAGE="http://www.oyranos.org/"
SRC_URI="mirror://sourceforge/${PN}/${P}.tar.gz"
LICENSE="GPL-2"
SLOT="0"
KEYWORDS="~amd64 ~x86"
IUSE="debug doc test X xinerama"
RDEPEND="app-admin/elektra
dev-libs/libxml2
media-libs/jpeg
media-libs/lcms
media-libs/libpng
sys-devel/gettext
sys-devel/libtool
sys-libs/zlib
virtual/opengl
X? (
x11-libs/libX11
x11-libs/libXext
x11-libs/libXxf86vm
x11-libs/fltk:1.1
)
xinerama? ( x11-libs/libXinerama )"
DEPEND="${RDEPEND}
doc? ( app-doc/doxygen )
X? ( x11-proto/xf86vidmodeproto )
xinerama? ( x11-proto/xineramaproto )"
src_prepare() {
# remove X11R6/g++ from include/lib paths
sed -i -e 's:/X11R6::' configure{,.sh} {,fl_i18n/}makefile.in || die
sed -i -e 's: -I/usr/include/g++ : :' fl_i18n/makefile.in
# leave custom flags untouched, do not remove -O1 from LDFLAGS=-Wl,-O1
sed -i -e 's:STRIPOPT="sed s/-O.//":STRIPOPT="cat":' configure || die
sed -i -e 's:s/-O.// ;::' configure.sh || die
# ${S}/oyranos-config is not in PATH
sed -i -e 's:oyranos-config :./oyranos-config :' configure.sh makefile.in || die
# force version number at /usr/share/doc
sed -i -e 's:$(datadir)/doc/$(TARGET):$(datadir)/doc/$(TARGET)-$(VERSION):' makefile.in || die
# configure.sh calls doxygen --help which is not needed w/o USE=doc, silence QA
use doc || { sed -i -e 's:doxygen:#doxygen:' configure.sh || die ; }
}
src_configure() {
export CC=$(tc-getCC)
export CXX=$(tc-getCXX)
econf $(use_enable debug) \
$(use_enable X libX11) \
$(use_enable X libXext) \
$(use_enable X libXxf86vm) \
$(use_enable xinerama libXinerama)
}
src_compile() {
for target in lib${PN}.so.${PV} all ; do
emake ${target} || die "emake ${target} failed"
done
}
src_install() {
my_doc=""
use doc && mydoc="install_docu"
base_src_install install_bin install_linguas install-icc $my_doc
}
|
This item will be deleted in 6 days
URL: http://dpaste.com/184903/