audio/openal-soft: unbreak after 145ca54873
Unbreak build by moving bsd.port.pre.mk include to just before
post-patch, and using bsd.port.post.mk at the end.
PR: 268495
Reported by: fluffy
Fixes: 145ca54873
MFH: 2022Q4
This commit is contained in:
parent
771af3669d
commit
85d704c5f2
1 changed files with 11 additions and 11 deletions
|
@ -23,16 +23,6 @@ CMAKE_ON= ALSOFT_BACKEND_WAVE
|
|||
LDFLAGS+= -Wl,--as-needed
|
||||
LDFLAGS_i386= -Wl,-z,notext
|
||||
|
||||
.include <bsd.port.pre.mk>
|
||||
|
||||
# The following is actually meant for lld 15.0 and later, but the ports
|
||||
# framework does not support LINKER_TYPE and LINKER_VERSION yet.
|
||||
.if ${COMPILER_TYPE} == "clang" && ${COMPILER_VERSION} >= 150
|
||||
# Turn off checking of dynamic relocations, to avoid lld diagnostics about
|
||||
# possibly incorrect addend values.
|
||||
LDFLAGS_i386+= -Wl,--no-check-dynamic-relocations
|
||||
.endif
|
||||
|
||||
PLIST_SUB= SOVERSION=${PORTVERSION}
|
||||
|
||||
OPTIONS_DEFINE= CONFIG EXAMPLES JACK OSS PORTAUDIO PULSEAUDIO \
|
||||
|
@ -69,6 +59,16 @@ SNDIO_CMAKE_BOOL= ALSOFT_BACKEND_SNDIO ALSOFT_REQUIRE_SNDIO
|
|||
UTILS_LIB_DEPENDS= libmysofa.so:audio/libmysofa
|
||||
UTILS_CMAKE_BOOL= ALSOFT_UTILS
|
||||
|
||||
.include <bsd.port.pre.mk>
|
||||
|
||||
# The following is actually meant for lld 15.0 and later, but the ports
|
||||
# framework does not support LINKER_TYPE and LINKER_VERSION yet.
|
||||
.if ${COMPILER_TYPE} == "clang" && ${COMPILER_VERSION} >= 150
|
||||
# Turn off checking of dynamic relocations, to avoid lld diagnostics about
|
||||
# possibly incorrect addend values.
|
||||
LDFLAGS_i386+= -Wl,--no-check-dynamic-relocations
|
||||
.endif
|
||||
|
||||
post-patch:
|
||||
@${REINPLACE_CMD} 's|/etc/openal|${ETCDIR}|' \
|
||||
${WRKSRC}/alc/alconfig.cpp
|
||||
|
@ -77,4 +77,4 @@ post-install-EXAMPLES-on:
|
|||
(cd ${WRKSRC}/examples && ${COPYTREE_SHARE} . \
|
||||
${STAGEDIR}${EXAMPLESDIR})
|
||||
|
||||
.include <bsd.port.mk>
|
||||
.include <bsd.port.post.mk>
|
||||
|
|
Loading…
Reference in a new issue