]> git.pld-linux.org Git - packages/libmpeg3.git/blob - libmpeg3-install.patch
- release 6: fixed configure script parameters
[packages/libmpeg3.git] / libmpeg3-install.patch
1 diff -urN libmpeg3-1.2.3.org/Makefile libmpeg3-1.2.3/Makefile
2 --- libmpeg3-1.2.3.org/Makefile Sat Feb 10 23:20:50 2001
3 +++ libmpeg3-1.2.3/Makefile     Sat Feb 10 23:20:59 2001
4 @@ -87,9 +87,31 @@
5         video/slice_pic.o \
6         video/vlc_pic.o
7  
8 +INSTALL_HEADERS = \
9 +       bitstream.h \
10 +       libmpeg3.h \
11 +       mpeg3atrack.h \
12 +       mpeg3css.h \
13 +       mpeg3demux.h \
14 +       mpeg3io.h \
15 +       mpeg3private.h \
16 +       mpeg3private.inc \
17 +       mpeg3title.h \
18 +       mpeg3vtrack.h \
19 +       timecode.h
20 +
21 +INSTALL_AHEADERS = \
22 +       audio/ac3.h \
23 +       audio/mpeg3audio.h
24 +
25 +INSTALL_VHEADERS = \
26 +       video/idct.h \
27 +       video/slice.h \
28 +       video/mpeg3video.h
29 +
30  OUTPUT = libmpeg3.a
31  OUTPUT_SHARED = libmpeg3.so.$(MAJOR).$(MINOR).$(MICRO)
32 -UTILS = dump mpeg3cat mpeg3toc mpeg3split
33 +UTILS = mpeg3dump mpeg3cat mpeg3toc mpeg3split
34  LIBS = -lm -lpthread
35  
36  all: $(OUTPUT) $(OUTPUT_SHARED) util
37 @@ -105,8 +127,8 @@
38         $(CC) $(CFLAGSSHARE) -o $(OUTPUT_SHARED) $(MMXOBJS_SHARED) $(VIDEOOBJS_SHARED) $(AUDIOOBJS_SHARED) $(IFOOBJS_SHARED) $(OBJS_SHARED)
39         ln -sf $(OUTPUT_SHARED) libmpeg3.so
40  
41 -dump: dump.o $(OUTPUT_SHARED)
42 -       $(CC) -o dump dump.o -L. -lmpeg3 $(LIBS)
43 +mpeg3dump: dump.o $(OUTPUT_SHARED)
44 +       $(CC) -o mpeg3dump dump.o -L. -lmpeg3 $(LIBS)
45  
46  mpeg3cat: mpeg3cat.o $(OUTPUT_SHARED)
47         $(CC) -o mpeg3cat mpeg3cat.o -L. -lmpeg3 $(LIBS)
48 @@ -130,6 +152,20 @@
49         make -C video clean
50         rm -f core *.o *.so* $(OUTPUT)
51         rm -f $(UTILS)
52 +
53 +install:
54 +       install -d $(DESTDIR)/bin
55 +       install -d $(DESTDIR)/include/libmpeg3
56 +       install -d $(DESTDIR)/include/libmpeg3/audio
57 +       install -d $(DESTDIR)/include/libmpeg3/video
58 +       install -d $(DESTDIR)/lib
59 +       install $(UTILS) $(DESTDIR)/bin
60 +       install -m 644 $(INSTALL_HEADERS) $(DESTDIR)/include/libmpeg3
61 +       install -m 644 $(INSTALL_AHEADERS) $(DESTDIR)/include/libmpeg3/audio
62 +       install -m 644 $(INSTALL_VHEADERS) $(DESTDIR)/include/libmpeg3/video
63 +       install -m 644 $(OUTPUT) $(DESTDIR)/lib
64 +       install $(OUTPUT_SHARED) $(DESTDIR)/lib
65 +       ln -sf $(OUTPUT_SHARED) $(DESTDIR)/lib/libmpeg3.so
66  
67  backup: clean
68         cd .. && \
69 diff -urN libmpeg3-1.2.3.org/configure libmpeg3-1.2.3/configure
70 --- libmpeg3-1.2.3.org/configure        Sat Feb 10 23:20:50 2001
71 +++ libmpeg3-1.2.3/configure    Sat Feb 10 23:21:49 2001
72 @@ -38,6 +38,8 @@
73  
74  if test -z "$CFLAGS"; then
75         echo >> global_config "CFLAGS = -O2 -D_FILE_OFFSET_BITS=64 -funroll-loops -fomit-frame-pointer -malign-loops=2 -malign-jumps=2 -malign-functions=2 -march=i486 -I/usr/local/include"
76 +else
77 +       echo >> global_config "$CFLAGS"
78  fi
79  
80  cat >> global_config << EOF
This page took 0.032817 seconds and 3 git commands to generate.