Last change
on this file since 153 was
126,
checked in by landauf, 9 years ago
|
eol-style native
|
-
Property svn:eol-style set to
native
|
File size:
800 bytes
|
Rev | Line | |
---|
[126] | 1 | #!/bin/sh |
---|
| 2 | |
---|
| 3 | NAME="[vorbis]" |
---|
| 4 | WORKING_DIR="vorbis/libvorbis-1.3.5" |
---|
| 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 --with-ogg-libraries=${TEMP_DIR}/vorbisdeps/lib --with-ogg-includes=${TARGET_INC_DIR}/libogg/include |
---|
| 18 | check_result $? "configure" |
---|
| 19 | |
---|
| 20 | # compile |
---|
| 21 | make -j8 |
---|
| 22 | check_result $? "make" |
---|
| 23 | |
---|
| 24 | # copy lib |
---|
| 25 | find "lib/.libs" -name "*.dll" -exec cp -a {} ${TARGET_BIN_DIR} \; |
---|
| 26 | check_result $? "copying library" |
---|
| 27 | |
---|
| 28 | # copy headers |
---|
| 29 | HEADER_DIR="${TARGET_INC_DIR}/libvorbis/include/vorbis" |
---|
| 30 | mkdir -p ${HEADER_DIR} |
---|
| 31 | check_result $? "create header dir" |
---|
| 32 | find "include/vorbis" -name "*.h" -exec cp -a {} ${HEADER_DIR} \; |
---|
| 33 | check_result $? "copying headers" |
---|
| 34 | |
---|
| 35 | echo "${NAME} Finished building ${NAME}" |
---|
| 36 | fi |
---|
Note: See
TracBrowser
for help on using the repository browser.