PORTNAME= audacious PORTVERSION= 4.2 CATEGORIES= multimedia audio MASTER_SITES= https://distfiles.audacious-media-player.org/ MAINTAINER= madpilot@FreeBSD.org COMMENT= Lightweight and versatile audio player WWW= https://audacious-media-player.org/ LICENSE= BSD2CLAUSE BSD3CLAUSE LICENSE_COMB= multi LICENSE_FILE= ${WRKSRC}/COPYING LIB_DEPENDS= libfreetype.so:print/freetype2 \ libfontconfig.so:x11-fonts/fontconfig FLAVORS= qt5 gtk2 FLAVOR?= ${FLAVORS:[1]} USES= compiler:c++11-lib desktop-file-utils gettext-tools gmake \ gnome iconv localbase pkgconfig tar:bzip2 xorg USE_GNOME= glib20 USE_XORG= x11 sm USE_LDCONFIG= yes qt5_CONFLICTS_INSTALL= audacious-gtk2 gtk2_LIB_DEPENDS+= libharfbuzz.so:print/harfbuzz gtk2_PKGNAMESUFFIX= -gtk2 gtk2_CONFLICTS_INSTALL= audacious GNU_CONFIGURE= yes SUB_FILES= pkg-message CONFIGURE_ARGS= --with-pkgconfigdir=${PREFIX}/libdata/pkgconfig \ --without-buildstamp .if ${FLAVOR} == qt5 CONFIGURE_ARGS+= --enable-qt --disable-gtk USES+= qt:5 USE_QT= buildtools:build core gui widgets PLIST_SUB= QT5="" GTK2="@comment " .elif ${FLAVOR} == gtk2 CONFIGURE_ARGS+= --disable-qt --enable-gtk USE_GNOME+= cairo gdkpixbuf2 gtk20 PLIST_SUB= QT5="@comment " GTK2="" .endif OPTIONS_DEFINE= NLS EXECINFO OPTIONS_DEFAULT=EXECINFO OPTIONS_SUB= yes EXECINFO_DESC= Build with libexecinfo support NLS_USES= gettext-runtime NLS_CONFIGURE_ENABLE= nls post-patch-NLS-off: ${REINPLACE_CMD} -e 's,po,,' ${WRKSRC}/Makefile post-patch-EXECINFO-on: @${REINPLACE_CMD} 's|-lm |-lm -lexecinfo |' \ ${WRKSRC}/src/audacious/Makefile @${REINPLACE_CMD} 's|-laudcore|-laudcore -lexecinfo|' \ ${WRKSRC}/audacious.pc.in post-install: @${STRIP_CMD} ${STAGEDIR}${PREFIX}/bin/aud* @${STRIP_CMD} ${STAGEDIR}${PREFIX}/lib/lib* .include