community/ptex: upgrade to 2.4.3

This commit is contained in:
Leon Marz 2024-07-06 12:28:07 +02:00 committed by Celeste
parent 3e399749e8
commit 44326d1183
3 changed files with 31 additions and 44 deletions

View File

@ -1,39 +0,0 @@
From 47f1040132c45578d14ba7a7dc40f82cb0a53185 Mon Sep 17 00:00:00 2001
From: Leon Marz <main@lmarz.org>
Date: Fri, 26 Nov 2021 14:24:39 +0100
Subject: [PATCH] cmake fixes
---
src/build/CMakeLists.txt | 2 +-
src/ptex/CMakeLists.txt | 3 ++-
2 files changed, 3 insertions(+), 2 deletions(-)
diff --git a/src/build/CMakeLists.txt b/src/build/CMakeLists.txt
index e061de6..cae7874 100644
--- a/src/build/CMakeLists.txt
+++ b/src/build/CMakeLists.txt
@@ -1,6 +1,6 @@
include(CMakePackageConfigHelpers)
-set(CMAKE_DIR "share/cmake/Ptex")
+set(CMAKE_DIR "lib/cmake/Ptex")
write_basic_package_version_file("ptex-config-version.cmake"
VERSION "${PTEX_MAJOR_VERSION}.${PTEX_MINOR_VERSION}"
diff --git a/src/ptex/CMakeLists.txt b/src/ptex/CMakeLists.txt
index e2e1bfd..04a8be7 100644
--- a/src/ptex/CMakeLists.txt
+++ b/src/ptex/CMakeLists.txt
@@ -31,7 +31,8 @@ if(PTEX_BUILD_SHARED_LIBS)
add_library(Ptex_dynamic SHARED ${SRCS})
set_target_properties(Ptex_dynamic PROPERTIES
OUTPUT_NAME Ptex
- SOVERSION "${PTEX_MAJOR_VERSION}.${PTEX_MINOR_VERSION}")
+ VERSION "${PTEX_MAJOR_VERSION}.${PTEX_MINOR_VERSION}"
+ SOVERSION "${PTEX_MAJOR_VERSION}")
target_include_directories(Ptex_dynamic
PUBLIC
$<INSTALL_INTERFACE:${CMAKE_INSTALL_INCLUDEDIR}>
--
2.34.1

View File

@ -0,0 +1,26 @@
From 0e33d9a4309a6c17e2dd1c8345376c3c1a5c61bb Mon Sep 17 00:00:00 2001
From: Leon Marz <main@lmarz.org>
Date: Sat, 6 Jul 2024 12:27:17 +0200
Subject: [PATCH] fix soversion
---
src/ptex/CMakeLists.txt | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/src/ptex/CMakeLists.txt b/src/ptex/CMakeLists.txt
index 4dfe372..69e203c 100644
--- a/src/ptex/CMakeLists.txt
+++ b/src/ptex/CMakeLists.txt
@@ -31,7 +31,8 @@ if(PTEX_BUILD_SHARED_LIBS)
add_library(Ptex_dynamic SHARED ${SRCS})
set_target_properties(Ptex_dynamic PROPERTIES
OUTPUT_NAME Ptex
- SOVERSION "${PTEX_MAJOR_VERSION}.${PTEX_MINOR_VERSION}")
+ VERSION "${PTEX_MAJOR_VERSION}.${PTEX_MINOR_VERSION}"
+ SOVERSION "${PTEX_MAJOR_VERSION}")
target_include_directories(Ptex_dynamic
PUBLIC
$<INSTALL_INTERFACE:${CMAKE_INSTALL_INCLUDEDIR}>
--
2.45.2

View File

@ -1,8 +1,8 @@
# Contributor: Leon Marz <main@lmarz.org>
# Maintainer: Leon Marz <main@lmarz.org>
pkgname=ptex
pkgver=2.4.2
pkgrel=1
pkgver=2.4.3
pkgrel=0
pkgdesc="texture mapping system by Walt Disney Animation Studios"
url="https://ptex.us/"
arch="all !s390x" # ptex doesn't like big endian
@ -10,7 +10,7 @@ license="BSD-3-Clause"
makedepends="cmake doxygen graphviz samurai zlib-dev"
subpackages="$pkgname-static $pkgname-dev $pkgname-doc $pkgname-tools:tools"
source="$pkgname-$pkgver.tar.gz::https://github.com/wdas/ptex/archive/v$pkgver.tar.gz
0001-cmake-fixes.patch
0001-fix-soversion.patch
"
build() {
@ -39,6 +39,6 @@ tools() {
}
sha512sums="
3b9607b7803e7c857bb00a6d4d8bbe108810c622a3593fb5d655183f3e6689f274ee5e79bcaab6928de38daf05cf25eb56125f39477f134131a8ad45071551b3 ptex-2.4.2.tar.gz
0c3f288b882f4090b071c90ca6603bd8c63fe37a5ffefb6ea64adb4b17eb44a7ad8be7c8c44ae90c81b2740e0dd7d2c005a5973931680afcd59ae48821e3f7bf 0001-cmake-fixes.patch
34fcaf1c4fe27cb4e66d66bb729137ef17ffeea2bc2d849f2f5f543b19acc250f425633142320ce797c2a086e04bc3e0870c94928ad45d94e34faee71af36890 ptex-2.4.3.tar.gz
5c82637192986e3dace72e70f8aa539aacc29da5c4c29359616140070b77af2eaa906bad93a793e60baecdb1bd135ca76984451240c071ce2f9133ecc0495a03 0001-fix-soversion.patch
"