summaryrefslogtreecommitdiffstats
path: root/extra/libmpeg3
diff options
context:
space:
mode:
Diffstat (limited to 'extra/libmpeg3')
-rw-r--r--extra/libmpeg3/.footprint12
-rw-r--r--extra/libmpeg3/.md5sum2
-rwxr-xr-xextra/libmpeg3/Pkgfile23
-rw-r--r--extra/libmpeg3/libmpeg3.patch39
4 files changed, 76 insertions, 0 deletions
diff --git a/extra/libmpeg3/.footprint b/extra/libmpeg3/.footprint
new file mode 100644
index 000000000..086443de1
--- /dev/null
+++ b/extra/libmpeg3/.footprint
@@ -0,0 +1,12 @@
+drwxr-xr-x root/root usr/
+drwxr-xr-x root/root usr/bin/
+-rwxr-xr-x root/root usr/bin/mpeg3cat
+-rwxr-xr-x root/root usr/bin/mpeg3dump
+-rwxr-xr-x root/root usr/bin/mpeg3peek
+-rwxr-xr-x root/root usr/bin/mpeg3toc
+drwxr-xr-x root/root usr/include/
+-rw-r--r-- root/root usr/include/libmpeg3.h
+-rw-r--r-- root/root usr/include/mpeg3private.h
+-rw-r--r-- root/root usr/include/mpeg3protos.h
+drwxr-xr-x root/root usr/lib/
+-rw-r--r-- root/root usr/lib/libmpeg3.a
diff --git a/extra/libmpeg3/.md5sum b/extra/libmpeg3/.md5sum
new file mode 100644
index 000000000..0a316f4ed
--- /dev/null
+++ b/extra/libmpeg3/.md5sum
@@ -0,0 +1,2 @@
+6b7bb74c6d4fb9e6a481921e55ac8ac5 libmpeg3-1.7-makefile_mods-1.patch
+4a3e8896164d59d7d0dff69b50b75352 libmpeg3-1.7-src.tar.bz2
diff --git a/extra/libmpeg3/Pkgfile b/extra/libmpeg3/Pkgfile
new file mode 100755
index 000000000..03de1dca3
--- /dev/null
+++ b/extra/libmpeg3/Pkgfile
@@ -0,0 +1,23 @@
+# Description: Supporte l'édition avancée et la manipulation des flux MPEG
+# URL: http://www.heroinewarrior.com/libmpeg3.php3
+# Maintainer: NuTyX core team
+# Packager: thierryn1 at hispeed dot ch
+# Depends on: nasm
+
+name=libmpeg3
+version=1.7
+release=1
+source=( http://prdownloads.sourceforge.net/heroines/$name-$version-src.tar.bz2\
+ http://www.linuxfromscratch.org/patches/blfs/svn/libmpeg3-1.7-makefile_mods-1.patch)
+
+
+build() {
+ cd $name-$version
+ patch -Np1 -i ../libmpeg3-1.7-makefile_mods-1.patch
+ ./configure --prefix=/usr \
+ --mandir=/usr/share/man \
+ --infodir=/usr/share/info
+ make
+ make PREFIX=$PKG/usr install
+ rm -rf $PKG/usr/share
+}
diff --git a/extra/libmpeg3/libmpeg3.patch b/extra/libmpeg3/libmpeg3.patch
new file mode 100644
index 000000000..7b382296c
--- /dev/null
+++ b/extra/libmpeg3/libmpeg3.patch
@@ -0,0 +1,39 @@
+--- libmpeg3-1.8-orig/Makefile 2006-02-15 05:09:31.000000000 +0000
++++ libmpeg3-1.8/Makefile 2007-08-17 15:42:59.000000000 +0000
+@@ -1,5 +1,6 @@
+ CC = gcc
+ NASM = nasm
++VERSION_NAME := $(shell basename $(PWD))
+ USE_MMX = 0
+ USE_CSS = 1
+ A52DIR := $(shell expr a52dec* )
+@@ -149,7 +150,7 @@
+
+ LIBS = -lm -lpthread
+
+-$(shell if ! test -d $(OBJDIR) \; then mkdir -p $(OBJDIR) \; fi )
++$(shell if ! test -d $(OBJDIR) ; then mkdir -p $(OBJDIR) ; fi )
+
+ $(shell echo $(CFLAGS) > $(OBJDIR)/c_flags)
+ $(shell echo $(A52CFLAGS) > $(OBJDIR)/a52_flags)
+@@ -191,9 +192,13 @@
+ -ldl
+
+ install:
++ if [ ! -d $(PREFIX)/bin ]; then install -v -m755 -d
+$(PREFIX)/bin; fi
++ if [ ! -d $(PREFIX)/lib ]; then install -v -m755 -d
+$(PREFIX)/lib; fi
++ if [ ! -d $(PREFIX)/include ]; then install -v -m755 -d
+$(PREFIX)/include; fi
+ cp $(UTILS) $(PREFIX)/bin
+-# cp $(OUTPUT) $(PREFIX)/lib
+-# cp libmpeg3.h mpeg3private.h $(PREFIX)/include
++ cp $(OUTPUT) $(PREFIX)/lib
++ cp libmpeg3.h mpeg3private.h mpeg3protos.h $(PREFIX)/include
++ install -v -m644 -D docs/index.html
+$(PREFIX)/share/doc/$(VERSION_NAME)/index.html
+
+ clean:
+ rm -rf $(OBJDIR)
+