Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

source: downloads/windows/precompiled_dependencies/mingw64/build_ogg.sh @ 127

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
3NAME="[ogg]"
4WORKING_DIR="ogg/libogg-1.3.2"
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
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}"
43fi
Note: See TracBrowser for help on using the repository browser.