mirror of
https://git.freebsd.org/ports.git
synced 2025-04-28 01:26:39 -04:00
audio/faudio: Update to 25.03
Set default flavor. [1] Make default flavor sdl3 since this is now
the preferred SDL version by upstream starting with this release.
Convert tests to cmake:testing. Note: tests only build for the sdl3
flavor as upstream dropped sdl2 support in the utils required to
run the tests.
Add flavor specifier to games/vvvvvv. [1]
https://github.com/FNA-XNA/FAudio/releases/tag/25.03
Reported by: pkg-fallout [1]
Fixes: 264d97ece0
audio/faudio: add SDL3 flavor (default since 25.03) [1]
This commit is contained in:
parent
d909ad3ed3
commit
1c742619cf
3 changed files with 21 additions and 16 deletions
|
@ -1,5 +1,5 @@
|
||||||
PORTNAME= FAudio
|
PORTNAME= FAudio
|
||||||
DISTVERSION= 25.02
|
DISTVERSION= 25.03
|
||||||
CATEGORIES= audio
|
CATEGORIES= audio
|
||||||
|
|
||||||
MAINTAINER= multimedia@FreeBSD.org
|
MAINTAINER= multimedia@FreeBSD.org
|
||||||
|
@ -9,26 +9,31 @@ WWW= https://fna-xna.github.io/
|
||||||
LICENSE= ZLIB
|
LICENSE= ZLIB
|
||||||
LICENSE_FILE= ${WRKSRC}/LICENSE
|
LICENSE_FILE= ${WRKSRC}/LICENSE
|
||||||
|
|
||||||
FLAVORS= sdl2 sdl3
|
FLAVORS= sdl3 sdl2
|
||||||
|
FLAVOR?= ${FLAVORS:[1]}
|
||||||
sdl2_CONFLICTS_INSTALL= ${PORTNAME}-sdl3
|
sdl2_CONFLICTS_INSTALL= ${PORTNAME}-sdl3
|
||||||
sdl3_PKGNAMESUFFIX= -sdl3
|
sdl3_PKGNAMESUFFIX= -sdl3
|
||||||
sdl3_CONFLICTS_INSTALL= ${PORTNAME}
|
sdl3_CONFLICTS_INSTALL= ${PORTNAME}
|
||||||
|
|
||||||
USES= cmake compiler:c11 sdl
|
USES= cmake:testing compiler:c11 sdl
|
||||||
USE_SDL= ${FLAVOR}
|
|
||||||
USE_LDCONFIG= yes
|
USE_LDCONFIG= yes
|
||||||
CMAKE_${"${FLAVOR:Msdl3}":?ON:OFF}= BUILD_SDL3
|
USE_SDL= ${FLAVOR}
|
||||||
|
|
||||||
USE_GITHUB= yes
|
USE_GITHUB= yes
|
||||||
GH_ACCOUNT= FNA-XNA
|
GH_ACCOUNT= FNA-XNA
|
||||||
|
|
||||||
|
CMAKE_${"${FLAVOR:Msdl3}":?ON:OFF}= BUILD_SDL3
|
||||||
|
# Tests will fail to build with the sdl2 flavor. Upstream dropped sdl2
|
||||||
|
# support in the utils needed for the tests starting with version 25.03.
|
||||||
|
CMAKE_TESTING_ON= BUILD_TESTS \
|
||||||
|
BUILD_UTILS
|
||||||
|
CMAKE_TESTING_TARGET= # No internal target for running tests. Run via post-test.
|
||||||
|
|
||||||
|
TEST_ENV= SDL_AUDIODRIVER=dummy
|
||||||
|
|
||||||
PLIST_SUB= SOVERSION=${DISTVERSION:S,., ,g:[1..2]:ts.}
|
PLIST_SUB= SOVERSION=${DISTVERSION:S,., ,g:[1..2]:ts.}
|
||||||
|
|
||||||
do-test:
|
post-test:
|
||||||
@cd ${BUILD_WRKSRC} && \
|
@${SETENVI} ${WRK_ENV} ${TEST_ENV} ${BUILD_WRKSRC}/faudio_tests
|
||||||
${SETENVI} ${WRK_ENV} ${CONFIGURE_ENV} ${CMAKE_BIN} ${CMAKE_ARGS} \
|
|
||||||
-DBUILD_TESTS=ON -DBUILD_UTILS=ON ${CMAKE_SOURCE_PATH} && \
|
|
||||||
${DO_MAKE_BUILD} ${ALL_TARGET}
|
|
||||||
@${SETENVI} SDL_AUDIODRIVER=dummy ${BUILD_WRKSRC}/faudio_tests
|
|
||||||
|
|
||||||
.include <bsd.port.mk>
|
.include <bsd.port.mk>
|
||||||
|
|
|
@ -1,3 +1,3 @@
|
||||||
TIMESTAMP = 1739453142
|
TIMESTAMP = 1742524268
|
||||||
SHA256 (FNA-XNA-FAudio-25.02_GH0.tar.gz) = eab667d231e5036b0e5c3c6f89fb4ea792284493d46161bc056a88a6dadc2683
|
SHA256 (FNA-XNA-FAudio-25.03_GH0.tar.gz) = 1eeb1d2d6ed038a68e6b0a02614d4c7f859aa0a22c4a64e0bd49c26573823ae8
|
||||||
SIZE (FNA-XNA-FAudio-25.02_GH0.tar.gz) = 1127116
|
SIZE (FNA-XNA-FAudio-25.03_GH0.tar.gz) = 1126597
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
PORTNAME= VVVVVV
|
PORTNAME= VVVVVV
|
||||||
DISTVERSION= 2.4.2
|
DISTVERSION= 2.4.2
|
||||||
PORTREVISION= 1
|
PORTREVISION= 2
|
||||||
CATEGORIES= games
|
CATEGORIES= games
|
||||||
.if ${FLAVOR:U} == makeandplay
|
.if ${FLAVOR:U} == makeandplay
|
||||||
# The data file may only be distributed if the MAKEANDPLAY define is set.
|
# The data file may only be distributed if the MAKEANDPLAY define is set.
|
||||||
|
@ -29,7 +29,7 @@ IGNORE= license requires that the license be shipped
|
||||||
.endif
|
.endif
|
||||||
|
|
||||||
BUILD_DEPENDS= ${LOCALBASE}/include/stb/stb_vorbis.c:devel/stb
|
BUILD_DEPENDS= ${LOCALBASE}/include/stb/stb_vorbis.c:devel/stb
|
||||||
LIB_DEPENDS= libFAudio.so:audio/faudio \
|
LIB_DEPENDS= libFAudio.so:audio/faudio@sdl2 \
|
||||||
libtinyxml2.so:textproc/tinyxml2 \
|
libtinyxml2.so:textproc/tinyxml2 \
|
||||||
libphysfs.so:devel/physfs
|
libphysfs.so:devel/physfs
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue