summaryrefslogtreecommitdiffstats
path: root/audio/yammi/Makefile
blob: 7368ab2b924a2a308a7c806a431a71b67d8ce4f7 (plain)
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
# New ports collection makefile for:	yammi
# Date created:				27 September 2003
# Whom:					Arjan van Leeuwen <avleeuwen@piwebs.com>
#
# $FreeBSD$
#

PORTNAME=	yammi
PORTVERSION=	1.2.rc
PORTREVISION=	1
CATEGORIES=	audio
MASTER_SITES=	${MASTER_SITE_SOURCEFORGE}
MASTER_SITE_SUBDIR=	${PORTNAME}
DISTNAME=	${PORTNAME}-${PORTVERSION:S/.2.r/.2-r/}

MAINTAINER=	avleeuwen@piwebs.com
COMMENT=	A QT-based music manager with fuzzy search

LIB_DEPENDS=	vorbis.3:${PORTSDIR}/audio/libvorbis \
		id3-3.8.3:${PORTSDIR}/audio/id3lib

OPTIONS=	ARTS "Arts backend support" on \
		XMMS "XMMS backend support" off \
		NOATUN "Noatun backend support" on

USE_QT_VER=	3
USE_GMAKE=	yes
GNU_CONFIGURE=	yes
CONFIGURE_ENV=	CXXFLAGS="${CXXFLAGS} ${PTHREAD_CFLAGS}" \
		LDFLAGS="${LDFLAGS} ${PTHREAD_LIBS}"
CONFIGURE_ARGS+=	--program-prefix='' --enable-threading=yes --enable-mt=yes
USE_REINPLACE=	yes
USE_KDELIBS_VER=3

.include <bsd.port.pre.mk>

.if defined(WITHOUT_ARTS)
.if defined(WITHOUT_XMMS)
.if defined(WITHOUT_NOATUN)
IGNORE=	You must define at least one backend for yammi
.endif
.endif
.endif

.if !defined(WITHOUT_ARTS)
CONFIGURE_ARGS+=--with-arts
LIB_DEPENDS+=	artsgui:${PORTSDIR}/multimedia/kdemultimedia3
.else
CONFIGURE_ARGS+=--without-arts
.endif

.if !defined(WITHOUT_NOATUN)
RUN_DEPENDS+=	noatun:${PORTSDIR}/multimedia/kdemultimedia3
.endif

.if !defined(WITHOUT_XMMS)
CONFIGURE_ARGS+=--enable-xmms
BUILD_DEPENDS+= xmms-config:${PORTSDIR}/multimedia/xmms
LIB_DEPENDS+=   xmms.4:${PORTSDIR}/multimedia/xmms
.else
CONFIGURE_ARGS+=--disable-xmms
.endif

.include <bsd.port.post.mk>
OpenPOWER on IntegriCloud