pkgsrc-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[pkgsrc/trunk]: pkgsrc/audio/openal-soft openal-soft: fix some fallout



details:   https://anonhg.NetBSD.org/pkgsrc/rev/a8b05ffd6b38
branches:  trunk
changeset: 378556:a8b05ffd6b38
user:      tnn <tnn%pkgsrc.org@localhost>
date:      Wed May 04 16:31:30 2022 +0000

description:
openal-soft: fix some fallout

- remove -Wall (-Winline max-inline-insns-single fails)
- set -DALSOFT_UTILS=ON explictly
- disable libsndfile check with a patch
  If CMake finds libsndfile it tries (and fails) to build some examples
  which do not get installed anyway.

diffstat:

 audio/openal-soft/Makefile                     |   5 +++-
 audio/openal-soft/distinfo                     |   4 +-
 audio/openal-soft/patches/patch-CMakeLists.txt |  33 +++++++++++++++++++++++--
 3 files changed, 36 insertions(+), 6 deletions(-)

diffs (88 lines):

diff -r 824f4b762842 -r a8b05ffd6b38 audio/openal-soft/Makefile
--- a/audio/openal-soft/Makefile        Wed May 04 16:29:53 2022 +0000
+++ b/audio/openal-soft/Makefile        Wed May 04 16:31:30 2022 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.24 2022/05/04 06:53:06 wiz Exp $
+# $NetBSD: Makefile,v 1.25 2022/05/04 16:31:30 tnn Exp $
 
 DISTNAME=      openal-soft-1.22.0
 CATEGORIES=    audio
@@ -21,12 +21,15 @@
 PKG_SYSCONFSUBDIR=     openal
 
 CMAKE_ARGS+=   -DALSOFT_EXAMPLES=OFF
+CMAKE_ARGS+=   -DALSOFT_UTILS=ON
 CMAKE_ARGS+=   -DALSOFT_NO_CONFIG_UTIL=ON
 
 CFLAGS+=       -DSYS_CONF_DIR="\"${PKG_SYSCONFDIR}\""
 CFLAGS.NetBSD+=        -D_NETBSD_SOURCE
 CFLAGS.SunOS+= -D__EXTENSIONS__
 
+BUILDLINK_TRANSFORM+=  rm:-Wall
+
 CONF_FILES+=   ${PREFIX}/share/openal/alsoftrc.sample ${PKG_SYSCONFDIR}/alsoft.conf
 
 .include "../../mk/bsd.prefs.mk"
diff -r 824f4b762842 -r a8b05ffd6b38 audio/openal-soft/distinfo
--- a/audio/openal-soft/distinfo        Wed May 04 16:29:53 2022 +0000
+++ b/audio/openal-soft/distinfo        Wed May 04 16:31:30 2022 +0000
@@ -1,9 +1,9 @@
-$NetBSD: distinfo,v 1.12 2022/05/04 06:53:06 wiz Exp $
+$NetBSD: distinfo,v 1.13 2022/05/04 16:31:30 tnn Exp $
 
 BLAKE2s (openal-soft-1.22.0.tar.bz2) = 3c0deba1498ec857a3f0bbca856723796caf356db40af4ea55a9cbd72b81a727
 SHA512 (openal-soft-1.22.0.tar.bz2) = 1e3df371d126e19e369dd01e3c5e95d6a32b664adf54ee37836d51ca7bc829f275d945388d8a40a3ac92c1151380bd68bbab4f8a08f59ea67dd1bd9b9a1d0cbd
 Size (openal-soft-1.22.0.tar.bz2) = 606420 bytes
-SHA1 (patch-CMakeLists.txt) = 5469748347d548838b8e4650e1ecbabacae1f30a
+SHA1 (patch-CMakeLists.txt) = 62bbd974a85717112d026e3fc71806c56ae9ca23
 SHA1 (patch-alc_alconfig.cpp) = 0539016dadf1827e5a86700c2db5a96479a8b70d
 SHA1 (patch-alc_backends_alsa.cpp) = 3ee7f86e544d9b33ccbe9422eb87b9540623053a
 SHA1 (patch-alc_backends_solaris.cpp) = 62e7a5bddb5c4ed7f7e4c4889b2234dd778be960
diff -r 824f4b762842 -r a8b05ffd6b38 audio/openal-soft/patches/patch-CMakeLists.txt
--- a/audio/openal-soft/patches/patch-CMakeLists.txt    Wed May 04 16:29:53 2022 +0000
+++ b/audio/openal-soft/patches/patch-CMakeLists.txt    Wed May 04 16:31:30 2022 +0000
@@ -1,10 +1,19 @@
-$NetBSD: patch-CMakeLists.txt,v 1.3 2021/03/21 20:05:17 adam Exp $
+$NetBSD: patch-CMakeLists.txt,v 1.4 2022/05/04 16:31:30 tnn Exp $
 
 Fix building.
 
---- CMakeLists.txt.orig        2021-03-21 19:49:33.000000000 +0000
+--- CMakeLists.txt.orig        2022-04-23 01:46:14.000000000 +0000
 +++ CMakeLists.txt
-@@ -1136,9 +1136,9 @@ if(ALSOFT_EMBED_HRTF_DATA)
+@@ -60,7 +60,7 @@ if(NOT CMAKE_DEBUG_POSTFIX)
+         FORCE)
+ endif()
+ 
+-set(CMAKE_MODULE_PATH "${OpenAL_SOURCE_DIR}/cmake")
++set (CMAKE_MODULE_PATH "/tmp/pkgsrc-obj/audio/openal-soft/work/.buildlink/cmake-Modules" "${OpenAL_SOURCE_DIR}/cmake")
+ 
+ include(CheckFunctionExists)
+ include(CheckLibraryExists)
+@@ -1206,9 +1206,9 @@ if(ALSOFT_EMBED_HRTF_DATA)
  
          add_custom_command(OUTPUT "${outfile}"
              COMMAND ${CMAKE_COMMAND} -D "INPUT_FILE=${infile}" -D "OUTPUT_FILE=${outfile}"
@@ -16,3 +25,21 @@
              VERBATIM
          )
          set(ALC_OBJS  ${ALC_OBJS} "${outfile}")
+@@ -1522,7 +1522,7 @@ if(ALSOFT_UTILS)
+         set(EXTRA_INSTALLS ${EXTRA_INSTALLS} openal-info)
+     endif()
+ 
+-    if(SNDFILE_FOUND)
++    if(SNDFILE_FOUND AND False)
+         add_executable(uhjdecoder utils/uhjdecoder.cpp)
+         target_compile_definitions(uhjdecoder PRIVATE ${CPP_DEFS})
+         target_include_directories(uhjdecoder
+@@ -1608,7 +1608,7 @@ if(ALSOFT_EXAMPLES)
+ 
+     message(STATUS "Building example programs")
+ 
+-    if(SNDFILE_FOUND)
++    if(SNDFILE_FOUND AND False)
+         add_executable(alplay examples/alplay.c)
+         target_link_libraries(alplay PRIVATE ${LINKER_FLAGS} SndFile::SndFile ex-common
+             ${UNICODE_FLAG})



Home | Main Index | Thread Index | Old Index