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="x86_64" 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.0" 0054 0055 else 0056 0057 echo "Unsupported or invalid target architecture..." 0058 exit -1 0059 0060 fi 0061 0062 # Directory to build and install Macports packages. 0063 INSTALL_PREFIX="/opt/digikam.org.$ARCH_TARGET" 0064 # Local install prefix which do not require sudo right 0065 #INSTALL_PREFIX="`pwd`/digikam.org.$ARCH_TARGET" 0066 0067 # Directory where target bundle contents will be installed. 0068 RELOCATE_PREFIX="/Applications/digiKam.org" 0069 0070 # Macports configuration 0071 MP_URL="https://distfiles.macports.org/MacPorts/" 0072 MP_BUILDTEMP=~/mptemp 0073 0074 # Uncomment this line to force a specific version of Macports to use, else latest will be used. 0075 #MP_VERSION="2.3.3" 0076 0077 ######################################################################## 0078 0079 # URL to git repository to checkout digiKam source code 0080 # git protocol version which require a developer account with ssh keys. 0081 DK_GITURL="git@invent.kde.org:graphics/digikam.git" 0082 # https protocol version which give annonyous access. 0083 #DK_GITURL="https://invent.kde.org/graphics/digikam.git" 0084 0085 # digiKam tarball information 0086 DK_URL="http://download.kde.org/stable/digikam" 0087 0088 # Location to build source code. 0089 DK_BUILDTEMP=~/dktemp 0090 0091 # KDE Plasma version. 0092 # See official release here: https://download.kde.org/stable/plasma/ 0093 DK_KP_VERSION="5.27.10" 0094 0095 # KDE Application version. 0096 # See official release here: https://download.kde.org/stable/release-service/ 0097 DK_KA_VERSION="23.08.4" 0098 0099 # KDE KF5 frameworks version. 0100 # See official release here: https://download.kde.org/stable/frameworks/ 0101 DK_KDE_VERSION="5.114" 0102 0103 # Qt version to use in bundle and provided by Macports. 0104 DK_QTVERSION="5" 0105 0106 # Mariadb version to install for Qt QSL plugin. 0107 # Left empty to use current 5.x from Macports 0108 DK_MARIADB_VERSION="" 0109 #DK_MARIADB_VERSION="10.5" 0110 0111 if [[ ! -z "$DK_MARIADB_VERSION" ]] ; then 0112 MP_MARIADB_VARIANT="+mariadb$DK_MARIADB_VERSION" 0113 MP_MARIADB_VARIANT=${MP_MARIADB_VARIANT//./_} 0114 MARIADB_SUFFIX="-$DK_MARIADB_VERSION" 0115 fi 0116 0117 # digiKam tag version from git. Official tarball do not include extra shared libraries. 0118 # The list of tags can be listed with this url: https://invent.kde.org/graphics/digikam/-/tags 0119 # If you want to package current implementation from git, use "master" as tag. 0120 #DK_VERSION=v7.2.0-beta1 0121 DK_VERSION=master 0122 #DK_VERSION=development/dplugins 0123 0124 # Installer sub version to differentiates newer updates of the installer itself, even if the underlying application hasn’t changed. 0125 #DK_SUBVER="-01" 0126 0127 # Installer will include or not digiKam debug symbols 0128 DK_DEBUG=0 0129 0130 # Option to use QtWebEngine instead QtWebkit 0131 DK_QTWEBENGINE=1 0132 0133 # Sign bundles with GPG. Passphrase must be hosted in ~/.gnupg/dkorg-gpg-pwd.txt 0134 DK_SIGN=0 0135 0136 # Upload automatically bundle to files.kde.org (pre-release only). 0137 DK_UPLOAD=1 0138 DK_UPLOADURL="digikam@tinami.kde.org" 0139 DK_UPLOADDIR="/srv/archives/files/digikam/"