summaryrefslogtreecommitdiff
path: root/apps/codecs/libwmapro
diff options
context:
space:
mode:
authorMohamed Tarek <mt@rockbox.org>2010-06-21 12:38:08 +0000
committerMohamed Tarek <mt@rockbox.org>2010-06-21 12:38:08 +0000
commite481e887db23d634c8c2dfcec1594eec0646a63d (patch)
treefb94e8da884b2ce2cd70c399ae034bd50f536df2 /apps/codecs/libwmapro
parent9092f7aa4575abbf265a615256fb4ece7eb2ca5f (diff)
downloadrockbox-e481e887db23d634c8c2dfcec1594eec0646a63d.tar.gz
rockbox-e481e887db23d634c8c2dfcec1594eec0646a63d.zip
Add a patch file in libwmapro to make it easier to add the library and the decoder to the main build and modify README.rockbox accordingly.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@27012 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'apps/codecs/libwmapro')
-rw-r--r--apps/codecs/libwmapro/README.rockbox17
-rw-r--r--apps/codecs/libwmapro/wmapro_mainbuild.patch41
2 files changed, 48 insertions, 10 deletions
diff --git a/apps/codecs/libwmapro/README.rockbox b/apps/codecs/libwmapro/README.rockbox
index c33440f203..09c54b48c6 100644
--- a/apps/codecs/libwmapro/README.rockbox
+++ b/apps/codecs/libwmapro/README.rockbox
@@ -17,17 +17,14 @@ Based on ffmpeg svn r22886 dated 15 April 2010.
17Currently, the files contain minimal changes from their original state in order 17Currently, the files contain minimal changes from their original state in order
18to be able to compile cleanly. 18to be able to compile cleanly.
19 19
20The file wmaprodec.c contains a main function that is just a stub to make sure
21linking is done properly and without errors.
22
23COMPILING 20COMPILING
24 21
25A make file is included that would compile and link the files when the "make" 22At the time of this writing (21 June 2010) the decoder isn't still included in
26command is executed without arguments in any Unix-like environment. 23the main build since it still only works in the simulator.
27 24
28The file porduces an output binary called "test" that, as of now (30 April 2010) 25A patch is included that would enable building the library and the codec for
29, is still useless. 26testing and development purposes.
30 27
31To clean the compiler output and retain just the source code, the following 28To apply the patch, you should cd to libwmapro directory and then execute the
32command should be executed: 29following command :
33make clean 30patch -p 0 < wmapro_mainbuild.patch
diff --git a/apps/codecs/libwmapro/wmapro_mainbuild.patch b/apps/codecs/libwmapro/wmapro_mainbuild.patch
new file mode 100644
index 0000000000..79623df9a4
--- /dev/null
+++ b/apps/codecs/libwmapro/wmapro_mainbuild.patch
@@ -0,0 +1,41 @@
1Index: ../codecs.make
2===================================================================
3--- ../codecs.make (revision 27008)
4+++ ../codecs.make (working copy)
5@@ -37,6 +37,7 @@
6 include $(APPSDIR)/codecs/libtremor/libtremor.make
7 include $(APPSDIR)/codecs/libwavpack/libwavpack.make
8 include $(APPSDIR)/codecs/libwma/libwma.make
9+include $(APPSDIR)/codecs/libwmapro/libwmapro.make
10 include $(APPSDIR)/codecs/libcook/libcook.make
11 include $(APPSDIR)/codecs/librm/librm.make
12 include $(APPSDIR)/codecs/libatrac/libatrac.make
13@@ -58,7 +59,7 @@
14 CODECLIBS := $(DEMACLIB) $(A52LIB) $(ALACLIB) $(ASAPLIB) \
15 $(FAADLIB) $(FFMPEGFLACLIB) $(M4ALIB) $(MADLIB) $(MUSEPACKLIB) \
16 $(SPCLIB) $(SPEEXLIB) $(TREMORLIB) $(WAVPACKLIB) $(WMALIB) $(COOKLIB) \
17- $(ATRACLIB) \
18+ $(ATRACLIB) $(WMAPROLIB) \
19 $(CODECLIB)
20
21 $(CODECS): $(CODEC_CRT0) $(CODECLINK_LDS)
22@@ -83,6 +84,7 @@
23 $(CODECDIR)/ape-pre.map : $(CODECDIR)/libdemac-pre.a
24 $(CODECDIR)/ape.codec : $(CODECDIR)/libdemac.a
25 $(CODECDIR)/wma.codec : $(CODECDIR)/libwma.a $(CODECDIR)/libasf.a
26+$(CODECDIR)/wmapro.codec : $(CODECDIR)/libwmapro.a $(CODECDIR)/libasf.a
27 $(CODECDIR)/wavpack_enc.codec: $(CODECDIR)/libwavpack.a
28 $(CODECDIR)/asap.codec : $(CODECDIR)/libasap.a
29 $(CODECDIR)/cook.codec : $(CODECDIR)/libcook.a $(CODECDIR)/librm.a
30Index: ../SOURCES
31===================================================================
32--- ../SOURCES (revision 27008)
33+++ ../SOURCES (working copy)
34@@ -16,6 +16,7 @@
35 atrac3_oma.c
36 mpc.c
37 wma.c
38+wmapro.c
39 sid.c
40 ape.c
41 nsf.c