File indexing completed on 2024-06-16 04:06:49
0001 #!/bin/bash 0002 0003 # SPDX-FileCopyrightText: 2013-2024 by Gilles Caulier <caulier dot gilles at gmail dot com> 0004 # 0005 # SPDX-License-Identifier: BSD-3-Clause 0006 # 0007 0008 ######################################################################## 0009 0010 # Absolute path where are downloaded all tarballs to compile. 0011 DOWNLOAD_DIR="`pwd`/temp.dwnld" 0012 0013 # Absolute path where are compiled all tarballs 0014 BUILDING_DIR="`pwd`/temp.build" 0015 0016 ######################################################################## 0017 0018 # Target macOS architecture: "x86_64" for Intel 64 bits, or "arm64" for Apple Silicon 64 bits. 0019 ARCH_TARGET="arm64" 0020 0021 if [[ $ARCH_TARGET = "x86_64" ]] ; then 0022 0023 # Minimum MacOS target for backward binary compatibility with Intel CPU 0024 # This require to install older MacOS SDKs with Xcode. 0025 # See this url to download a older SDK archive : 0026 # 0027 # https://github.com/alexey-lysiuk/macos-sdk 0028 # 0029 # Uncompress the archive to /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/ 0030 # and adjust the property "MinimumSDKVersion" from /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Info.plist 0031 # sudo /usr/libexec/PlistBuddy -c "Set MinimumSDKVersion 10.13" /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Info.plist 0032 # 0033 # Possible values: 0034 # 12.0 : Monterey : tested : Qt 5.13, 5.14, 5.15 0035 # 11.0 : BigSur : tested : Qt 5.12, 5.13, 5.14, 5.15 0036 # 10.15 : Catalina : tested : Qt 5.11, 5.12, 5.13, 5.14, 5.15 0037 # 10.14 : Mojave : tested : Qt 5.9, 5.10, 5.11, 5.12, 5.13, 5.14, 5.15 0038 # 10.13 : High Sierra : tested : Qt 5.9, 5.10, 5.11, 5.12, 5.13, 5.14, 5.15 0039 # 10.12 : Sierra : tested : Qt 5.8, 5.9, 5.10, 5.11, 5.12, 5.13 0040 # 10.11 : El Capitan : tested : Qt 5.5, 5.6, 5.7, 5.8, 5.9, 5.10, 5.11 0041 # 10.10 : Yosemite : tested : Qt 5.5, 5.6, 5.7, 5.8, 5.9 0042 # 10.9 : Mavericks : tested : Qt 5.5, 5.6, 5.7, 5.8 0043 # 10.8 : MountainLion : tested : Qt 5.5, 5.6, 5.7 0044 # 10.7 : Lion : untested : Qt 5.5, 5.6 0045 # 10.6 : SnowLeopard : untested : ??? 0046 # 0047 # Older values cannot be set as it do not support x86_64. 0048 OSX_MIN_TARGET="10.15" 0049 0050 elif [[ $ARCH_TARGET = "arm64" ]] ; then 0051 0052 # Apple Silicon is supported since macOS BigSur 0053 OSX_MIN_TARGET="11.3" 0054 0055 else 0056 0057 echo "Unsupported or invalid target architecture..." 0058 exit -1 0059 0060 fi 0061 0062 # Directory to build and install HomeBrew packages. 0063 INSTALL_PREFIX="/opt/homebrew" 0064 0065 # Directory where target bundle contents will be installed. 0066 RELOCATE_PREFIX="/Applications/digiKam.org" 0067 0068 ######################################################################## 0069 0070 # URL to git repository to checkout digiKam source code 0071 # git protocol version which require a developer account with ssh keys. 0072 DK_GITURL="git@invent.kde.org:graphics/digikam.git" 0073 # https protocol version which give annonyous access. 0074 #DK_GITURL="https://invent.kde.org/graphics/digikam.git" 0075 0076 # digiKam tarball information 0077 DK_URL="http://download.kde.org/stable/digikam" 0078 0079 # Location to build source code. 0080 DK_BUILDTEMP=~/dktemp 0081 0082 # KDE Plasma version. 0083 # See official release here: https://download.kde.org/stable/plasma/ 0084 DK_KP_VERSION="5.27.8" 0085 0086 # KDE Application version. 0087 # See official release here: https://download.kde.org/stable/release-service/ 0088 DK_KA_VERSION="23.08.1" 0089 0090 # Qt version to use in bundle and provided by Macports. 0091 DK_QTVERSION="6" 0092 0093 # digiKam tag version from git. Official tarball do not include extra shared libraries. 0094 # The list of tags can be listed with this url: https://invent.kde.org/graphics/digikam/-/tags 0095 # If you want to package current implementation from git, use "master" as tag. 0096 #DK_VERSION=v7.2.0-beta1 0097 DK_VERSION=master 0098 #DK_VERSION=development/dplugins 0099 0100 # Installer sub version to differentiates newer updates of the installer itself, even if the underlying application hasn’t changed. 0101 #DK_SUBVER="-01" 0102 0103 # Installer will include or not digiKam debug symbols 0104 DK_DEBUG=0 0105 0106 # Option to use QtWebEngine instead QtWebkit 0107 DK_QTWEBENGINE=1 0108 0109 # Sign bundles with GPG. Passphrase must be hosted in ~/.gnupg/dkorg-gpg-pwd.txt 0110 DK_SIGN=0 0111 0112 # Upload automatically bundle to files.kde.org (pre-release only). 0113 DK_UPLOAD=0 0114 DK_UPLOADURL="digikam@tinami.kde.org" 0115 0116 # KDE frameworks version + Upload URL. 0117 # See official release here: https://download.kde.org/stable/frameworks/ 0118 0119 if [[ $DK_QTVERSION == 5 ]] ; then 0120 0121 DK_KDE_VERSION="5.113" 0122 DK_UPLOADDIR="/srv/archives/files/digikam/" 0123 0124 else 0125 0126 DK_KDE_VERSION="master" # Qt6 version use master code for the moment. 0127 DK_UPLOADDIR="/srv/archives/files/digikam/unstable" # Qt6 version is considerated unstable for the moment. 0128 0129 fi