aboutsummaryrefslogtreecommitdiff
path: root/contrib
diff options
context:
space:
mode:
authorHeikki Lindholm <holin@iki.fi>2008-10-17 09:21:41 +0000
committerHeikki Lindholm <holin@iki.fi>2008-10-17 09:21:41 +0000
commitdc928350ed72aa11696b6908c289fb573b3979fb (patch)
tree750ee84af93ecca077c59ecd50645a232061879d /contrib
parentfd7b096323fd07dd49456507c9076cf6ea9d626b (diff)
downloadlibextractor-dc928350ed72aa11696b6908c289fb573b3979fb.tar.gz
libextractor-dc928350ed72aa11696b6908c289fb573b3979fb.zip
sync
Diffstat (limited to 'contrib')
-rwxr-xr-xcontrib/macosx/build-osx-framework.sh22
1 files changed, 14 insertions, 8 deletions
diff --git a/contrib/macosx/build-osx-framework.sh b/contrib/macosx/build-osx-framework.sh
index 1473dcc..425a632 100755
--- a/contrib/macosx/build-osx-framework.sh
+++ b/contrib/macosx/build-osx-framework.sh
@@ -113,9 +113,9 @@ build_toolchain_package()
113 fi 113 fi
114 CPPFLAGS="-I${BUILD_DIR}/toolchain/include" 114 CPPFLAGS="-I${BUILD_DIR}/toolchain/include"
115 LDFLAGS="-L${BUILD_DIR}/toolchain/lib" 115 LDFLAGS="-L${BUILD_DIR}/toolchain/lib"
116 if ! ( cd $1 && ./configure --prefix="${BUILD_DIR}/toolchain" \ 116 if ! ( cd $1 && CPPFLAGS="${CPPFLAGS}" \
117 CPPFLAGS="${CPPFLAGS}" \
118 LDFLAGS="${LDFLAGS}" \ 117 LDFLAGS="${LDFLAGS}" \
118 ./configure --prefix="${BUILD_DIR}/toolchain" \
119 $2 && \ 119 $2 && \
120 make install ) 120 make install )
121 then 121 then
@@ -243,7 +243,7 @@ prepare_package()
243 for patchfile in $( ls $1-patch-* 2> /dev/null | sort ) 243 for patchfile in $( ls $1-patch-* 2> /dev/null | sort )
244 do 244 do
245 echo "applying $patchfile..." 245 echo "applying $patchfile..."
246 if ! ( cd $1 && cat "../$patchfile" | patch -p0 ) 246 if ! ( cd $1 && cat "../$patchfile" | patch -p1 )
247 then 247 then
248 echo "error patching $1" 248 echo "error patching $1"
249 prepare_retval=1 249 prepare_retval=1
@@ -277,13 +277,13 @@ build_package()
277 CFLAGS="${OPT_FLAGS} -no-cpp-precomp -fno-common ${ARCH_CFLAGS}" 277 CFLAGS="${OPT_FLAGS} -no-cpp-precomp -fno-common ${ARCH_CFLAGS}"
278 CXXFLAGS="${CFLAGS}" 278 CXXFLAGS="${CFLAGS}"
279 LDFLAGS="${ARCH_LDFLAGS}" 279 LDFLAGS="${ARCH_LDFLAGS}"
280 if ! ( cd "$1" && ./configure CC="${CC}" \ 280 if ! ( cd "$1" && CC="${CC}" \
281 CXX="${CXX}" \ 281 CXX="${CXX}" \
282 CPPFLAGS="${CPPFLAGS}" \ 282 CPPFLAGS="${CPPFLAGS}" \
283 CFLAGS="${CFLAGS}" \ 283 CFLAGS="${CFLAGS}" \
284 CXXFLAGS="${CXXFLAGS}" \ 284 CXXFLAGS="${CXXFLAGS}" \
285 LDFLAGS="${LDFLAGS}" \ 285 LDFLAGS="${LDFLAGS}" \
286 $2 && \ 286 ./configure $2 && \
287 make DESTDIR="${SDK_PATH}" install && \ 287 make DESTDIR="${SDK_PATH}" install && \
288 touch "${BUILD_DIR}/built-$1-${ARCH_NAME}" ) 288 touch "${BUILD_DIR}/built-$1-${ARCH_NAME}" )
289 then 289 then
@@ -375,17 +375,17 @@ build_extractor()
375 CPPFLAGS="${ARCH_CPPFLAGS}" 375 CPPFLAGS="${ARCH_CPPFLAGS}"
376 CXXFLAGS="${CFLAGS}" 376 CXXFLAGS="${CFLAGS}"
377 LDFLAGS="${ARCH_LDFLAGS}" 377 LDFLAGS="${ARCH_LDFLAGS}"
378 if ! ( make clean && ./configure CC="${ARCH_CC}" \ 378 if ! ( CC="${ARCH_CC}" \
379 CXX="${ARCH_CXX}" \ 379 CXX="${ARCH_CXX}" \
380 CPPFLAGS="${CPPFLAGS}" \ 380 CPPFLAGS="${CPPFLAGS}" \
381 CFLAGS="${CFLAGS}" \ 381 CFLAGS="${CFLAGS}" \
382 CXXFLAGS="${CXXFLAGS}" \ 382 CXXFLAGS="${CXXFLAGS}" \
383 LDFLAGS="${LDFLAGS}" \ 383 LDFLAGS="${LDFLAGS}" \
384 "${ARCH_HOSTSETTING}" \
385 gt_cv_func_gnugettext1_libintl=yes \ 384 gt_cv_func_gnugettext1_libintl=yes \
386 ac_cv_func_memcmp_working=yes \ 385 ac_cv_func_memcmp_working=yes \
387 ac_cv_func_mmap_fixed_mapped=yes \ 386 ac_cv_func_mmap_fixed_mapped=yes \
388 ac_cv_func_stat_empty_string_bug=no \ 387 ac_cv_func_stat_empty_string_bug=no \
388 ./configure "${ARCH_HOSTSETTING}" \
389 --prefix="${FW_DIR}" \ 389 --prefix="${FW_DIR}" \
390 --enable-shared \ 390 --enable-shared \
391 --disable-gsf \ 391 --disable-gsf \
@@ -412,7 +412,7 @@ fi|g" > ./libtool
412 # add linking to libiconv where libintl is used 412 # add linking to libiconv where libintl is used
413 find ./ -type f -name "Makefile" | \ 413 find ./ -type f -name "Makefile" | \
414 xargs perl -pi -w -e "s#-lintl#-lintl -liconv#g;" 414 xargs perl -pi -w -e "s#-lintl#-lintl -liconv#g;"
415 if ! ( test $build_retval = 0 && \ 415 if ! ( test $build_retval = 0 && make clean && \
416 make DESTDIR="${SDK_PATH}" install && \ 416 make DESTDIR="${SDK_PATH}" install && \
417 touch "${BUILD_DIR}/built-Extractor-${ARCH_NAME}" ) 417 touch "${BUILD_DIR}/built-Extractor-${ARCH_NAME}" )
418 then 418 then
@@ -485,6 +485,12 @@ install_executable_to_framework()
485 if [ "x${src_files}" != "x" ] 485 if [ "x${src_files}" != "x" ]
486 then 486 then
487 create_directory_for "${dst_file}" 487 create_directory_for "${dst_file}"
488 local extralibs=$(otool -L ${src_files} | grep "compatibility version" |cut -d' ' -f 1 | sort | uniq -u)
489 if [ "x$extralibs" != "x" ]
490 then
491 echo "WARNING: linking difference"
492 echo "$extralibs"
493 fi
488 if [ ! -e "${dst_file}" ] && [ ! -h "${dst_file}" ] 494 if [ ! -e "${dst_file}" ] && [ ! -h "${dst_file}" ]
489 then 495 then
490 echo "LIPO ${dst_file}" 496 echo "LIPO ${dst_file}"