? build.h ? formats/format_ogg_vorbis.c Index: formats/Makefile =================================================================== RCS file: /usr/cvsroot/asterisk/formats/Makefile,v retrieving revision 1.20 diff -u -r1.20 Makefile --- formats/Makefile 3 Jun 2005 21:52:00 -0000 1.20 +++ formats/Makefile 6 Jun 2005 18:37:55 -0000 @@ -21,6 +21,11 @@ # FORMAT_LIBS+=format_g723.so +# +# OGG/Vorbis format +# +FORMAT_LIBS+=$(shell if [ -f $(CROSS_COMPILE_TARGET)/usr/include/vorbis/codec.h ]; then echo "format_ogg_vorbis.so" ; fi) + GSMLIB=../codecs/gsm/lib/libgsm.a CFLAGS+=-fPIC @@ -39,6 +44,9 @@ format_mp3.so : format_mp3.o $(CC) $(SOLINK) -o $@ $< -lm + +format_ogg_vorbis.so : format_ogg_vorbis.o + $(CC) $(SOLINK) -o $@ $< -logg -lvorbis -lvorbisenc -lm install: all for x in $(FORMAT_LIBS); do $(INSTALL) -m 755 $$x $(DESTDIR)$(MODULES_DIR) ; done