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