aboutsummaryrefslogtreecommitdiffstats
path: root/audio/vagalume/Makefile
blob: 459b449587f708cf5eb2b23cb095e964e1d3e76e (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
# New ports collection makefile for:    vagalume
# Date created: 2008-06-14
# Whom:     Bernhard Fröhlich <decke@bluelife.at>
#
# $FreeBSD$
#

PORTNAME=   vagalume
PORTVERSION=    0.8.5
PORTREVISION=   2
CATEGORIES= audio
MASTER_SITES=   http://vagalume.igalia.com/files/source/ \
        ${MASTER_SITE_DEBIAN_POOL}
MASTER_SITE_SUBDIR= pool/main/v/vagalume/

MAINTAINER= decke@FreeBSD.org
COMMENT=    A GTK+-based client for the Last.fm online radio

LIB_DEPENDS=    xml2:${PORTSDIR}/textproc/libxml2 \
        curl.6:${PORTSDIR}/ftp/curl

GNU_CONFIGURE=  yes
USE_GMAKE=  yes
USE_GNOME=  pkgconfig gtk20
USE_GSTREAMER=  good mad gconf
INSTALLS_ICONS= yes

MAN1=       vagalume.1

OPTIONS=    DBUS "Build with DBUS support" on \
        TRAY "Build with tray icon and libnotify support" on

.include <bsd.port.pre.mk>

.if !defined(WITHOUT_NLS)
USE_GETTEXT=    yes
CPPFLAGS+=  -I${LOCALBASE}/include
LDFLAGS+=   -L${LOCALBASE}/lib
PLIST_SUB+= NLS=""
.else
PLIST_SUB+= NLS="@comment "
.endif

.if !defined(WITHOUT_DBUS)
CONFIGURE_ARGS+=--enable-dbus --enable-im-status
LIB_DEPENDS+=   dbus-glib-1.2:${PORTSDIR}/devel/dbus-glib
PLIST_SUB+= DBUS=""
MAN1+=      vagalumectl.1
.else
CONFIGURE_ARGS+=--disable-dbus --disable-im-status
PLIST_SUB+= DBUS="@comment "
.endif

.if !defined(WITHOUT_TRAY)
CONFIGURE_ARGS+=--enable-tray-icon
BUILD_DEPENDS+= ${LOCALBASE}/libdata/pkgconfig/libnotify.pc:${PORTSDIR}/devel/libnotify
LIB_DEPENDS+=   notify.4:${PORTSDIR}/devel/libnotify
.else
CONFIGURE_ARGS+=--disable-tray-icon
.endif

.if defined(WITH_GNOME)
USE_GNOME+= gconf2
CONFIGURE_ARGS+=--enable-gconf
.endif

post-patch:
    @${REINPLACE_CMD} -e 's|serviceentrydir = @serviceentrydir@|serviceentrydir = ${PREFIX}/share/dbus-1/services|' \
        ${WRKSRC}/Makefile.in
.if defined(WITHOUT_NLS)
    @${REINPLACE_CMD} -e 's|SUBDIRS = src po|SUBDIRS = src|' \
        ${WRKSRC}/Makefile.in
.endif

.include <bsd.port.post.mk>