libmpeg2: fix shlib packaging
authorKoen Kooi <koen@openembedded.org>
Sun, 29 Apr 2007 20:15:38 +0000 (20:15 +0000)
committerKoen Kooi <koen@openembedded.org>
Sun, 29 Apr 2007 20:15:38 +0000 (20:15 +0000)
* OE can't add a proper RREPLACES, so people installing generated packages will proably have to a form of -force-overwrite

packages/libmpeg2/libmpeg2_0.4.0b.bb

index 74b1ef8..3dcd312 100644 (file)
@@ -4,14 +4,18 @@ PRIORITY = "optional"
 DEPENDS = "virtual/libsdl"
 LICENSE = "GPL"
 
+PR = "r1"
+
 SRC_URI = "http://libmpeg2.sourceforge.net/files/mpeg2dec-${PV}.tar.gz \
                        file://Makefile.patch;patch=1 "
 S = "${WORKDIR}/mpeg2dec-0.4.0"
 
-inherit autotools
+inherit autotools lib_package
 
 EXTRA_OECONF="--enable-shared"
 
+LEAD_SONAME = "libmpeg2.so.0"
+
 do_stage() {
        oe_libinstall -a -so -C libmpeg2 libmpeg2 ${STAGING_LIBDIR}
        oe_libinstall -a -so -C libmpeg2/convert libmpeg2convert ${STAGING_LIBDIR}