Update package version to 3.8.0
This commit is contained in:
@@ -1,9 +1,25 @@
|
||||
name: freeglut
|
||||
description: FOSS alternative to the OpenGL Utility Toolkit
|
||||
version: 3.6.0
|
||||
version: 3.8.0
|
||||
revision: 1
|
||||
url: https://freeglut.sourceforge.net/
|
||||
license: X11
|
||||
architecture: any
|
||||
depends: ["glibc","libglvnd","libx11","libxi","libxrandr","libxxf86vm"]
|
||||
make_depends: ["cmake","glu","mesa","ninja"]
|
||||
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
|
||||
|
||||
@@ -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
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user