--- pwlib-1.5.2-r1.ebuild 2003-11-11 11:53:26.000000000 +0200 +++ pwlib-1.5.2-r2.ebuild 2003-11-11 07:47:15.000000000 +0200 @@ -36,16 +36,22 @@ src_compile() { if [ "`use ssl`" ]; then export OPENSSLFLAG=1 - export OPENSSLDIR=/usr + export OPENSSLDIR="/usr" export OPENSSLLIBS="-lssl -lcrypt" fi econf || die "configure failed" - # horrible hack to strip out -L/usr/lib to allow upgrades - # problem is it adds -L/usr/lib before -L${S} when SSL is enabled - sed -i -e "s:^\(LDFLAGS.*\)-L/usr/lib:\1:" ${S}/make/ptbuildopts.mak - sed -i -e "s:^\(LDFLAGS[\s]*=.*\) -L/usr/lib:\1:" ${S}/make/ptlib-config + # Horrible hack to strip out -L/usr/lib to allow upgrades + # problem is it adds -L/usr/lib before -L${S} when SSL is + # enabled. Same thing for -I/usr/include. + sed -i -e "s:^\(LDFLAGS.*\)-L/usr/lib:\1:" \ + -e "s:^\(STDCCFLAGS.*\)-I/usr/include:\1:" \ + ${S}/make/ptbuildopts.mak + sed -i -e "s:^\(LDFLAGS[\s]*=.*\) -L/usr/lib:\1:" \ + -e "s:^\(LDFLAGS[\s]*=.*\) -I/usr/include:\1:" \ + -e "s:^\(CCFLAGS[\s]*=.*\) -I/usr/include:\1:" \ + ${S}/make/ptlib-config emake opt || die "make failed" }