summaryrefslogtreecommitdiff
path: root/libvorbis/libvorbis_1.0.1.oe
blob: 1ec0c01f24fce560b5f18bd6fa0df7110236c5dd (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
SECTION="libs"
RDEPENDS=libc6 libogg
DEPENDS=virtual/libc libogg

SRC_URI = http://www.vorbis.com/files/${PV}/unix/libvorbis-${PV}.tar.gz

inherit autotools libtool

EXTRA_OECONF = '--with-ogg-libraries=${STAGING_LIBDIR} \
	        --with-ogg-includes=${STAGING_INCDIR}'

do_stage () {
	install -m 0644 lib/.libs/libvorbis.lai ${STAGING_LIBDIR}/libvorbis.la
	install -m 0644 lib/.libs/libvorbis.a ${STAGING_LIBDIR}/
	install -m 0755 lib/.libs/libvorbis.so.0.3.0 ${STAGING_LIBDIR}/
	ln -sf libvorbis.so.0.3.0 ${STAGING_LIBDIR}/libvorbis.so.0
	ln -sf libvorbis.so.0.3.0 ${STAGING_LIBDIR}/libvorbis.so

	install -m 0644 lib/.libs/libvorbisfile.lai ${STAGING_LIBDIR}/libvorbisfile.la
	install -m 0644 lib/.libs/libvorbisfile.a ${STAGING_LIBDIR}/
	install -m 0755 lib/.libs/libvorbisfile.so.3.1.0 ${STAGING_LIBDIR}/
	ln -sf libvorbisfile.so.3.1.0 ${STAGING_LIBDIR}/libvorbisfile.so.3
	ln -sf libvorbisfile.so.3.1.0 ${STAGING_LIBDIR}/libvorbisfile.so

	install -m 0644 lib/.libs/libvorbisenc.lai ${STAGING_LIBDIR}/libvorbisenc.la
	install -m 0644 lib/.libs/libvorbisenc.a ${STAGING_LIBDIR}/
	install -m 0755 lib/.libs/libvorbisenc.so.2.0.0 ${STAGING_LIBDIR}/
	ln -sf libvorbisenc.so.2.0.0 ${STAGING_LIBDIR}/libvorbisenc.so.2
	ln -sf libvorbisenc.so.2.0.0 ${STAGING_LIBDIR}/libvorbisenc.so

	install -d ${STAGING_INCDIR}/vorbis
	install -m 0644 include/vorbis/vorbisenc.h \
			include/vorbis/vorbisfile.h \
			include/vorbis/codec.h ${STAGING_INCDIR}/vorbis/

	install -m 0644 vorbis.pc vorbisfile.pc vorbisenc.pc ${PKG_CONFIG_PATH}/
}