-
- # Copy the Lensfun database into the app bundle
- mkdir -p "${RESOURCES}/share/lensfun"
- ditto ${LOCAL_PREFIX}/local/share/lensfun/version_2/* "${RESOURCES}/share/lensfun"
-
- # Copy liblensfun to Frameworks
- ditto ${LOCAL_PREFIX}/local/lib/liblensfun.2.dylib "${CONTENTS}/Frameworks/liblensfun.2.dylib"
-
- # Copy libomp to Frameworks
- ditto ${LOCAL_PREFIX}/local/lib/libomp.dylib "${CONTENTS}/Frameworks"
-
- # Prepare GTK+3 installation
- msg "Copying configuration files from ${GTK_PREFIX}:"
- install -d "${ETC}/gtk-3.0"
- msg "Copying library modules from ${GTK_PREFIX}:"
- ditto --arch "${arch}" {"${GTK_PREFIX}/lib","${LIB}"}/gdk-pixbuf-2.0
- ditto --arch "${arch}" {"${GTK_PREFIX}/lib","${LIB}"}/gtk-3.0
- msg "Removing static libraries and cache files:"
- find -E "${LIB}" -type f -regex '.*\.(a|la|cache)$' | while read -r; do rm "${REPLY}"; done
-
- # Make Frameworks folder flat