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

(-)pwlib-1.5.2-r1.ebuild (-5 / +11 lines)
Lines 36-51 Link Here
36
src_compile() {
36
src_compile() {
37
	if [ "`use ssl`" ]; then
37
	if [ "`use ssl`" ]; then
38
		export OPENSSLFLAG=1
38
		export OPENSSLFLAG=1
39
		export OPENSSLDIR=/usr
39
		export OPENSSLDIR="/usr"
40
		export OPENSSLLIBS="-lssl -lcrypt"
40
		export OPENSSLLIBS="-lssl -lcrypt"
41
	fi
41
	fi
42
42
43
	econf || die "configure failed"
43
	econf || die "configure failed"
44
44
45
	# horrible hack to strip out -L/usr/lib to allow upgrades
45
	# Horrible hack to strip out -L/usr/lib to allow upgrades
46
	# problem is it adds -L/usr/lib before -L${S} when SSL is enabled
46
	# problem is it adds -L/usr/lib before -L${S} when SSL is
47
	sed -i -e "s:^\(LDFLAGS.*\)-L/usr/lib:\1:" ${S}/make/ptbuildopts.mak
47
	# enabled.  Same thing for -I/usr/include.
48
	sed -i -e "s:^\(LDFLAGS[\s]*=.*\) -L/usr/lib:\1:" ${S}/make/ptlib-config
48
	sed -i -e "s:^\(LDFLAGS.*\)-L/usr/lib:\1:" \
49
		-e "s:^\(STDCCFLAGS.*\)-I/usr/include:\1:" \
50
		${S}/make/ptbuildopts.mak
51
	sed -i -e "s:^\(LDFLAGS[\s]*=.*\) -L/usr/lib:\1:" \
52
		-e "s:^\(LDFLAGS[\s]*=.*\) -I/usr/include:\1:" \
53
		-e "s:^\(CCFLAGS[\s]*=.*\) -I/usr/include:\1:" \
54
		${S}/make/ptlib-config
49
55
50
	emake opt || die "make failed"
56
	emake opt || die "make failed"
51
}
57
}

Return to bug 33204