diff options
Diffstat (limited to 'recipes/ffmpeg/ffmpeg-0.4.9-pre1/soname.patch')
-rw-r--r-- | recipes/ffmpeg/ffmpeg-0.4.9-pre1/soname.patch | 84 |
1 files changed, 84 insertions, 0 deletions
diff --git a/recipes/ffmpeg/ffmpeg-0.4.9-pre1/soname.patch b/recipes/ffmpeg/ffmpeg-0.4.9-pre1/soname.patch new file mode 100644 index 0000000000..80bf3937e4 --- /dev/null +++ b/recipes/ffmpeg/ffmpeg-0.4.9-pre1/soname.patch @@ -0,0 +1,84 @@ +--- ffmpeg-0.4.9-pre1/libavcodec/Makefile.orig 2008-02-23 19:34:18.000000000 -0500 ++++ ffmpeg-0.4.9-pre1/libavcodec/Makefile 2008-02-23 19:24:55.000000000 -0500 +@@ -7,7 +7,7 @@ include ../config.mak + VPATH=$(SRC_PATH)/libavcodec + + # NOTE: -I.. is needed to include config.h +-CFLAGS=$(OPTFLAGS) -DHAVE_AV_CONFIG_H -I.. -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -D_GNU_SOURCE ++CFLAGS=$(OPTFLAGS) -DHAVE_AV_CONFIG_H -I.. -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -D_GNU_SOURCE -fPIC -DPIC + + OBJS= common.o utils.o mem.o allcodecs.o \ + mpegvideo.o jrevdct.o jfdctfst.o jfdctint.o\ +@@ -89,9 +89,10 @@ endif + + ifeq ($(CONFIG_PP),yes) + ifeq ($(SHARED_PP),yes) +-EXTRALIBS += -lpostproc ++LIBS += -lpostproc + else + # LIBS += libpostproc/libpostproc.a ... should be fixed ++LIBS += libpostproc/libpostproc.a + OBJS += libpostproc/postprocess.o + endif + endif +@@ -197,7 +198,7 @@ ifeq ($(CONFIG_WIN32),yes) + $(CC) $(SHFLAGS) -Wl,--output-def,$(@:.dll=.def) -o $@ $(OBJS) $(EXTRALIBS) $(AMREXTRALIBS) + -lib /machine:i386 /def:$(@:.dll=.def) + else +- $(CC) $(SHFLAGS) -o $@ $(OBJS) $(EXTRALIBS) $(AMREXTRALIBS) $(LDFLAGS) ++ $(CC) $(SHFLAGS) -o $@ $(OBJS) $(EXTRALIBS) $(AMREXTRALIBS) $(LDFLAGS) -Wl,-soname -Wl,libavcodec.so.0 + endif + + dsputil.o: dsputil.c dsputil.h +@@ -269,8 +270,9 @@ ifeq ($(CONFIG_WIN32),yes) + install -s -m 755 $(SLIB) "$(prefix)" + else + install -d $(prefix)/lib +- install -s -m 755 $(SLIB) $(prefix)/lib/libavcodec-$(VERSION).so +- ln -sf libavcodec-$(VERSION).so $(prefix)/lib/libavcodec.so ++ install -s -m 755 $(SLIB) $(prefix)/lib/libavcodec.so.0.4.9 ++ ln -sf libavcodec.so.0.4.9 $(prefix)/lib/libavcodec.so.0 ++ ln -sf libavcodec.so.0.4.9 $(prefix)/lib/libavcodec.so + ldconfig || true + endif + else +--- ffmpeg-0.4.9-pre1/libavformat/Makefile.orig 2008-02-23 19:37:40.000000000 -0500 ++++ ffmpeg-0.4.9-pre1/libavformat/Makefile 2008-02-23 19:06:56.000000000 -0500 +@@ -6,7 +6,7 @@ include ../config.mak + + VPATH=$(SRC_PATH)/libavformat + +-CFLAGS=$(OPTFLAGS) -I.. -I$(SRC_PATH) -I$(SRC_PATH)/libavcodec -DHAVE_AV_CONFIG_H -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -D_GNU_SOURCE ++CFLAGS=$(OPTFLAGS) -I.. -I$(SRC_PATH) -I$(SRC_PATH)/libavcodec -DHAVE_AV_CONFIG_H -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -D_GNU_SOURCE -fPIC -DPIC + + OBJS= utils.o cutils.o os_support.o allformats.o + PPOBJS= +@@ -54,6 +54,7 @@ endif + ifeq ($(CONFIG_AUDIO_BEOS),yes) + PPOBJS+= beosaudio.o + EXTRALIBS+=-lbe -lmedia ++else + # this should be the default ! + EXTRALIBS+=-lavcodec -L../libavcodec + endif +@@ -93,7 +94,7 @@ ifeq ($(CONFIG_WIN32),yes) + $(CC) $(SHFLAGS) -Wl,--output-def,$(@:.dll=.def) -o $@ $(OBJS) $(PPOBJS) $(EXTRALIBS) $(VPATH)/../libavcodec/avcodec.dll + -lib /machine:i386 /def:$(@:.dll=.def) + else +- $(CC) $(SHFLAGS) -o $@ $(OBJS) $(PPOBJS) $(EXTRALIBS) ++ $(CC) $(SHFLAGS) -o $@ $(OBJS) $(PPOBJS) $(EXTRALIBS) -Wl,-soname -Wl,libavformat.so.0 + endif + + depend: $(SRCS) +@@ -105,8 +106,9 @@ ifeq ($(CONFIG_WIN32),yes) + install -s -m 755 $(SLIB) "$(prefix)" + else + install -d $(prefix)/lib +- install -s -m 755 $(SLIB) $(prefix)/lib/libavformat-$(VERSION).so +- ln -sf libavformat-$(VERSION).so $(prefix)/lib/libavformat.so ++ install -s -m 755 $(SLIB) $(prefix)/lib/libavformat.so.0.4.9 ++ ln -sf libavformat.so.0.4.9 $(prefix)/lib/libavformat.so.0 ++ ln -sf libavformat.so.0.4.9 $(prefix)/lib/libavformat.so + ldconfig || true + endif + else |