# $FreeBSD: head/multimedia/banshee/Makefile 412348 2016-04-01 14:17:44Z mat $ PORTNAME= banshee PORTVERSION= 2.6.2 PORTREVISION= 3 PORTEPOCH= 1 CATEGORIES= multimedia audio MASTER_SITES= GNOME MAINTAINER= mono@FreeBSD.org COMMENT= Music management and playback for gnome # Could do without bash, but it's brought in by gnome anyway. BUILD_DEPENDS= p5-XML-Parser>=0:textproc/p5-XML-Parser \ bash:shells/bash RUN_DEPENDS= bash:shells/bash LIB_PC_DEPENDS= ${LOCALBASE}/libdata/pkgconfig/dbus-sharp-glib-1.0.pc:devel/dbus-sharp-glib \ ${LOCALBASE}/libdata/pkgconfig/taglib-sharp.pc:audio/taglib-sharp \ ${LOCALBASE}/libdata/pkgconfig/mono-zeroconf.pc:net/mono-zeroconf \ ${LOCALBASE}/libdata/pkgconfig/mono-addins.pc:devel/mono-addins \ ${LOCALBASE}/libdata/pkgconfig/notify-sharp.pc:devel/notify-sharp # For now, remove APPLEDEV since it is broken OPTIONS_DEFINE= DOCS BPMDETECT GIO MTP WEBKIT YOUTUBE APPLEDEV_DESC= Apple device BPMDETECT_DESC= Force dependency on soundtouch (required for BPM detection) GIO_DESC= Use GIO for disk access WEBKIT_DESC= Build and/or install extensions using Webkit YOUTUBE_DESC= Build and/or install the Youtube extension OPTIONS_DEFAULT=BPMDETECT GIO MTP WEBKIT YOUTUBE USES= desktop-file-utils gmake libtool mono pathfix perl5 \ pkgconfig shared-mime-info sqlite tar:xz USE_PERL5= build GNU_CONFIGURE= yes USE_GNOME= gnomedocutils gnomesharp20 gtksharp20 intltool USE_GSTREAMER= cdparanoia USE_LDCONFIG= ${PREFIX}/lib/${PORTNAME:C/-.*//} USE_XORG= xrandr xxf86vm INSTALLS_ICONS= yes INSTALL_TARGET= install-strip CONFIGURE_TARGET= --build=${ARCH}-portbld-freebsd${OSREL} CONFIGURE_ARGS= --with-vendor-build-id=FreeBSD\ BSD\#\ Project --disable-gio-hardware --disable-boo CONFIGURE_ENV= ac_cv_path_MCS=${LOCALBASE}/bin/mcs CPPFLAGS+= -I${LOCALBASE}/include LIBS+= -L${LOCALBASE}/lib .include .if ${PORT_OPTIONS:MNLS} USES+= gettext PLIST_SUB+= NLS="" .else CONFIGURE_ARGS+=--disable-nls PLIST_SUB+= NLS="@comment " .endif # Need absolute path for build/icon-install-theme. INSTALL= /usr/bin/install .if ${PORT_OPTIONS:MGIO} CONFIGURE_ARGS+=--enable-gio LIB_PC_DEPENDS+=${LOCALBASE}/libdata/pkgconfig/gtk-sharp-beans-2.0.pc:x11-toolkits/gtk-sharp-beans PLIST_SUB+= OPT_GIO="" .else CONFIGURE_ARGS+=--disable-gio PLIST_SUB+= OPT_GIO="@comment " .endif .if ${PORT_OPTIONS:MDOCS} CONFIGURE_ARGS+=--enable-docs PLIST_SUB+= OPT_DOCS="" .else CONFIGURE_ARGS+=--disable-docs PLIST_SUB+= OPT_DOCS="@comment " .endif .if ${PORT_OPTIONS:MBPMDETECT} USE_GSTREAMER+= soundtouch .endif .if ${PORT_OPTIONS:MAPPLEDEV} CONFIGURE_ARGS+=--enable-appledevice LIB_PC_DEPENDS+=${LOCALBASE}/libdata/pkgconfig/libgpodsharp.pc:audio/libgpod BROKEN= Missing dependency PLIST_SUB+= APPLEDEV="" .else CONFIGURE_ARGS+=--disable-appledevice PLIST_SUB+= APPLEDEV="@comment " .endif .if ${PORT_OPTIONS:MMTP} CONFIGURE_ARGS+=--enable-mtp LIB_PC_DEPENDS+=${LOCALBASE}/libdata/pkgconfig/libmtp.pc:multimedia/libmtp PLIST_SUB+= OPT_MTP="" .else CONFIGURE_ARGS+=--disable-mtp PLIST_SUB+= OPT_MTP="@comment " .endif .if ${PORT_OPTIONS:MWEBKIT} CONFIGURE_ARGS+=--enable-webkit LIB_PC_DEPENDS+=${LOCALBASE}/libdata/pkgconfig/webkit-sharp-1.0.pc:www/webkit-sharp PLIST_SUB+= OPT_WEBKIT="" .else CONFIGURE_ARGS+=--disable-webkit PLIST_SUB+= OPT_WEBKIT="@comment " .endif .if ${PORT_OPTIONS:MYOUTUBE} CONFIGURE_ARGS+=--enable-youtube LIB_PC_DEPENDS+=${LOCALBASE}/libdata/pkgconfig/gdata-sharp-youtube.pc:devel/google-gdata PLIST_SUB+= OPT_YOUTUBE="" .else CONFIGURE_ARGS+=--disable-youtube PLIST_SUB+= OPT_YOUTUBE="@comment " .endif .if ${PORT_OPTIONS:MWEBKIT} || ${PORT_OPTIONS:MYOUTUBE} PLIST_SUB+= OPT_WEBKITORYOUTUBE="" .else PLIST_SUB+= OPT_WEBKITORYOUTUBE="@comment " .endif post-patch: ${FIND} ${WRKSRC} -name 'Makefile.in' | ${XARGS} ${REINPLACE_CMD} -e 's|-r:Mono.Cairo|-r:${PREFIX}/lib/mono/gac/Mono.Cairo/4.0.0.0__0738eb9f132ed756/Mono.Cairo.dll|' .include