Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
View | Details | Raw Unified | Return to bug 86596
Collapse All | Expand All

(-)/usr/portage/www-client/links/links-2.1_pre15.ebuild (-44 / +23 lines)
Lines 26-35 Link Here
26
	png? ( >=media-libs/libpng-1.2.1 )
26
	png? ( >=media-libs/libpng-1.2.1 )
27
	jpeg? ( >=media-libs/jpeg-6b )
27
	jpeg? ( >=media-libs/jpeg-6b )
28
	tiff? ( >=media-libs/tiff-3.5.7 )
28
	tiff? ( >=media-libs/tiff-3.5.7 )
29
	svga? ( >=media-libs/svgalib-1.4.3 >=media-libs/libpng-1.2.1 )
29
	svga? ( >=media-libs/svgalib-1.4.3
30
	X? ( virtual/x11 >=media-libs/libpng-1.2.1 )
30
		>=media-libs/libpng-1.2.1 )
31
	X? ( virtual/x11
32
		>=media-libs/libpng-1.2.1 )
31
	directfb? ( dev-libs/DirectFB )
33
	directfb? ( dev-libs/DirectFB )
32
	fbcon? ( >=media-libs/libpng-1.2.1 sys-libs/gpm )
34
	fbcon? ( >=media-libs/libpng-1.2.1
35
		sys-libs/gpm )
33
	sys-libs/zlib
36
	sys-libs/zlib
34
	virtual/libc
37
	virtual/libc
35
	sys-libs/ncurses"
38
	sys-libs/ncurses"
Lines 64-118 Link Here
64
}
67
}
65
68
66
src_compile (){
69
src_compile (){
67
68
	local myconf
70
	local myconf
69
	myconf="--program-suffix=2"
70
71
71
	use X \
72
	if use X || use fbcon || use directfb || use svga; then
72
		&& myconf="${myconf} --enable-graphics --with-x" \
73
		myconf="${myconf} --enable-graphics"
73
		|| myconf="${myconf} --without-x"
74
	fi
74
75
	use png \
76
		&& myconf="${myconf} --with-libpng" \
77
		|| myconf="${myconf} --without-libpng"
78
79
	use jpeg \
80
		&& myconf="${myconf} --with-libjpeg" \
81
		|| myconf="${myconf} --without-libjpeg"
82
83
	use tiff \
84
		&& myconf="${myconf} --with-libtiff" \
85
		|| myconf="${myconf} --without-libtiff"
86
87
	use svga \
88
		&& myconf="${myconf} --enable-graphics --with-svgalib" \
89
		|| myconf="${myconf} --without-svgalib"
90
91
	use fbcon \
92
		&& myconf="${myconf} --enable-graphics --with-fb" \
93
		|| myconf="${myconf} --without-fb"
94
95
	use directfb \
96
		&& myconf="${myconf} --enable-graphics --with-directfb" \
97
		|| myconf="${myconf} --without-directfb"
98
99
	use ssl \
100
		&& myconf="${myconf} --with-ssl" \
101
		|| myconf="${myconf} --without-ssl"
102
103
	use javascript \
104
		&& myconf="${myconf} --enable-javascript" \
105
		|| myconf="${myconf} --disable-javascript"
106
75
107
	# Note: --enable-static breaks.
76
	# Note: --enable-static breaks.
108
77
109
	# Note: ./configure only support 'gpm' features auto-detection, so if
78
	# Note: ./configure only support 'gpm' features auto-detection, so
110
	# 'sys-libs/gpm' is compiled on your system, you'll compile links
79
	# we use the autoconf trick
111
	# with gpm support ...
80
	( use gpm || use fbcon ) || export ac_cv_lib_gpm_Gpm_Open="no"
112
81
113
	export LANG=C
82
	export LANG=C
114
83
115
	econf ${myconf} || die "configure failed"
84
	econf --program-suffix=2 \
85
		$(use_with X x) \
86
		$(use_with png libpng) \
87
		$(use_with jpeg libjpeg) \
88
		$(use_with tiff libtiff) \
89
		$(use_with svga svgalib) \
90
		$(use_with fbcon fb) \
91
		$(use_with directfb) \
92
		$(use_with ssl) \
93
		$(use_enable javascript) \
94
		${myconf} || die "configure failed"
116
	emake || die "make failed"
95
	emake || die "make failed"
117
}
96
}
118
97

Return to bug 86596