2021-10-19 05:30:20 +02:00
|
|
|
# Description: Qt module and API for defining 3D content in Qt Quick
|
|
|
|
# URL: https://www.qt.io/
|
|
|
|
# Maintainer: Danny Rawlins, crux at romster dot me
|
|
|
|
# Depends on: qt6-declarative
|
|
|
|
|
|
|
|
name=qt6-quick3d
|
2023-04-02 15:44:32 +02:00
|
|
|
version=6.4.3
|
2021-10-19 05:30:20 +02:00
|
|
|
release=1
|
|
|
|
source=(https://download.qt.io/official_releases/qt/${version%.*}/$version/submodules/qtquick3d-everywhere-src-$version.tar.xz)
|
|
|
|
|
|
|
|
build() {
|
|
|
|
prt-get isinst ninja && PKGMK_QT6+=' -G Ninja'
|
|
|
|
prt-get isinst ccache && PKGMK_QT6+=' -D QT_USE_CCACHE=ON' && PATH="$(echo ${PATH} | awk -v RS=: -v ORS=: '/ccache/ {next} {print}' | sed 's/:*$//')"
|
|
|
|
|
|
|
|
cmake -S qtquick3d-everywhere-src-$version -B build $PKGMK_QT6 \
|
|
|
|
-D CMAKE_BUILD_TYPE=Release \
|
|
|
|
-D CMAKE_CXX_FLAGS_RELEASE="$CXXFLAGS" \
|
|
|
|
-D CMAKE_C_FLAGS_RELEASE="$CFLAGS"
|
|
|
|
cmake --build build
|
|
|
|
DESTDIR=$PKG cmake --install build
|
|
|
|
}
|