|
|
src_compile() { | src_compile() { |
if [ "`use ssl`" ]; then | if [ "`use ssl`" ]; then |
export OPENSSLFLAG=1 | export OPENSSLFLAG=1 |
export OPENSSLDIR=/usr |
export OPENSSLDIR="/usr" |
export OPENSSLLIBS="-lssl -lcrypt" | export OPENSSLLIBS="-lssl -lcrypt" |
fi | fi |
| |
econf || die "configure failed" | econf || die "configure failed" |
| |
# horrible hack to strip out -L/usr/lib to allow upgrades |
# 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 |
# problem is it adds -L/usr/lib before -L${S} when SSL is |
sed -i -e "s:^\(LDFLAGS.*\)-L/usr/lib:\1:" ${S}/make/ptbuildopts.mak |
# enabled. Same thing for -I/usr/include. |
sed -i -e "s:^\(LDFLAGS[\s]*=.*\) -L/usr/lib:\1:" ${S}/make/ptlib-config |
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" | emake opt || die "make failed" |
} | } |