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
+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 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
# This function is used to compile the source code
build() {
cmake -B build -Wno-dev \
-DCMAKE_BUILD_TYPE=None \
-DCMAKE_INSTALL_PREFIX=/usr \
-DCMAKE_BUILD_TYPE=Release \
-DFREEGLUT_BUILD_DEMOS=OFF \
-DFREEGLUT_BUILD_STATIC_LIBS=OFF \
-DCMAKE_POLICY_VERSION_MINIMUM=3.5
-DFREEGLUT_BUILD_STATIC_LIBS=OFF
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
# This function is used to move the compiled files into the output directory
package() {
DESTDIR="$BPM_OUTPUT" cmake --install build
# Install package license
install -Dm644 "$BPM_SOURCE"/COPYING "$BPM_OUTPUT"/usr/share/licenses/freeglut/COPYING
}