Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

source: downloads/windows/precompiled_dependencies/mingw64/build_vorbis.sh @ 128

Last change on this file since 128 was 126, checked in by landauf, 9 years ago

eol-style native

  • Property svn:eol-style set to native
File size: 800 bytes
Line 
1#!/bin/sh
2
3NAME="[vorbis]"
4WORKING_DIR="vorbis/libvorbis-1.3.5"
5
6source ./build_common.sh
7
8if [ $DO_CLEAN -eq 1 ]
9then
10        make clean
11        check_result $? "cleaning build"
12fi
13
14if [ $DO_BUILD -eq 1 ]
15then
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}"
36fi
Note: See TracBrowser for help on using the repository browser.