Update package version to 3.8.0

This commit is contained in:
2025-11-21 17:30:16 +02:00
parent 71720d2227
commit e4effdbff8
2 changed files with 28 additions and 20 deletions
+19 -3
View File
@@ -1,9 +1,25 @@
name: freeglut name: freeglut
description: FOSS alternative to the OpenGL Utility Toolkit description: FOSS alternative to the OpenGL Utility Toolkit
version: 3.6.0 version: 3.8.0
revision: 1
url: https://freeglut.sourceforge.net/ url: https://freeglut.sourceforge.net/
license: X11 license: X11
architecture: any architecture: any
depends: ["glibc","libglvnd","libx11","libxi","libxrandr","libxxf86vm"]
make_depends: ["cmake","glu","mesa","ninja"]
type: source type: source
depends:
- glibc
- glu
- libglvnd
- libx11
- libxi
- libxrandr
- libxxf86vm
make_depends:
- cmake
- mesa
- ninja
downloads:
- url: https://downloads.sourceforge.net/project/freeglut/freeglut/${BPM_PKG_VERSION}/freeglut-${BPM_PKG_VERSION}.tar.gz
extract_to: ${BPM_SOURCE}
extract_strip_components: 1
checksum: 674dcaff25010e09e450aec458b8870d9e98c46f99538db457ab659b321d9989
+9 -17
View File
@@ -2,36 +2,28 @@
# BPM Expects the source code to be extracted into the automatically created 'source' directory which can be accessed using $BPM_SOURCE # BPM Expects the source code to be extracted into the automatically created 'source' directory which can be accessed using $BPM_SOURCE
# BPM Expects the output files to be present in the automatically created 'output' directory which can be accessed using $BPM_OUTPUT # BPM Expects the output files to be present in the automatically created 'output' directory which can be accessed using $BPM_OUTPUT
DOWNLOAD="https://downloads.sourceforge.net/freeglut/freeglut-${BPM_PKG_VERSION}.tar.gz"
FILENAME="${DOWNLOAD##*/}"
# The prepare function is executed in the root of the temp directory
# This function is used for downloading files and putting them into the correct location
prepare() {
wget "$DOWNLOAD"
tar -xvf "$FILENAME" --strip-components=1 -C "$BPM_SOURCE"
cd "$BPM_SOURCE"
# Fix GCC-15 error
sed -e '/Context/s/()/(SFG_PlatformDisplay, SFG_WindowContextType)/' -i src/egl/fg_init_egl.h
}
# The build function is executed in the source directory # The build function is executed in the source directory
# This function is used to compile the source code # This function is used to compile the source code
build() { build() {
cmake -B build -Wno-dev \ cmake -B build -Wno-dev \
-DCMAKE_BUILD_TYPE=None \
-DCMAKE_INSTALL_PREFIX=/usr \ -DCMAKE_INSTALL_PREFIX=/usr \
-DCMAKE_BUILD_TYPE=Release \
-DFREEGLUT_BUILD_DEMOS=OFF \ -DFREEGLUT_BUILD_DEMOS=OFF \
-DFREEGLUT_BUILD_STATIC_LIBS=OFF \ -DFREEGLUT_BUILD_STATIC_LIBS=OFF
-DCMAKE_POLICY_VERSION_MINIMUM=3.5
cmake --build build cmake --build build
} }
# The check function is executed in the source directory
# This function is used to run tests to verify the package has been compiled correctly
check() {
ctest --test-dir build --output-on-failure --stop-on-failure
}
# The package function is executed in the source directory # The package function is executed in the source directory
# This function is used to move the compiled files into the output directory # This function is used to move the compiled files into the output directory
package() { package() {
DESTDIR="$BPM_OUTPUT" cmake --install build DESTDIR="$BPM_OUTPUT" cmake --install build
# Install package license
install -Dm644 "$BPM_SOURCE"/COPYING "$BPM_OUTPUT"/usr/share/licenses/freeglut/COPYING install -Dm644 "$BPM_SOURCE"/COPYING "$BPM_OUTPUT"/usr/share/licenses/freeglut/COPYING
} }