]> git.pld-linux.org Git - packages/libmpeg3.git/blame - libmpeg3-acam.patch
- added -int64 and -declaration patches
[packages/libmpeg3.git] / libmpeg3-acam.patch
CommitLineData
5ba43171
JB
1--- libmpeg3-1.5.0/Makefile.am.orig Thu Jan 1 01:00:00 1970
2+++ libmpeg3-1.5.0/Makefile.am Thu Feb 27 23:49:21 2003
3@@ -0,0 +1,99 @@
4+NASM = sh ./strip_fPIC.sh nasm
5+
6+if USE_MMX
7+ASMSRC = video/mmxidct.S
8+NASMSRC = video/reconmmx.s
9+NASMOBJ = reconmmx.lo
10+else
11+ASMSRC =
12+NASMSRC =
13+NASMOBJ =
14+endif
15+
16+SRC = \
17+ audio/ac3.c \
18+ audio/dct.c \
19+ audio/huffman.c \
20+ audio/layer2.c \
21+ audio/layer3.c \
22+ audio/mpeg3audio.c \
23+ audio/pcm.c \
24+ audio/synthesizers.c \
25+ audio/tables.c \
26+ bitstream.c \
27+ libmpeg3.c \
28+ mpeg3atrack.c \
29+ mpeg3css.c \
30+ mpeg3demux.c \
31+ mpeg3ifo.c \
32+ mpeg3io.c \
33+ mpeg3title.c \
34+ mpeg3vtrack.c \
35+ video/getpicture.c \
36+ video/headers.c \
37+ video/idct.c \
38+ video/macroblocks.c \
39+ video/mmxtest.c \
40+ video/motion.c \
41+ video/mpeg3video.c \
42+ video/output.c \
43+ video/reconstruct.c \
44+ video/seek.c \
45+ video/slice.c \
46+ video/vlc.c \
47+ workarounds.c
48+
49+mincdir = $(includedir)/libmpeg3
50+maincdir = $(mincdir)/audio
51+mvincdir = $(mincdir)/video
52+
53+minc_HEADERS = \
54+ bitstream.h \
55+ ifo.h \
56+ libmpeg3.h \
57+ mpeg3atrack.h \
58+ mpeg3css.h \
59+ mpeg3demux.h \
60+ mpeg3io.h \
61+ mpeg3private.h \
62+ mpeg3protos.h \
63+ mpeg3title.h \
64+ mpeg3vtrack.h \
65+ timecode.h \
66+ workarounds.h
67+
68+mainc_HEADERS = \
69+ audio/ac3.h \
70+ audio/huffman.h \
71+ audio/mpeg3audio.h \
72+ audio/tables.h
73+
74+mvinc_HEADERS = \
75+ video/idct.h \
76+ video/layerdata.h \
77+ video/mpeg3video.h \
78+ video/mpeg3videoprotos.h \
79+ video/slice.h \
80+ video/vlc.h
81+
82+lib_LTLIBRARIES = libmpeg3.la
83+
84+bin_PROGRAMS = mpeg3dump mpeg3cat mpeg3toc
85+
86+LIBS = -lm -lpthread
87+
88+libmpeg3_la_SOURCES = $(ASMSRC) $(SRC)
89+libmpeg3_la_LIBADD = $(NASMOBJ) -la52
90+libmpeg3_la_LDFLAGS = -version-info 1:5:0
91+
92+mpeg3dump_SOURCES = mpeg3dump.c
93+mpeg3dump_LDADD = libmpeg3.la
94+
95+mpeg3cat_SOURCES = mpeg3cat.c
96+mpeg3cat_LDADD = libmpeg3.la
97+
98+mpeg3toc_SOURCES = mpeg3toc.c
99+mpeg3toc_LDADD = libmpeg3.la
100+
101+reconmmx.lo: $(NASMSRC)
102+ $(LIBTOOL) --mode=compile --tag=NASM $(NASM) -f elf $(NASMSRC) -o $(NASMOBJ)
103--- libmpeg3-1.5.0/configure.in.orig Thu Jan 1 01:00:00 1970
104+++ libmpeg3-1.5.0/configure.in Thu Feb 27 23:35:04 2003
105@@ -0,0 +1,29 @@
106+AC_INIT(libmpeg3, 1.5.0)
107+AM_INIT_AUTOMAKE(libmpeg3, 1.5.0)
108+AC_CONFIG_HEADER([config.h])
109+
110+AC_PROG_CC
111+AC_PROG_CPP
112+AC_PROG_INSTALL
113+AC_PROG_LIBTOOL
114+AM_PROG_AS
115+
116+AC_ARG_ENABLE(mmx, AC_HELP_STRING([--enable-mmx],[use MMX]),
117+ [use_mmx=$enableval], [use_mmx=no])
118+
119+AM_CONDITIONAL(USE_MMX, [test "$use_mmx" != "no"])
120+if test "$use_mmx" != "no"; then
121+ AC_DEFINE(HAVE_MMX,,[use MMX])
122+fi
123+
124+AC_ARG_ENABLE(css, AC_HELP_STRING([--disable-css],[disable CSS]),
125+ [use_css=$enableval], [use_css=yes])
126+
127+if test "$use_css" != "no"; then
128+ AC_DEFINE(HAVE_CSS,,[enable CSS])
129+fi
130+
131+CFLAGS="${CFLAGS} -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE -I/usr/include/a52dec"
132+
133+AC_CONFIG_FILES([Makefile])
134+AC_OUTPUT
135--- libmpeg3-1.5.0/strip_fPIC.sh.orig Thu Jan 1 01:00:00 1970
136+++ libmpeg3-1.5.0/strip_fPIC.sh Thu Feb 27 23:51:20 2003
137@@ -0,0 +1,17 @@
138+#!/bin/sh
139+#
140+# taken from flac sources --qboosh
141+#
142+# libtool assumes that the compiler can handle the -fPIC flag
143+# This isn't always true (for example, nasm can't handle it)
144+command=""
145+while [ $1 ]; do
146+ if [ "$1" != "-fPIC" ]; then
147+ if [ "$1" != "-DPIC" ]; then
148+ command="$command $1"
149+ fi
150+ fi
151+ shift
152+done
153+echo $command
154+exec $command
This page took 0.068629 seconds and 4 git commands to generate.