Skip to content

Commit

Permalink
audio/dssi: Fix build with llvm16
Browse files Browse the repository at this point in the history
- Pet portclippy
- Utilize OPTIONSNG
  • Loading branch information
5u623l20 committed Feb 27, 2024
1 parent 903018f commit fae74c8
Showing 1 changed file with 12 additions and 1 deletion.
13 changes: 12 additions & 1 deletion audio/dssi/Makefile
Expand Up @@ -21,9 +21,10 @@ RUN_DEPENDS= ${LOCALBASE}/include/ladspa.h:audio/ladspa \
${LOCALBASE}/include/alsa/seq_event.h:audio/alsa-lib

USES= gmake pathfix pkgconfig localbase libtool xorg
USE_XORG= x11

GNU_CONFIGURE= yes
GNU_CONFIGURE_MANPREFIX=${PREFIX}/share
USE_XORG= x11

PORTDOCS= ChangeLog README

Expand All @@ -36,6 +37,12 @@ EXAMPLES_FILES2=LTS_qt trivial_sampler_qt
OPTIONS_DEFINE= DOCS EXAMPLES
OPTIONS_SUB= yes

.include <bsd.port.options.mk>

.if ${OPSYS} == FreeBSD && ( ${OSVERSION} >= 1400091 || ( ${OSVERSION} >= 1302507 && ${OSVERSION} < 1400000 ))
CFLAGS+= -Wno-error=incompatible-function-pointer-types
.endif

post-patch:
@${REINPLACE_CMD} -e \
'/^lts_uidir/s|^|@HAVE_QT_TRUE@|; \
Expand All @@ -52,8 +59,12 @@ post-install:
.for l in trivial_synth less_trivial_synth trivial_sampler karplong
${STRIP_CMD} ${STAGEDIR}${PREFIX}/lib/dssi/${l}.so
.endfor

post-install-DOCS-on:
@${MKDIR} ${STAGEDIR}${DOCSDIR}
${INSTALL_DATA} ${PORTDOCS:S|^|${WRKSRC}/|} ${STAGEDIR}${DOCSDIR}

post-install-EXAMPLES-on:
@${MKDIR} ${STAGEDIR}${EXAMPLESDIR}
${INSTALL_PROGRAM} ${EXAMPLES_FILES1:S|^|${EXAMPLESSRCDIR}/|} \
${STAGEDIR}${EXAMPLESDIR}
Expand Down

0 comments on commit fae74c8

Please sign in to comment.