mirror of
https://github.com/yann64/haikuports.git
synced 2026-03-19 01:46:00 +01:00
physfs: bump to version 3.2.0, backport a commit for cmake compatibility
This commit is contained in:
@@ -1,44 +1,17 @@
|
||||
Copyright (c) 2001-2022 Ryan C. Gordon <icculus@icculus.org> and others.
|
||||
|
||||
Copyright (c) 2003-2009 Ryan C. Gordon and others.
|
||||
This software is provided 'as-is', without any express or implied
|
||||
warranty. In no event will the authors be held liable for any damages
|
||||
arising from the use of this software.
|
||||
|
||||
This software is provided 'as-is', without any express or implied warranty.
|
||||
In no event will the authors be held liable for any damages arising from
|
||||
the use of this software.
|
||||
Permission is granted to anyone to use this software for any purpose,
|
||||
including commercial applications, and to alter it and redistribute it
|
||||
freely, subject to the following restrictions:
|
||||
|
||||
Permission is granted to anyone to use this software for any purpose,
|
||||
including commercial applications, and to alter it and redistribute it
|
||||
freely, subject to the following restrictions:
|
||||
|
||||
1. The origin of this software must not be misrepresented; you must not
|
||||
claim that you wrote the original software. If you use this software in a
|
||||
product, an acknowledgment in the product documentation would be
|
||||
1. The origin of this software must not be misrepresented; you must not
|
||||
claim that you wrote the original software. If you use this software
|
||||
in a product, an acknowledgment in the product documentation would be
|
||||
appreciated but is not required.
|
||||
|
||||
2. Altered source versions must be plainly marked as such, and must not be
|
||||
2. Altered source versions must be plainly marked as such, and must not be
|
||||
misrepresented as being the original software.
|
||||
|
||||
3. This notice may not be removed or altered from any source distribution.
|
||||
|
||||
Ryan C. Gordon <icculus@icculus.org>
|
||||
|
||||
|
||||
|
||||
|
||||
Notes, separate from the license. This is not legal advice.
|
||||
|
||||
Versions of PhysicsFS prior to 0.1.9 are licensed under the GNU Lesser General
|
||||
Public License, which restricts you significantly more. For your own safety,
|
||||
please make sure you've got 0.1.9 or later if you plan to use physfs in a
|
||||
commercial or closed-source project.
|
||||
|
||||
Optional pieces of PhysicsFS may fall under other licenses, please consult
|
||||
your lawyer for legal advice, which this is not...
|
||||
|
||||
zlib: if you enable ZIP archive support, PhysicsFS uses zlib. Its license
|
||||
requirements are identical to PhysicsFS.
|
||||
Please see zlib123/README for details.
|
||||
|
||||
lzma: if you enable LZMA (7zip) support, PhysicsFS uses the lzma sdk.
|
||||
It uses the LGPL license, with exceptions for closed-source programs.
|
||||
Please see lzma/lzma.txt for details.
|
||||
|
||||
3. This notice may not be removed or altered from any source distribution.
|
||||
|
||||
23
dev-games/physfs/patches/physfs-3.2.0.patchset
Normal file
23
dev-games/physfs/patches/physfs-3.2.0.patchset
Normal file
@@ -0,0 +1,23 @@
|
||||
From 47c9cc9ffbe64a86cd55817404385e18dc489c42 Mon Sep 17 00:00:00 2001
|
||||
From: Anonymous Maarten <anonymous.maarten@gmail.com>
|
||||
Date: Thu, 27 Apr 2023 22:39:41 +0200
|
||||
Subject: cmake: bump minimum CMake version to 3.6 in anticipation of CMake
|
||||
3.27
|
||||
|
||||
|
||||
diff --git a/CMakeLists.txt b/CMakeLists.txt
|
||||
index b3291cc..61bd4d9 100644
|
||||
--- a/CMakeLists.txt
|
||||
+++ b/CMakeLists.txt
|
||||
@@ -11,7 +11,7 @@
|
||||
|
||||
set(PHYSFS_VERSION 3.2.0)
|
||||
|
||||
-cmake_minimum_required(VERSION 3.0)
|
||||
+cmake_minimum_required(VERSION 3.5)
|
||||
|
||||
project(PhysicsFS VERSION ${PHYSFS_VERSION} LANGUAGES C )
|
||||
|
||||
--
|
||||
2.50.1
|
||||
|
||||
@@ -9,27 +9,32 @@ PhysicsFS gives you platform-abstracted means to determine if CD-ROMs are \
|
||||
available, the user's home directory (where in the real filesystem your \
|
||||
game is running), etc."
|
||||
HOMEPAGE="https://icculus.org/physfs"
|
||||
COPYRIGHT="2001-2017 Ryan C. Gordon"
|
||||
COPYRIGHT="2001-2022 Ryan C. Gordon"
|
||||
LICENSE="PHYSFS"
|
||||
REVISION="2"
|
||||
SOURCE_URI="http://icculus.org/physfs/downloads/physfs-$portVersion.tar.bz2"
|
||||
CHECKSUM_SHA256="304df76206d633df5360e738b138c94e82ccf086e50ba84f456d3f8432f9f863"
|
||||
REVISION="1"
|
||||
SOURCE_URI="https://github.com/icculus/physfs/archive/refs/tags/release-$portVersion.tar.gz"
|
||||
CHECKSUM_SHA256="1991500eaeb8d5325e3a8361847ff3bf8e03ec89252b7915e1f25b3f8ab5d560"
|
||||
SOURCE_DIR="physfs-release-$portVersion"
|
||||
PATCHES="physfs-$portVersion.patchset"
|
||||
|
||||
ARCHITECTURES="all"
|
||||
SECONDARY_ARCHITECTURES="x86"
|
||||
|
||||
libVersion="$portVersion"
|
||||
libVersionCompat="$libVersion compat >= 1"
|
||||
|
||||
PROVIDES="
|
||||
physfs$secondaryArchSuffix = $portVersion compat >= 3.0
|
||||
cmd:test_physfs$secondaryArchSuffix = $portVersion compat >= 3.0
|
||||
lib:libphysfs$secondaryArchSuffix = $portVersion compat >= 3.0
|
||||
physfs$secondaryArchSuffix = $portVersion
|
||||
cmd:test_physfs$secondaryArchSuffix = $portVersion compat >= 3.2
|
||||
lib:libphysfs$secondaryArchSuffix = $libVersionCompat
|
||||
"
|
||||
REQUIRES="
|
||||
haiku$secondaryArchSuffix
|
||||
"
|
||||
|
||||
PROVIDES_devel="
|
||||
physfs${secondaryArchSuffix}_devel = $portVersion compat >= 3.0
|
||||
devel:libphysfs$secondaryArchSuffix = $portVersion compat >= 3.0
|
||||
physfs${secondaryArchSuffix}_devel = $portVersion
|
||||
devel:libphysfs$secondaryArchSuffix = $libVersionCompat
|
||||
"
|
||||
REQUIRES_devel="
|
||||
physfs$secondaryArchSuffix == $portVersion base
|
||||
@@ -44,17 +49,10 @@ BUILD_PREREQUIRES="
|
||||
cmd:make
|
||||
"
|
||||
|
||||
PATCH()
|
||||
{
|
||||
sed -i "s,DESTINATION include,DESTINATION $relativeIncludeDir," CMakeLists.txt
|
||||
sed -i "s,DESTINATION bin,DESTINATION $relativeBinDir," CMakeLists.txt
|
||||
}
|
||||
|
||||
BUILD()
|
||||
{
|
||||
cmake -Bbuild -S. -DCMAKE_BUILD_TYPE=Release \
|
||||
-DCMAKE_INSTALL_PREFIX=$prefix \
|
||||
-DLIB_SUFFIX="/${secondaryArchSuffix/_/}" \
|
||||
$cmakeDirArgs \
|
||||
-DPHYSFS_BUILD_STATIC=OFF
|
||||
make -C build $jobArgs
|
||||
}
|
||||
@@ -68,5 +66,6 @@ INSTALL()
|
||||
|
||||
# devel package
|
||||
packageEntries devel \
|
||||
$developDir
|
||||
$developDir \
|
||||
$libDir/cmake
|
||||
}
|
||||
Reference in New Issue
Block a user