diff options
author | Heikki Lindholm <holin@iki.fi> | 2008-10-03 06:01:23 +0000 |
---|---|---|
committer | Heikki Lindholm <holin@iki.fi> | 2008-10-03 06:01:23 +0000 |
commit | 040fd2f6c4a66b4627bf4c377bba524fb7cb699c (patch) | |
tree | 6eb0cc8a49f0ecec050ae5511260a8e05b1b5a1c /contrib/macosx | |
parent | 12213877d89a05ac1ac196a60dd387cd1f9a9a30 (diff) | |
download | libextractor-040fd2f6c4a66b4627bf4c377bba524fb7cb699c.tar.gz libextractor-040fd2f6c4a66b4627bf4c377bba524fb7cb699c.zip |
use external gettext libintl
Diffstat (limited to 'contrib/macosx')
-rwxr-xr-x | contrib/macosx/build-osx-framework.sh | 27 |
1 files changed, 16 insertions, 11 deletions
diff --git a/contrib/macosx/build-osx-framework.sh b/contrib/macosx/build-osx-framework.sh index 62fc372..1096b11 100755 --- a/contrib/macosx/build-osx-framework.sh +++ b/contrib/macosx/build-osx-framework.sh | |||
@@ -271,28 +271,29 @@ build_package() | |||
271 | # | 271 | # |
272 | build_dependencies() | 272 | build_dependencies() |
273 | { | 273 | { |
274 | # prepare_package "${GETTEXT_NAME}" | 274 | prepare_package "${GETTEXT_NAME}" |
275 | # build_package "${GETTEXT_NAME}" \ | 275 | build_package "${GETTEXT_NAME}" \ |
276 | # "${ARCH_HOSTSETTING} \ | 276 | "${ARCH_HOSTSETTING} \ |
277 | # --prefix="${FW_DIR}" \ | 277 | --prefix="${FW_DIR}" \ |
278 | # --enable-shared \ | 278 | --disable-shared \ |
279 | # --disable-java \ | 279 | --enable-static \ |
280 | # --disable-native-java \ | 280 | --disable-java \ |
281 | # --without-emacs \ | 281 | --disable-native-java \ |
282 | # --with-libiconv-prefix=${SDK_PATH}/usr" | 282 | --without-emacs \ |
283 | --with-libiconv-prefix=${SDK_PATH}/usr" | ||
283 | 284 | ||
284 | prepare_package "${LIBOGG_NAME}" | 285 | prepare_package "${LIBOGG_NAME}" |
285 | build_package "${LIBOGG_NAME}" \ | 286 | build_package "${LIBOGG_NAME}" \ |
286 | "${ARCH_HOSTSETTING} \ | 287 | "${ARCH_HOSTSETTING} \ |
287 | --prefix="${FW_DIR}" \ | 288 | --prefix="${FW_DIR}" \ |
288 | --disable-shared \ | 289 | --disable-shared \ |
289 | --enable-static" | 290 | --enable-static" |
290 | 291 | ||
291 | prepare_package "${LIBVORBIS_NAME}" | 292 | prepare_package "${LIBVORBIS_NAME}" |
292 | build_package "${LIBVORBIS_NAME}" \ | 293 | build_package "${LIBVORBIS_NAME}" \ |
293 | "${ARCH_HOSTSETTING} \ | 294 | "${ARCH_HOSTSETTING} \ |
294 | --prefix="${FW_DIR}" \ | 295 | --prefix="${FW_DIR}" \ |
295 | --disable-shared \ | 296 | --disable-shared \ |
296 | --enable-static \ | 297 | --enable-static \ |
297 | --disable-oggtest" | 298 | --disable-oggtest" |
298 | 299 | ||
@@ -337,6 +338,7 @@ build_extractor() | |||
337 | CXXFLAGS="${CXXFLAGS}" \ | 338 | CXXFLAGS="${CXXFLAGS}" \ |
338 | LDFLAGS="${LDFLAGS}" \ | 339 | LDFLAGS="${LDFLAGS}" \ |
339 | "${ARCH_HOSTSETTING}" \ | 340 | "${ARCH_HOSTSETTING}" \ |
341 | gt_cv_func_gnugettext1_libintl=yes \ | ||
340 | --prefix="${FW_DIR}" \ | 342 | --prefix="${FW_DIR}" \ |
341 | --enable-shared \ | 343 | --enable-shared \ |
342 | --disable-gsf \ | 344 | --disable-gsf \ |
@@ -360,6 +362,9 @@ fi|g" > ./libtool | |||
360 | # use native dictionary-builder instead of the cross-built one | 362 | # use native dictionary-builder instead of the cross-built one |
361 | find ./ -type f -name "Makefile" | \ | 363 | find ./ -type f -name "Makefile" | \ |
362 | xargs perl -pi -w -e "s#./dictionary-builder #${BUILD_DIR}/toolchain/bin/dictionary-builder #g;" | 364 | xargs perl -pi -w -e "s#./dictionary-builder #${BUILD_DIR}/toolchain/bin/dictionary-builder #g;" |
365 | # add linking to libiconv where libintl is used | ||
366 | find ./ -type f -name "Makefile" | \ | ||
367 | xargs perl -pi -w -e "s#-lintl#-lintl -liconv#g;" | ||
363 | if ! ( test $build_retval = 0 && \ | 368 | if ! ( test $build_retval = 0 && \ |
364 | make DESTDIR="${SDK_PATH}" install && \ | 369 | make DESTDIR="${SDK_PATH}" install && \ |
365 | touch "${BUILD_DIR}/built-Extractor-${ARCH_NAME}" ) | 370 | touch "${BUILD_DIR}/built-Extractor-${ARCH_NAME}" ) |