Last change
on this file since 127 was
126,
checked in by landauf, 9 years ago
|
eol-style native
|
-
Property svn:eol-style set to
native
|
File size:
896 bytes
|
Line | |
---|
1 | #!/bin/sh |
---|
2 | |
---|
3 | NAME="[ogg]" |
---|
4 | WORKING_DIR="ogg/libogg-1.3.2" |
---|
5 | |
---|
6 | source ./build_common.sh |
---|
7 | |
---|
8 | if [ $DO_CLEAN -eq 1 ] |
---|
9 | then |
---|
10 | make clean |
---|
11 | check_result $? "cleaning build" |
---|
12 | fi |
---|
13 | |
---|
14 | if [ $DO_BUILD -eq 1 ] |
---|
15 | then |
---|
16 | # configure |
---|
17 | ./configure |
---|
18 | check_result $? "configure" |
---|
19 | |
---|
20 | # compile |
---|
21 | make -j8 |
---|
22 | check_result $? "make" |
---|
23 | |
---|
24 | # copy lib |
---|
25 | cp -a "src/.libs/libogg-0.dll" ${TARGET_BIN_DIR} |
---|
26 | check_result $? "copying library" |
---|
27 | |
---|
28 | # copy shared lib for vorbis |
---|
29 | VORBISDEPS_DIR=${TEMP_DIR}/vorbisdeps/lib |
---|
30 | mkdir -p ${VORBISDEPS_DIR} |
---|
31 | check_result $? "create vorbisdeps dir" |
---|
32 | cp -a "src/.libs/libogg.dll.a" ${VORBISDEPS_DIR} |
---|
33 | check_result $? "copying link-library" |
---|
34 | |
---|
35 | # copy headers |
---|
36 | HEADER_DIR="${TARGET_INC_DIR}/libogg/include/ogg" |
---|
37 | mkdir -p ${HEADER_DIR} |
---|
38 | check_result $? "create header dir" |
---|
39 | find "include/ogg" -name "*.h" -exec cp -a {} ${HEADER_DIR} \; |
---|
40 | check_result $? "copying headers" |
---|
41 | |
---|
42 | echo "${NAME} Finished building ${NAME}" |
---|
43 | fi |
---|
Note: See
TracBrowser
for help on using the repository browser.