|
|
|
@ -25,21 +25,18 @@ src_compile() {
|
|
|
|
|
if use debug; then
|
|
|
|
|
CFLAGS=""
|
|
|
|
|
CXXFLAGS=""
|
|
|
|
|
LDFLAGS=""
|
|
|
|
|
LDFLAGS="-Wl,-soname,${PN}.so.$(ver_cut 1)"
|
|
|
|
|
fi
|
|
|
|
|
TARGET_SPEC_FLAGS=$(usex debug yes no) emake STRIP=: $(usev debug)
|
|
|
|
|
use debug && ( mv -f ${PN}{-debug,}.so &&
|
|
|
|
|
mv -f ${PN}.so{,.${PV}} &&
|
|
|
|
|
mv -f ${PN}{-debug,}.a || die "failed to move debug targets into place")
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
src_install() {
|
|
|
|
|
dolib.a ${PN}.a
|
|
|
|
|
if use debug; then
|
|
|
|
|
dolib.so ${PN}.so
|
|
|
|
|
else
|
|
|
|
|
dolib.so ${PN}.so.${PV}
|
|
|
|
|
dosym ${PN}.so.${PV} /usr/$(get_libdir)/${PN}.so.$(ver_cut 1)
|
|
|
|
|
dosym ${PN}.so.$(ver_cut 1) /usr/$(get_libdir)/${PN}.so
|
|
|
|
|
fi
|
|
|
|
|
cd include && doheader -r .
|
|
|
|
|
}
|
|
|
|
|