@@ -345,22 +345,16 @@ cp "$TOP_DIR/src/arch/shared/macOS-common-runtime.sh" "$APP_BIN/common-runtime.s
345345
346346if [ " $UI_TYPE " = " SDL2" ]; then
347347 cp " $TOP_DIR /src/arch/sdl/macOS-ui-runtime.sh" " $APP_BIN /ui-runtime.sh"
348- # FIXME
349- # copy_lib_recursively $DEPS_PREFIX/lib/libjxl_cms.*.dylib
350- # FIXME
351- # copy_lib_recursively $DEPS_PREFIX/lib/libsharpyuv.*.dylib
348+ copy_lib_recursively $DEPS_PREFIX /lib/libjxl_cms.* .dylib
349+ copy_lib_recursively $DEPS_PREFIX /lib/libsharpyuv.* .dylib
352350elif [ " $UI_TYPE " = " GTK3" ]; then
353351 cp " $TOP_DIR /src/arch/gtk3/macOS-ui-runtime.sh" " $APP_BIN /ui-runtime.sh"
354352
355353 # Gtk runtime stuff
356- # FIXME
357- # cp -r $DEPS_PREFIX/lib/gdk-pixbuf-2.0 $APP_LIB
358- # FIXME
359- # cp -r $DEPS_PREFIX/lib/gtk-3.0 $APP_LIB
360- # FIXME
361- # cp -r $DEPS_PREFIX/etc/gtk-3.0 $APP_ETC
362- # FIXME
363- # cp -r $DEPS_PREFIX/share/glib-2.0 $APP_SHARE
354+ cp -r $DEPS_PREFIX /lib/gdk-pixbuf-2.0 $APP_LIB
355+ cp -r $DEPS_PREFIX /lib/gtk-3.0 $APP_LIB
356+ cp -r $DEPS_PREFIX /etc/gtk-3.0 $APP_ETC
357+ cp -r $DEPS_PREFIX /share/glib-2.0 $APP_SHARE
364358
365359 # Get rid of any compiled python that came with glib share
366360 find $APP_SHARE -name ' *.pyc' -exec rm {} \;
@@ -371,52 +365,47 @@ elif [ "$UI_TYPE" = "GTK3" ]; then
371365
372366 mkdir " $out_icons "
373367 # Rewrite the index.theme file to exclude large non-vector assets
374- # FIXME
375- # awk '
376- # BEGIN {
377- # directories_found = 0
378- # }
379- # /^Directories=/ {
380- # directories_found = 1
381- # printf "Directories="
382- # system("echo " $0 " | tr \"=,\" \"\n\" | grep ^scalable | tr \"\n\" \",\" ")
383- # printf "\n"
384- # next
385- # }
386- # {
387- # if (!directories_found) {
388- # print
389- # next
390- # }
391- # }
392- # /^\[/ {
393- # eat = 0
394- # if ($0 !~ /^\[scalable\//) {
395- # eat = 1
396- # }
397- # }
398- # {
399- # if (!eat) {
400- # print
401- # }
402- # }' < "$in_icons/index.theme" > "$out_icons/index.theme"
403- # FIXME
404- # cp -r "$in_icons/scalable" "$out_icons/"
368+ awk '
369+ BEGIN {
370+ directories_found = 0
371+ }
372+ /^Directories=/ {
373+ directories_found = 1
374+ printf "Directories="
375+ system("echo " $0 " | tr \"=,\" \"\n\" | grep ^scalable | tr \"\n\" \",\" ")
376+ printf "\n"
377+ next
378+ }
379+ {
380+ if (!directories_found) {
381+ print
382+ next
383+ }
384+ }
385+ /^\[/ {
386+ eat = 0
387+ if ($0 !~ /^\[scalable\//) {
388+ eat = 1
389+ }
390+ }
391+ {
392+ if (!eat) {
393+ print
394+ }
395+ }' < " $in_icons /index.theme" > " $out_icons /index.theme"
396+ cp -r " $in_icons /scalable" " $out_icons /"
405397
406398 # create the icon-theme.cache file
407- # FIXME
408- # $GTK_UPDATE_ICON_CACHE "$out_icons/"
399+ $GTK_UPDATE_ICON_CACHE " $out_icons /"
409400 }
410401
411402 mkdir $APP_SHARE /icons
412403
413404 import_scalable_gtk_icons Adwaita
414405
415406 # hicolor is small, just copy it. It doesn't have any scalable assets.
416- # FIXME
417- # cp -r $DEPS_PREFIX/share/icons/hicolor "$APP_SHARE/icons/"
418- # FIXME
419- # $GTK_UPDATE_ICON_CACHE "$APP_SHARE/icons/hicolor"
407+ cp -r $DEPS_PREFIX /share/icons/hicolor " $APP_SHARE /icons/"
408+ $GTK_UPDATE_ICON_CACHE " $APP_SHARE /icons/hicolor"
420409fi
421410
422411# .so libs need their libs too
@@ -429,11 +418,9 @@ for lib in `find $APP_LIB -name '*.so'`; do
429418done
430419
431420# Some libs are loaded at runtime
432- # FIXME
433- # if grep -q "^#define HAVE_EXTERNAL_LAME " "src/config.h"; then
434- # FIXME
435- # copy_lib_recursively $DEPS_PREFIX/lib/libmp3lame.dylib
436- # fi
421+ if grep -q " ^#define HAVE_EXTERNAL_LAME " " src/config.h" ; then
422+ copy_lib_recursively $DEPS_PREFIX /lib/libmp3lame.dylib
423+ fi
437424
438425# --- copy tools ---------------------------------------------------------------
439426
@@ -571,8 +558,8 @@ if [ "$UI_TYPE" = "GTK3" ]; then
571558 # macports
572559 sed -i ' ' -e " s,$DEPS_PREFIX ,@executable_path/..," $APP_ETC /gtk-3.0/gdk-pixbuf.loaders
573560 fi
574- # FIXME
575- # sed -i '' -e "s,$DEPS_PREFIX,@executable_path/..," $(find $APP_LIB/gdk-pixbuf-* -name loaders.cache)
561+
562+ sed -i ' ' -e " s,$DEPS_PREFIX ,@executable_path/..," $( find $APP_LIB /gdk-pixbuf-* -name loaders.cache)
576563fi
577564
578565
@@ -753,4 +740,4 @@ if [ ! -e doc/vice.pdf ]; then
753740 ****
754741
755742HEREDOC
756- fi
743+ fi
0 commit comments