diff options
author | Heikki Lindholm <holin@iki.fi> | 2008-06-24 18:33:35 +0000 |
---|---|---|
committer | Heikki Lindholm <holin@iki.fi> | 2008-06-24 18:33:35 +0000 |
commit | ebd9e75ff1d538636ba595649e72537906ea842e (patch) | |
tree | 5ea2845b6f4571f7b0314d481402c767446b2117 /contrib | |
parent | 2f51d2eaf6ad8bc3cfca01be004314352294efd6 (diff) | |
download | libextractor-ebd9e75ff1d538636ba595649e72537906ea842e.tar.gz libextractor-ebd9e75ff1d538636ba595649e72537906ea842e.zip |
clean-ups, enable ffmpeg
Diffstat (limited to 'contrib')
-rwxr-xr-x | contrib/macosx/build-osx-framework.sh | 70 |
1 files changed, 32 insertions, 38 deletions
diff --git a/contrib/macosx/build-osx-framework.sh b/contrib/macosx/build-osx-framework.sh index d68633b..c130e10 100755 --- a/contrib/macosx/build-osx-framework.sh +++ b/contrib/macosx/build-osx-framework.sh | |||
@@ -119,6 +119,7 @@ build_toolchain() | |||
119 | if [ ! -e "${BUILD_DIR}/toolchain/bin/dictionary-builder" ] | 119 | if [ ! -e "${BUILD_DIR}/toolchain/bin/dictionary-builder" ] |
120 | then | 120 | then |
121 | echo "building toolchain: dictionary-builder..." | 121 | echo "building toolchain: dictionary-builder..." |
122 | make clean | ||
122 | ./configure --prefix="${BUILD_DIR}/toolchain" \ | 123 | ./configure --prefix="${BUILD_DIR}/toolchain" \ |
123 | --disable-gsf \ | 124 | --disable-gsf \ |
124 | --disable-gnome \ | 125 | --disable-gnome \ |
@@ -127,7 +128,6 @@ build_toolchain() | |||
127 | make install | 128 | make install |
128 | cp src/plugins/printable/dictionary-builder \ | 129 | cp src/plugins/printable/dictionary-builder \ |
129 | "${BUILD_DIR}/toolchain/bin" | 130 | "${BUILD_DIR}/toolchain/bin" |
130 | make clean | ||
131 | fi | 131 | fi |
132 | 132 | ||
133 | # if [ ! -e "${BUILD_DIR}/toolchain/bin/libtool" ] | 133 | # if [ ! -e "${BUILD_DIR}/toolchain/bin/libtool" ] |
@@ -252,12 +252,6 @@ build_package() | |||
252 | # | 252 | # |
253 | build_dependencies() | 253 | build_dependencies() |
254 | { | 254 | { |
255 | ARCH_CC="gcc -arch ${ARCH_NAME}" | ||
256 | ARCH_CXX="g++ -arch ${ARCH_NAME}" | ||
257 | ARCH_CPPFLAGS="-I${SDK_PATH}/${FW_DIR}/include -isysroot ${SDK_PATH}" | ||
258 | ARCH_CFLAGS="-arch ${ARCH_NAME} -isysroot ${SDK_PATH}" | ||
259 | ARCH_LDFLAGS="-L${SDK_PATH}/${FW_DIR}/lib -arch ${ARCH_NAME} -isysroot ${SDK_PATH} -Wl,-syslibroot,${SDK_PATH}" | ||
260 | |||
261 | # prepare_package "${GETTEXT_NAME}" | 255 | # prepare_package "${GETTEXT_NAME}" |
262 | # build_package "${GETTEXT_NAME}" \ | 256 | # build_package "${GETTEXT_NAME}" \ |
263 | # "${ARCH_HOSTSETTING} \ | 257 | # "${ARCH_HOSTSETTING} \ |
@@ -312,16 +306,12 @@ build_extractor() | |||
312 | if [ ! -e "${BUILD_DIR}/built-Extractor-${ARCH_NAME}" ] | 306 | if [ ! -e "${BUILD_DIR}/built-Extractor-${ARCH_NAME}" ] |
313 | then | 307 | then |
314 | echo "building libextractor for ${ARCH_NAME}..." | 308 | echo "building libextractor for ${ARCH_NAME}..." |
315 | ARCH_CC="gcc -arch ${ARCH_NAME} -isysroot ${SDK_PATH}" | ||
316 | ARCH_CXX="g++ -arch ${ARCH_NAME} -isysroot ${SDK_PATH}" | ||
317 | ARCH_CPPFLAGS="-isysroot ${SDK_PATH} -I${SDK_PATH}/${FW_DIR}/include" | ||
318 | ARCH_CFLAGS="-arch ${ARCH_NAME} -isysroot ${SDK_PATH}" | ||
319 | ARCH_LDFLAGS="-arch ${ARCH_NAME} -isysroot ${SDK_PATH} -Wl,-syslibroot,${SDK_PATH} -L${FW_DIR}/lib" | 309 | ARCH_LDFLAGS="-arch ${ARCH_NAME} -isysroot ${SDK_PATH} -Wl,-syslibroot,${SDK_PATH} -L${FW_DIR}/lib" |
320 | CFLAGS="${OPT_FLAGS} -no-cpp-precomp ${ARCH_CFLAGS}" | 310 | CFLAGS="${OPT_FLAGS} -no-cpp-precomp ${ARCH_CFLAGS}" |
321 | CPPFLAGS="${ARCH_CPPFLAGS}" | 311 | CPPFLAGS="${ARCH_CPPFLAGS}" |
322 | CXXFLAGS="${CFLAGS}" | 312 | CXXFLAGS="${CFLAGS}" |
323 | LDFLAGS="${ARCH_LDFLAGS}" | 313 | LDFLAGS="${ARCH_LDFLAGS}" |
324 | if ! ( ./configure CC="${ARCH_CC}" \ | 314 | if ! ( make clean && ./configure CC="${ARCH_CC}" \ |
325 | CXX="${ARCH_CXX}" \ | 315 | CXX="${ARCH_CXX}" \ |
326 | CPPFLAGS="${CPPFLAGS}" \ | 316 | CPPFLAGS="${CPPFLAGS}" \ |
327 | CFLAGS="${CFLAGS}" \ | 317 | CFLAGS="${CFLAGS}" \ |
@@ -332,6 +322,8 @@ build_extractor() | |||
332 | --enable-shared \ | 322 | --enable-shared \ |
333 | --disable-gsf \ | 323 | --disable-gsf \ |
334 | --disable-gnome \ | 324 | --disable-gnome \ |
325 | --enable-ffmpeg \ | ||
326 | --with-ffmpeg-arch="unknown" \ | ||
335 | --with-libiconv-prefix=${SDK_PATH}/usr ) | 327 | --with-libiconv-prefix=${SDK_PATH}/usr ) |
336 | then | 328 | then |
337 | build_retval=1 | 329 | build_retval=1 |
@@ -346,10 +338,6 @@ else\\ | |||
346 | eval depdepl=\"\$tmp\/lib\$tmp_libs.dylib\"\\ | 338 | eval depdepl=\"\$tmp\/lib\$tmp_libs.dylib\"\\ |
347 | fi|g" > ./libtool | 339 | fi|g" > ./libtool |
348 | rm ./libtool.tmp | 340 | rm ./libtool.tmp |
349 | #rm libtool | ||
350 | #ln -s "${BUILD_DIR}/toolchain/bin/libtool" ./libtool | ||
351 | #cp -Pp libtool libtool.orig | ||
352 | #cat libtool.orig | sed "s|sys_lib_search_path_spec=\"[^\"]*\"|sys_lib_search_path_spec=\"${SDK_PATH}/usr/lib\"|g" > libtool | ||
353 | # use native dictionary-builder instead of the cross-built one | 341 | # use native dictionary-builder instead of the cross-built one |
354 | find ./ -type f -name "Makefile" | \ | 342 | find ./ -type f -name "Makefile" | \ |
355 | xargs perl -pi -w -e "s#./dictionary-builder #${BUILD_DIR}/toolchain/bin/dictionary-builder #g;" | 343 | xargs perl -pi -w -e "s#./dictionary-builder #${BUILD_DIR}/toolchain/bin/dictionary-builder #g;" |
@@ -508,28 +496,34 @@ build_toolchain | |||
508 | # build deps and libextractor for all archs | 496 | # build deps and libextractor for all archs |
509 | for arch in $BUILD_ARCHS_LIST | 497 | for arch in $BUILD_ARCHS_LIST |
510 | do | 498 | do |
511 | ARCH_NAME=$arch | 499 | ARCH_NAME=$arch |
512 | case "$arch" in | 500 | case "$arch" in |
513 | "ppc") | 501 | "ppc") |
514 | ARCH_HOSTSETTING="--host=powerpc-apple-darwin8" | 502 | ARCH_HOSTSETTING="--host=powerpc-apple-darwin8" |
515 | ;; | 503 | ;; |
516 | "ppc64") | 504 | "ppc64") |
517 | ARCH_HOSTSETTING="--host=powerpc64-apple-darwin8" | 505 | ARCH_HOSTSETTING="--host=powerpc64-apple-darwin8" |
518 | ;; | 506 | ;; |
519 | "i386") | 507 | "i386") |
520 | ARCH_HOSTSETTING="--host=i686-apple-darwin8" | 508 | ARCH_HOSTSETTING="--host=i686-apple-darwin8" |
521 | ;; | 509 | ;; |
522 | "x86_64") | 510 | "x86_64") |
523 | ARCH_HOSTSETTING="--host=x86_64-apple-darwin8" | 511 | ARCH_HOSTSETTING="--host=x86_64-apple-darwin8" |
524 | ;; | 512 | ;; |
525 | *) | 513 | *) |
526 | echo "unknown architecture ${arch}" | 514 | echo "unknown architecture ${arch}" |
527 | exit 1 | 515 | exit 1 |
528 | ;; | 516 | ;; |
529 | esac | 517 | esac |
530 | build_dependencies | 518 | ARCH_CC="gcc -arch ${ARCH_NAME} -isysroot ${SDK_PATH}" |
531 | build_extractor | 519 | ARCH_CXX="g++ -arch ${ARCH_NAME} -isysroot ${SDK_PATH}" |
532 | finalize_arch_build | 520 | ARCH_CPPFLAGS="-I${SDK_PATH}/${FW_DIR}/include -isysroot ${SDK_PATH}" |
521 | ARCH_CFLAGS="-arch ${ARCH_NAME} -isysroot ${SDK_PATH}" | ||
522 | ARCH_LDFLAGS="-L${SDK_PATH}/${FW_DIR}/lib -arch ${ARCH_NAME} -isysroot ${SDK_PATH} -Wl,-syslibroot,${SDK_PATH}" | ||
523 | |||
524 | build_dependencies | ||
525 | build_extractor | ||
526 | finalize_arch_build | ||
533 | done | 527 | done |
534 | 528 | ||
535 | # build framework structure | 529 | # build framework structure |