mirror of
https://git.FreeBSD.org/ports.git
synced 2024-12-26 05:02:18 +00:00
fix compilation when OSS4 is selected
Submitted by: Buganini <buganini@gmail.com>
This commit is contained in:
parent
788ee72293
commit
e6a20cc4d8
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=264507
@ -236,8 +236,6 @@ CONFIGURE_ARGS+=--disable-jack
|
||||
PLIST_SUB+= JACKPLUGIN="@comment "
|
||||
.endif
|
||||
|
||||
#OSS4 only works with recent changed in HEAD
|
||||
.if ${OSVERSION} >= 900000
|
||||
.if !defined(WITHOUT_OSS)
|
||||
PLIST_SUB+= OSSPLUGIN=""
|
||||
CONFIGURE_ARGS+=--enable-oss
|
||||
@ -247,23 +245,13 @@ CONFIGURE_ARGS+=--disable-oss
|
||||
.endif
|
||||
|
||||
.if !defined(WITHOUT_OSS4)
|
||||
BUILD_DEPENDS+= ${LOCALBASE}/lib/oss/include/sys/soundcard.h:${PORTSDIR}/audio/oss
|
||||
PLIST_SUB+= OSS4PLUGIN=""
|
||||
CONFIGURE_ARGS+=--enable-oss4
|
||||
.else
|
||||
PLIST_SUB+= OSS4PLUGIN="@comment "
|
||||
CONFIGURE_ARGS+=--disable-oss4
|
||||
.endif
|
||||
.else
|
||||
PLIST_SUB+= OSS4PLUGIN="@comment "
|
||||
CONFIGURE_ARGS+=--disable-oss4
|
||||
.if defined(WITH_OSS) || defined(WITH_OSS4)
|
||||
PLIST_SUB+= OSSPLUGIN=""
|
||||
CONFIGURE_ARGS+=--enable-oss
|
||||
.else
|
||||
PLIST_SUB+= OSSPLUGIN="@comment "
|
||||
CONFIGURE_ARGS+=--disable-oss
|
||||
.endif
|
||||
.endif
|
||||
|
||||
.if defined(WITH_SID)
|
||||
LIB_DEPENDS+= sidplay.1:${PORTSDIR}/audio/libsidplay
|
||||
@ -373,6 +361,8 @@ post-patch:
|
||||
${WRKSRC}/src/usf/memory.c
|
||||
@${REINPLACE_CMD} -e 's|-ldl||g' \
|
||||
${WRKSRC}/src/ladspa/Makefile
|
||||
@${REINPLACE_CMD} -e 's|/usr/lib/|${LOCALBASE}/lib/|g' \
|
||||
${WRKSRC}/src/oss4/Makefile
|
||||
|
||||
pre-configure:
|
||||
.if defined(WITH_AUDIOCD) && !exists(${LOCALBASE}/lib/libcdio_cdda.so)
|
||||
|
@ -44,7 +44,7 @@ lib/audacious/Input/vtx.so
|
||||
%%WAVPACKPLUGIN%%lib/audacious/Input/wavpack.so
|
||||
lib/audacious/Input/xsf.so
|
||||
%%OSSPLUGIN%%lib/audacious/Output/OSS.so
|
||||
%%OSS4PLUGIN%%lib/audacious/Output/OSS4.so
|
||||
%%OSS4PLUGIN%%lib/audacious/Output/oss4.so
|
||||
%%ESDPLUGIN%%lib/audacious/Output/ESD.so
|
||||
lib/audacious/Output/filewriter.so
|
||||
%%JACKPLUGIN%%lib/audacious/Output/jackout.so
|
||||
|
Loading…
Reference in New Issue
Block a user