aboutsummaryrefslogtreecommitdiffstats
path: root/multimedia/banshee/Makefile
blob: 467ca4a8812fa8ce7678613152757fa7ac2d8e69 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
# New ports collection makefile for:    banshee
# Date created:             Jul 10 2006
# Whom:                 Florent Thoumie <flz@FreeBSD.org>
#
# $FreeBSD$
#

PORTNAME=   banshee
PORTVERSION=    1.4.1
CATEGORIES= multimedia audio
MASTER_SITES=   http://download.banshee-project.org/banshee/
DISTNAME=   ${PORTNAME}-1-${PORTVERSION}

MAINTAINER= flz@FreeBSD.org
COMMENT=    Music management and playback for gnome

# Could do without bash, but it's brought in by gnome anyway.
BUILD_DEPENDS=  ${SITE_PERL}/${PERL_ARCH}/XML/Parser.pm:${PORTSDIR}/textproc/p5-XML-Parser \
        bash:${PORTSDIR}/shells/bash
RUN_DEPENDS=    bash:${PORTSDIR}/shells/bash

LIB_PC_DEPENDS= ${LOCALBASE}/libdata/pkgconfig/mono.pc:${PORTSDIR}/lang/mono \
        ${LOCALBASE}/libdata/pkgconfig/ndesk-dbus-1.0.pc:${PORTSDIR}/devel/ndesk-dbus \
        ${LOCALBASE}/libdata/pkgconfig/ndesk-dbus-glib-1.0.pc:${PORTSDIR}/devel/ndesk-dbus-glib \
        ${LOCALBASE}/libdata/pkgconfig/taglib-sharp.pc:${PORTSDIR}/audio/taglib-sharp \
        ${LOCALBASE}/libdata/pkgconfig/mono-zeroconf.pc:${PORTSDIR}/net/mono-zeroconf \
        ${LOCALBASE}/libdata/pkgconfig/mono-addins.pc:${PORTSDIR}/devel/mono-addins

OPTIONS=    DOCS "Install documentation" on \
        MTP "Enable MTP support" on
#       IPOD "Enable iPod support" on \

USE_BZIP2=  yes
USE_GMAKE=  yes
USE_PERL5_BUILD=yes
GNU_CONFIGURE=  yes
USE_GNOME=  gnomehack gtksharp20 gnomesharp20
USE_GSTREAMER=  yes
USE_GETTEXT=    yes
USE_LDCONFIG=   ${PREFIX}/lib/${PORTNAME}-1
USE_XORG=   xrandr xxf86vm
USE_SQLITE= yes
INSTALLS_ICONS= yes
CONFIGURE_TARGET=   --build=${ARCH}-portbld-freebsd${OSREL}
CONFIGURE_ARGS+=    --disable-boo

# Need absolute path for build/icon-install-theme.
INSTALL=    /usr/bin/install

.include <bsd.port.pre.mk>
.include "${.CURDIR}/../../lang/mono/bsd.mono.mk"

.if !defined(WITHOUT_DOCS) && !defined(NOPORTDOCS)
BUILD_DEPENDS+= ${LOCALBASE}/bin/monodocer:${PORTSDIR}/devel/monodoc
.else
CONFIGURE_ARGS+=    --disable-docs
.endif

#.if !defined(WITHOUT_IPOD)
#LIB_PC_DEPENDS+=   ${LOCALBASE}/libdata/pkgconfig/ipod-sharp-ui.pc:${PORTSDIR}/audio/ipod-sharp
#PLIST_SUB+=    OPT_IPOD=""
#.else
CONFIGURE_ARGS+=    --disable-ipod
PLIST_SUB+= OPT_IPOD="@comment "
#.endif

.if !defined(WITHOUT_MTP)
LIB_DEPENDS+=   mtp.8:${PORTSDIR}/audio/libmtp
PLIST_SUB+= OPT_MTP=""
.else
CONFIGURE_ARGS+=    --disable-mtp
PLIST_SUB+= OPT_MTP="@comment "
.endif

post-patch:
    @${REINPLACE_CMD} "s|!/bin/bash|!${PREFIX}/bin/bash|" \
                ${WRKSRC}/build/icon-theme-installer \
                ${WRKSRC}/build/private-icon-theme-installer \
                ${WRKSRC}/src/Clients/Booter/banshee-1.in
    @${REINPLACE_CMD} 's|sed -r|sed -E|' \
                ${WRKSRC}/data/icon-theme-hicolor/Makefile.in
#               ${WRKSRC}/configure \

# XXX - This is gross.
post-configure:
    @${REINPLACE_CMD} -e 's|^\(MSGFMT =\).*|\1 ${LOCALBASE}/bin/msgfmt|' \
        -e 's|^\(GMSGFMT =\).*|\1 ${LOCALBASE}/bin/msgfmt|' \
            ${WRKSRC}/po/Makefile

# XXX - Really ugly too.
pre-build:
    ${MKDIR} ${WRKSRC}/bin/share/banshee-1/icons/hicolor/scalable/

# XXX - This one is the best.
pre-install:
.for i in 16x16 22x22 32x32 48x48 128x128 scalable
. for j in actions categories devices status
    @${MKDIR} ${PREFIX}/share/banshee-1/icons/hicolor/$i/$j/
. endfor
.endfor

.include <bsd.port.post.mk>