source:
scripts/untested/blfs-patches/libmpeg3-1.5.4-shared_libmpeg3-1.patch@
8c8c5ab
Last change on this file since 8c8c5ab was 617118d, checked in by , 19 years ago | |
---|---|
|
|
File size: 4.0 KB |
-
mpeg3split.c
diff -uNr libmpeg3-1.5.4-orig/mpeg3split.c libmpeg3-1.5.4/mpeg3split.c
old new 2 2 #include <stdlib.h> 3 3 #include <string.h> 4 4 5 #include "mpeg3private.h" 5 6 #include "mpeg3private.inc" 6 7 7 8 void copy_data(FILE *out, FILE *in, long bytes) -
libmpeg3-1.5.
old new 2 2 NASM = nasm 3 3 USE_MMX = 0 4 4 USE_CSS = 1 5 A52DIR := $(shell expr a52dec* ) 5 A52DIR := /usr 6 PREFIX = /usr 7 # override this to install to lib64 8 LIBDIR = lib 6 9 7 10 8 11 … … 52 55 CFLAGS += -DHAVE_MMX 53 56 ASMOBJS = $(OBJDIR)/video/mmxidct.o 54 57 NASMOBJS = $(OBJDIR)/video/reconmmx.o 58 else 59 CFLAGS += -fPIC 55 60 endif 56 61 57 62 … … 61 66 62 67 CFLAGS += \ 63 68 -I. \ 64 -I$(A52DIR)/include \ 65 -I$(A52DIR)/liba52 69 -I$(A52DIR)/include/a52dec \ 66 70 67 71 #CFLAGS += -g 68 72 … … 108 112 $(OBJDIR)/video/vlc.o \ 109 113 $(OBJDIR)/workarounds.o 110 114 115 INSTALL_HEADERS = \ 116 bitstream.h \ 117 libmpeg3.h \ 118 mpeg3atrack.h \ 119 mpeg3css.h \ 120 mpeg3demux.h \ 121 mpeg3io.h \ 122 mpeg3private.h \ 123 mpeg3private.inc \ 124 mpeg3protos.h \ 125 mpeg3title.h \ 126 mpeg3vtrack.h \ 127 timecode.h \ 128 129 INSTALL_AHEADERS = \ 130 audio/ac3.h \ 131 audio/mpeg3audio.h \ 132 133 INSTALL_VHEADERS = \ 134 video/idct.h \ 135 video/slice.h \ 136 video/mpeg3video.h 137 138 139 111 140 #OBJS = \ 112 141 # $(OBJDIR)/audio/ac3.o \ 113 142 # $(OBJDIR)/audio/bit_allocation.o \ … … 127 156 $(OBJDIR)/audio \ 128 157 $(OBJDIR)/video 129 158 130 include Makefile.a52131 132 159 DIRS += $(A52DIRS) 133 160 134 161 135 162 OUTPUT = $(OBJDIR)/libmpeg3.a 136 UTILS = $(OBJDIR)/mpeg3dump $(OBJDIR)/mpeg3toc $(OBJDIR)/mpeg3cat 137 138 #$(OBJDIR)/mpeg3split 163 SHAREDOUTPUT = $(OBJDIR)/libmpeg3.so 164 UTILS = $(OBJDIR)/mpeg3dump $(OBJDIR)/mpeg3toc $(OBJDIR)/mpeg3cat $(OBJDIR)/mpeg3split 139 165 140 166 141 LIBS = -lm -lpthread 167 LIBS = -lm -lpthread -la52 142 168 143 169 $(shell if ! test -d $(OBJDIR) \; then mkdir -p $(OBJDIR) \; fi ) 144 170 … … 147 173 $(shell echo $(OBJS) $(ASMOBJS) $(A52OBJS) $(NASMOBJS) > $(OBJDIR)/objs) 148 174 $(shell mkdir -p $(DIRS) ) 149 175 150 all: $(OUTPUT) $( UTILS)176 all: $(OUTPUT) $(SHAREDOUTPUT) $(UTILS) 151 177 152 178 153 179 $(OUTPUT): $(OBJS) $(ASMOBJS) $(NASMOBJS) $(A52OBJS) 154 180 ar rcs $(OUTPUT) `cat $(OBJDIR)/objs` 155 181 156 182 $(SHAREDOUTPUT): $(OBJS) $(ASMOBJS) $(NASMOBJS) 183 $(CC) -shared -o $(SHAREDOUTPUT) $(OBJS) $(ASMOBJS) $(NASMOBJS) $(LIBS) 157 184 158 185 $(OBJDIR)/mpeg3dump: $(OUTPUT) mpeg3dump.c 159 186 $(CC) `cat $(OBJDIR)/c_flags` -o $(OBJDIR)/mpeg3dump mpeg3dump.c $(OUTPUT) $(LIBS) … … 164 191 $(OBJDIR)/mpeg3cat: $(OUTPUT) mpeg3cat.c 165 192 $(CC) `cat $(OBJDIR)/c_flags` -o $(OBJDIR)/mpeg3cat mpeg3cat.c $(OUTPUT) $(LIBS) 166 193 167 #$(OBJDIR)/mpeg3split: $(OUTPUT)168 #$(CC) `cat $(OBJDIR)/c_flags` -o $(OBJDIR)/mpeg3split mpeg3split.c $(OUTPUT) $(LIBS)194 $(OBJDIR)/mpeg3split: $(OUTPUT) 195 $(CC) `cat $(OBJDIR)/c_flags` -o $(OBJDIR)/mpeg3split mpeg3split.c $(OUTPUT) $(LIBS) 169 196 170 197 $(OBJDIR)/mpeg2qt: $(OUTPUT) 171 198 $(CC) `cat $(OBJDIR)/c_flags` -o $(OBJDIR)/mpeg2qt mpeg2qt.c \ … … 179 206 -ldl 180 207 181 208 install: 182 cp $(UTILS) /usr/bin 209 install -d $(DESTDIR)${PREFIX}/bin 210 install -d $(DESTDIR)${PREFIX}/include/libmpeg3 211 install -d $(DESTDIR)${PREFIX}/include/libmpeg3/audio 212 install -d $(DESTDIR)${PREFIX}/include/libmpeg3/video 213 install -d $(DESTDIR)${PREFIX}/$(LIBDIR) 214 install $(UTILS) $(DESTDIR)${PREFIX}/bin 215 install -m 644 $(INSTALL_HEADERS) $(DESTDIR)${PREFIX}/include/libmpeg3 216 install -m 644 $(INSTALL_AHEADERS) $(DESTDIR)${PREFIX}/include/libmpeg3/audio 217 install -m 644 $(INSTALL_VHEADERS) $(DESTDIR)${PREFIX}/include/libmpeg3/video 218 install -m 644 $(OUTPUT) $(DESTDIR)${PREFIX}/$(LIBDIR) 219 install -m 644 $(SHAREDOUTPUT) $(DESTDIR)${PREFIX}/$(LIBDIR) 183 220 184 221 clean: 185 222 rm -rf $(OBJDIR) … … 208 245 $(OBJDIR)/mpeg3demux.o: mpeg3demux.c 209 246 $(OBJDIR)/mpeg3ifo.o: mpeg3ifo.c 210 247 $(OBJDIR)/mpeg3io.o: mpeg3io.c 211 #$(OBJDIR)/mpeg3split.o: mpeg3split.c248 $(OBJDIR)/mpeg3split.o: mpeg3split.c 212 249 $(OBJDIR)/mpeg3title.o: mpeg3title.c 213 250 $(OBJDIR)/mpeg3toc.o: mpeg3toc.c 214 251 $(OBJDIR)/mpeg3toc3.o: mpeg3toc3.c
Note:
See TracBrowser
for help on using the repository browser.