Browse Source

the libmpeg3 patch ...

git-svn-id: http://www.rocklinux.org/svn/rock-linux/trunk@1101 c5f82cb5-29bc-0310-9cd0-bff59a50e3bc
rocklinux
Rene Rebe 21 years ago
parent
commit
45ef786803
2 changed files with 254 additions and 0 deletions
  1. +67
    -0
      package/fake/libmpeg3/libmpeg3.desc
  2. +187
    -0
      package/fake/libmpeg3/makefile.patch

+ 67
- 0
package/fake/libmpeg3/libmpeg3.desc

@ -0,0 +1,67 @@
[COPY] --- ROCK-COPYRIGHT-NOTE-BEGIN ---
[COPY]
[COPY] This copyright note is auto-generated by ./scripts/Create-CopyPatch.
[COPY] Please add additional copyright information _after_ the line containing
[COPY] the ROCK-COPYRIGHT-NOTE-END tag. Otherwise it might get removed by
[COPY] the ./scripts/Create-CopyPatch script. Do not edit this copyright text!
[COPY]
[COPY] ROCK Linux: rock-src/package/fake/libmpeg3/libmpeg3.desc
[COPY] ROCK Linux is Copyright (C) 1998 - 2003 Clifford Wolf
[COPY]
[COPY] This program is free software; you can redistribute it and/or modify
[COPY] it under the terms of the GNU General Public License as published by
[COPY] the Free Software Foundation; either version 2 of the License, or
[COPY] (at your option) any later version. A copy of the GNU General Public
[COPY] License can be found at Documentation/COPYING.
[COPY]
[COPY] Many people helped and are helping developing ROCK Linux. Please
[COPY] have a look at http://www.rocklinux.org/ and the Documentation/TEAM
[COPY] file for details.
[COPY]
[COPY] --- ROCK-COPYRIGHT-NOTE-END ---
[I] Libmpeg3 supports advanced editing and manipulation of MPEG streams
[T] MPEG is normally a last mile distribution format but with libmpeg3 you
[T] can edit it like a production format. Unless you have a need for MPEG
[T] editing and copying, you're better off using a library like FFMPEG.
[T]
[T] Libmpeg3 is primarily a supporting library for Cinelerra. It supports
[T] all of the nonstandard operations Cinelerra needs. Libmpeg3 provides a
[T] uniform front end for a large number of the MPEG formats used in HDTV
[T] broadcasting. It decodes
[T]
[T] MPEG-1 Layer II Audio
[T] MPEG-1 Layer III Audio
[T] MPEG-2 Layer III Audio
[T] MPEG-1 program streams
[T] MPEG-2 program streams
[T] MPEG-2 transport streams
[T] AC3 Audio
[T] MPEG-2 Video
[T] MPEG-1 Video
[T] IFO files
[T] VOB files
[T]
[T] Now the good news. It can read the MPEG exports from Cinelerra.
[T]
[T] A table of contents feature allows it to seek with frame accuracy
[T] regardless of whether the footage has timecode or not, or whether the
[T] timecode is contiguous. Also included are utilities for stream extraction,
[T] format querying, and copying.
[U] http://heroinewarrior.com/libmpeg3.php3
[A] Adam Williams <broadcast@earthling.net>
[M] fake <fake@rapidnetworks.de>
[C] extra/multimedia
[L] LGPL
[S] Stable
[V] 1.5.2
[P] X -----5---9 738.000
[D] 0 libmpeg3-1.5.2-src.tar.bz2 http://heanet.dl.sourceforge.net/sourceforge/heroines/

+ 187
- 0
package/fake/libmpeg3/makefile.patch

