Skip to content

Commit

Permalink
[libmikmod] Fix finding OpenAL
Browse files Browse the repository at this point in the history
  • Loading branch information
dpogue committed Nov 26, 2024
1 parent 181b90e commit 8dae3e4
Show file tree
Hide file tree
Showing 5 changed files with 33 additions and 2 deletions.
25 changes: 25 additions & 0 deletions ports/libmikmod/find-openal.patch
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
From 505d9ebf6ad31d4f28ca0fbab6cf299a88d08036 Mon Sep 17 00:00:00 2001
From: dpogue <darryl@dpogue.ca>
Date: Sun, 24 Nov 2024 22:37:46 -0800
Subject: [PATCH] Use find_package for OpenAL

---
CMakeLists.txt | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/CMakeLists.txt b/CMakeLists.txt
index 53a174e..0be2166 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -799,7 +799,7 @@ ELSE()
ENDIF(ENABLE_SDL)

IF (ENABLE_OPENAL)
- include(FindOpenAL)
+ find_package(OpenAL CONFIG)
IF (OPENAL_FOUND)
SET (DRV_OPENAL 1)
CHECK_MULTI_INCLUDE_FILES("AL/al.h" "AL/alc.h")
--
2.45.2.windows.1

1 change: 1 addition & 0 deletions ports/libmikmod/portfile.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ vcpkg_from_sourceforge(
PATCHES
fix-missing-dll.patch
name_conflict.patch
find-openal.patch
)

if(VCPKG_LIBRARY_LINKAGE STREQUAL static)
Expand Down
2 changes: 1 addition & 1 deletion ports/libmikmod/vcpkg.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "libmikmod",
"version": "3.3.11.1",
"port-version": 12,
"port-version": 13,
"description": "Mikmod is a module player and library supporting many formats, including mod, s3m, it, and xm.",
"homepage": "https://sourceforge.net/projects/mikmod/",
"license": "LGPL-2.1-or-later",
Expand Down
2 changes: 1 addition & 1 deletion versions/baseline.json
Original file line number Diff line number Diff line change
Expand Up @@ -4818,7 +4818,7 @@
},
"libmikmod": {
"baseline": "3.3.11.1",
"port-version": 12
"port-version": 13
},
"libmodbus": {
"baseline": "3.1.10",
Expand Down
5 changes: 5 additions & 0 deletions versions/l-/libmikmod.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,10 @@
{
"versions": [
{
"git-tree": "08cebfdc8c42b806efd724c21ce95a95b615b232",
"version": "3.3.11.1",
"port-version": 13
},
{
"git-tree": "f76309c386e04e04888bb094d32b960d0c3cdc39",
"version": "3.3.11.1",
Expand Down

0 comments on commit 8dae3e4

Please sign in to comment.