diff options
author | Heikki Lindholm <holin@iki.fi> | 2009-02-13 11:10:20 +0000 |
---|---|---|
committer | Heikki Lindholm <holin@iki.fi> | 2009-02-13 11:10:20 +0000 |
commit | 1a00631a0079f28c22eeb0331bb68d8f6d766c9f (patch) | |
tree | b7d9b6d25de52c7cbb1fc39511d5861be69651c4 /contrib | |
parent | 0e222792bb590c344f2c41fd18a5c2f9ff6316fe (diff) | |
download | libextractor-1a00631a0079f28c22eeb0331bb68d8f6d766c9f.tar.gz libextractor-1a00631a0079f28c22eeb0331bb68d8f6d766c9f.zip |
make "proper" framework file, update libmpeg2, fix libtool 2 issues
Diffstat (limited to 'contrib')
-rwxr-xr-x | contrib/macosx/build-osx-framework.sh | 20 |
1 files changed, 17 insertions, 3 deletions
diff --git a/contrib/macosx/build-osx-framework.sh b/contrib/macosx/build-osx-framework.sh index 8d1f414..0cf7da3 100755 --- a/contrib/macosx/build-osx-framework.sh +++ b/contrib/macosx/build-osx-framework.sh | |||
@@ -40,7 +40,7 @@ LIBVORBIS_NAME=libvorbis-1.2.0 | |||
40 | LIBFLAC_URL=http://kent.dl.sourceforge.net/sourceforge/flac | 40 | LIBFLAC_URL=http://kent.dl.sourceforge.net/sourceforge/flac |
41 | LIBFLAC_NAME=flac-1.2.1 | 41 | LIBFLAC_NAME=flac-1.2.1 |
42 | LIBMPEG2_URL=http://libmpeg2.sourceforge.net/files | 42 | LIBMPEG2_URL=http://libmpeg2.sourceforge.net/files |
43 | LIBMPEG2_NAME=mpeg2dec-0.4.1 | 43 | LIBMPEG2_NAME=libmpeg2-0.5.1 |
44 | 44 | ||
45 | export PATH=${BUILD_DIR}/toolchain/bin:/usr/local/bin:/bin:/sbin:/usr/bin:/usr/sbin | 45 | export PATH=${BUILD_DIR}/toolchain/bin:/usr/local/bin:/bin:/sbin:/usr/bin:/usr/sbin |
46 | 46 | ||
@@ -388,6 +388,7 @@ build_extractor() | |||
388 | CFLAGS="${CFLAGS}" \ | 388 | CFLAGS="${CFLAGS}" \ |
389 | CXXFLAGS="${CXXFLAGS}" \ | 389 | CXXFLAGS="${CXXFLAGS}" \ |
390 | LDFLAGS="${LDFLAGS}" \ | 390 | LDFLAGS="${LDFLAGS}" \ |
391 | NM="/usr/bin/nm -p" \ | ||
391 | ac_cv_func_memcmp_working=yes \ | 392 | ac_cv_func_memcmp_working=yes \ |
392 | ac_cv_func_mmap_fixed_mapped=yes \ | 393 | ac_cv_func_mmap_fixed_mapped=yes \ |
393 | ac_cv_func_stat_empty_string_bug=no \ | 394 | ac_cv_func_stat_empty_string_bug=no \ |
@@ -420,11 +421,24 @@ fi|g" > ./libtool | |||
420 | find ./ -type f -name "Makefile" | \ | 421 | find ./ -type f -name "Makefile" | \ |
421 | xargs perl -pi -w -e "s#-lintl#-lintl -liconv#g;" | 422 | xargs perl -pi -w -e "s#-lintl#-lintl -liconv#g;" |
422 | if ! ( test $build_retval = 0 && make clean && \ | 423 | if ! ( test $build_retval = 0 && make clean && \ |
423 | make DESTDIR="${SDK_PATH}" install && \ | 424 | make DESTDIR="${SDK_PATH}" install ) |
425 | then | ||
426 | build_retval=1 | ||
427 | fi | ||
428 | # XXX version info for fw | ||
429 | if ! ( test $build_retval = 0 && \ | ||
430 | gcc -dynamiclib -install_name "${FW_DIR}/Extractor" \ | ||
431 | -compatibility_version 1 -current_version 1.0 \ | ||
432 | -o "${SDK_PATH}/${FW_DIR}/Extractor" \ | ||
433 | ${LDFLAGS} \ | ||
434 | -L"${SDK_PATH}/${FW_DIR}/lib" \ | ||
435 | -sub_library libextractor \ | ||
436 | -lextractor && \ | ||
424 | touch "${BUILD_DIR}/built-Extractor-${ARCH_NAME}" ) | 437 | touch "${BUILD_DIR}/built-Extractor-${ARCH_NAME}" ) |
425 | then | 438 | then |
426 | build_retval=1 | 439 | build_retval=1 |
427 | fi | 440 | fi |
441 | |||
428 | cp -v config.log "${BUILD_DIR}/config.log-Extractor-${ARCH_NAME}" | 442 | cp -v config.log "${BUILD_DIR}/config.log-Extractor-${ARCH_NAME}" |
429 | cp -v config.h "${BUILD_DIR}/config.h-Extractor-${ARCH_NAME}" | 443 | cp -v config.h "${BUILD_DIR}/config.h-Extractor-${ARCH_NAME}" |
430 | unset CPPFLAGS | 444 | unset CPPFLAGS |
@@ -721,6 +735,7 @@ for tfn in lib/libextractor*dylib | |||
721 | do | 735 | do |
722 | install_executable_to_framework "$tfn" | 736 | install_executable_to_framework "$tfn" |
723 | done | 737 | done |
738 | install_executable_to_framework "Extractor" | ||
724 | for tfn in lib/libextractor/libextractor*so | 739 | for tfn in lib/libextractor/libextractor*so |
725 | do | 740 | do |
726 | install_executable_to_framework "$tfn" | 741 | install_executable_to_framework "$tfn" |
@@ -738,7 +753,6 @@ do | |||
738 | install_message_catalog_to_framework "$tfn" | 753 | install_message_catalog_to_framework "$tfn" |
739 | done | 754 | done |
740 | install_en_message_catalog_to_framework "./po/libextractor.pot" | 755 | install_en_message_catalog_to_framework "./po/libextractor.pot" |
741 | make_framework_link "lib/libextractor.dylib" "Extractor" | ||
742 | make_framework_link "lib" "Libraries" | 756 | make_framework_link "lib" "Libraries" |
743 | make_framework_link "lib/libextractor" "PlugIns" | 757 | make_framework_link "lib/libextractor" "PlugIns" |
744 | make_framework_link "include" "Headers" | 758 | make_framework_link "include" "Headers" |