@ -0,0 +1,187 @@
--- ./Makefile.orig 2003-08-16 21:24:05.000000000 +0200
+++ ./Makefile 2003-08-16 21:51:53.000000000 +0200
@@ -1,8 +1,9 @@
CC = gcc
NASM = nasm
USE_MMX = 0
-USE_CSS = 1
+USE_CSS = 0
A52DIR := $(shell expr a52dec* )
+PREFIX = /usr
HAVE_NASM := $(shell if [ -x /usr/bin/nasm -o -x /usr/local/bin/nasm ]; then echo y; else echo n; fi)
@@ -10,45 +11,36 @@
$(error "Nasm is required. Download it from nasm.sourceforge.net.")
endif
+#ifeq ($(origin CFLAGS), environment)
+#HAVE_CFLAGS := yes
+#else
+#HAVE_CFLAGS := no
+#endif
-ifeq ($(origin CFLAGS), environment)
-HAVE_CFLAGS := yes
-else
-HAVE_CFLAGS := no
-endif
-
-
-OBJDIR := $(shell uname --machine)
-
-
+OBJDIR := obj
-
-ifeq ($(OBJDIR), alpha)
+ifeq ($(ARCH), alpha)
USE_MMX = 0
ifneq ($(HAVE_CFLAGS), yes)
- CFLAGS := -O4 -arch ev67 -ieee -accept c99_keywords -gcc_messages
+ CFLAGS += -O4 -ieee
endif
endif
-ifeq ($(OBJDIR), i686)
- USE_MMX = 1
+ifeq ($(ARCH), x86)
+ USE_MMX = 0
ifneq ($(HAVE_CFLAGS), yes)
CFLAGS := -O2 -fomit-frame-pointer -falign-loops=2 -falign-jumps=2 -falign-functions=2 -I/usr/local/include
endif
CFLAGS += -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE
endif
-ifeq ($(OBJDIR), x86_64)
+ifeq ($(ARCH), x86_64)
ifneq ($(HAVE_CFLAGS), yes)
CFLAGS := -O2 -fomit-frame-pointer -I/usr/local/include
endif
CFLAGS += -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE
-
-
endif
-
-
ifeq ($(USE_CSS), 1)
CFLAGS += -DHAVE_CSS
endif
@@ -59,27 +51,11 @@
NASMOBJS = $(OBJDIR)/video/reconmmx.o
endif
-
-
-
-
-
CFLAGS += \
-I. \
-I$(A52DIR)/include \
-I$(A52DIR)/liba52
-#CFLAGS += -g
-
-
-
-
-
-
-
-
-
-
OBJS = \
$(OBJDIR)/audio/ac3.o \
$(OBJDIR)/audio/dct.o \
@@ -113,21 +89,6 @@
$(OBJDIR)/video/vlc.o \
$(OBJDIR)/workarounds.o
-#OBJS = \
-# $(OBJDIR)/audio/ac3.o \
-# $(OBJDIR)/audio/bit_allocation.o \
-# $(OBJDIR)/audio/exponents.o \
-# $(OBJDIR)/audio/header.o \
-# $(OBJDIR)/audio/huffman.o \
-# $(OBJDIR)/audio/layer2.o \
-# $(OBJDIR)/audio/layer3.o \
-# $(OBJDIR)/audio/mantissa.o \
-# $(OBJDIR)/audio/pcm.o \
-# $(OBJDIR)/audio/tables.o \
-
-
-
-
DIRS := \
$(OBJDIR)/audio \
$(OBJDIR)/video
@@ -136,12 +97,10 @@
DIRS += $(A52DIRS)
-
OUTPUT = $(OBJDIR)/libmpeg3.a
-UTILS = $(OBJDIR)/mpeg3dump $(OBJDIR)/mpeg3toc $(OBJDIR)/mpeg3cat
-
-#$(OBJDIR)/mpeg3split
-
+SHARED = $(OBJDIR)/libmpeg3.so
+UTILS = $(OBJDIR)/mpeg3dump $(OBJDIR)/mpeg3toc $(OBJDIR)/mpeg3cat
+ #$(OBJDIR)/mpeg3split
LIBS = -lm -lpthread
@@ -152,13 +111,13 @@
$(shell echo $(OBJS) $(ASMOBJS) $(A52OBJS) $(NASMOBJS) > $(OBJDIR)/objs)
$(shell mkdir -p $(DIRS) )
-all: $(OUTPUT) $(UTILS)
-
+all: $(OUTPUT) $(SHARED) $(UTILS)
$(OUTPUT): $(OBJS) $(ASMOBJS) $(NASMOBJS) $(A52OBJS)
ar rcs $(OUTPUT) `cat $(OBJDIR)/objs`
-
+$(SHARED): $(OBJS) $(ASMOBJS) $(NASMOBJS)
+ $(CC) `cat $(OBJDIR)/c_flags` -shared -o $(SHARED) $(OBJS) $(ASMOBJS) $(NASMOBJS) -Wl,-soname -Wl,libmpeg3.so
$(OBJDIR)/mpeg3dump: $(OUTPUT) mpeg3dump.c
$(CC) `cat $(OBJDIR)/c_flags` -o $(OBJDIR)/mpeg3dump mpeg3dump.c $(OUTPUT) $(LIBS)
@@ -169,8 +128,8 @@
$(OBJDIR)/mpeg3cat: $(OUTPUT) mpeg3cat.c
$(CC) `cat $(OBJDIR)/c_flags` -o $(OBJDIR)/mpeg3cat mpeg3cat.c $(OUTPUT) $(LIBS)
-#$(OBJDIR)/mpeg3split: $(OUTPUT)
-# $(CC) `cat $(OBJDIR)/c_flags` -o $(OBJDIR)/mpeg3split mpeg3split.c $(OUTPUT) $(LIBS)
+$(OBJDIR)/mpeg3split: $(OUTPUT)
+ $(CC) `cat $(OBJDIR)/c_flags` -o $(OBJDIR)/mpeg3split mpeg3split.c $(OUTPUT) $(LIBS)
$(OBJDIR)/mpeg2qt: $(OUTPUT)
$(CC) `cat $(OBJDIR)/c_flags` -o $(OBJDIR)/mpeg2qt mpeg2qt.c \
@@ -184,7 +143,14 @@
-ldl
install:
- cp $(UTILS) /usr/bin
+ install -d $(PREFIX)/bin $(PREFIX)/lib $(PREFIX)/include/audio $(PREFIX)/include/video
+ install -m 755 $(UTILS) $(PREFIX)/bin
+ install $(OUTPUT) $(PREFIX)/lib
+ install $(SHARED) $(PREFIX)/lib
+ install -m 644 *.h $(PREFIX)/include
+ install -m 644 *.inc $(PREFIX)/include
+ install -m 644 audio/*.h $(PREFIX)/include/audio
+ install -m 644 video/*.h $(PREFIX)/include/video
clean:
rm -rf $(OBJDIR)
@@ -245,6 +211,4 @@
$(OBJDIR)/video/vlc.o: video/vlc.c
$(OBJDIR)/workarounds.o: workarounds.c
-
-
include depend.a52

Loading…
Cancel
Save