freebsd-ports/audio/fluida-lv2/Makefile
Muhammad Moinur Rahman 54faeb599e audio/fluida-lv2: Fix build with llvm16
Approved by:	portmgr (blanket)
Sponsored by:	The FreeBSD Foundation
2023-08-06 23:53:04 +02:00

43 lines
1.3 KiB
Makefile

PORTNAME= fluida
DISTVERSIONPREFIX= v
DISTVERSION= 0.8
PORTREVISION= 1
CATEGORIES= audio
PKGNAMESUFFIX= -lv2
MASTER_SITES= https://github.com/brummer10/Fluida.lv2/releases/download/v${DISTVERSION}/
DIST_SUBDIR= ${PORTNAME}
DISTNAME= Fluida_${DISTVERSION}
MAINTAINER= yuri@FreeBSD.org
COMMENT= Fluidsynth as LV2 plugin
WWW= https://github.com/brummer10/Fluida.lv2
LICENSE= GPLv2
LICENSE_FILE= ${WRKSRC}/LICENSE
BUILD_DEPENDS= lv2>0:audio/lv2 \
xxd:editors/vim
LIB_DEPENDS= libfluidsynth.so:audio/fluidsynth
USES= compiler:c++11-lang gettext-runtime gmake gnome localbase pkgconfig xorg
USE_GNOME= cairo
USE_XORG= x11
USE_BINUTILS= yes # linking needs some GNU features, fails on 12 without this, see https://github.com/brummer10/GxPlugins.lv2/issues/9
ALL_TARGET=
PLIST_FILES= lib/lv2/Fluida.lv2/Fluida.so \
lib/lv2/Fluida.lv2/Fluida.ttl \
lib/lv2/Fluida.lv2/Fluida_ui.so \
lib/lv2/Fluida.lv2/manifest.ttl
.include <bsd.port.options.mk>
.if ${OPSYS} == FreeBSD && ( ${OSVERSION} >= 1400091 || ( ${OSVERSION} >= 1302507 && ${OSVERSION} < 1400000 ))
CFLAGS+= -Wno-error=incompatible-function-pointer-types
.endif
post-patch: # /proc/cpuinfo is used to check SIMD support in CPU
@${REINPLACE_CMD} -e 's|/proc/cpuinfo|/dev/null|' ${WRKSRC}/Fluida/Makefile
.include <bsd.port.mk>