aboutsummaryrefslogtreecommitdiffstats
path: root/audio/mpdscribble/Makefile
blob: d6eae79f598e9b2d94066b9c843d2b91b5a96bf1 (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
# Created by: Stepan Zastupov [RedChrom] <redchrom@gmail.com>
# $FreeBSD$

PORTNAME=   mpdscribble
PORTVERSION=    0.22
PORTREVISION=   1
CATEGORIES= audio
MASTER_SITES=   SF/musicpd/${PORTNAME}/${PORTVERSION}

MAINTAINER= jlaffaye@FreeBSD.org
COMMENT=    Musicpd last.fm client

LICENSE=    GPLv2

LIB_DEPENDS+=   libmpdclient.so:${PORTSDIR}/audio/libmpdclient

USE_BZIP2=  yes
NO_STAGE=   yes
USES=       pkgconfig
USE_GNOME=  glib20
GNU_CONFIGURE=  yes
USE_RC_SUBR=    mpdscribble

MAN1=       mpdscribble.1

OPTIONS_DEFINE= SOUP DOCS
SOUP_DESC=  Use libsoup instead of libcurl

.include <bsd.port.options.mk>

.if ${PORT_OPTIONS:MSOUP}
LIB_DEPENDS+=   libsoup-2.4.so:${PORTSDIR}/devel/libsoup
CONFIGURE_ARGS+=    --with-http-client=soup
.else
LIB_DEPENDS+=   libcurl.so:${PORTSDIR}/ftp/curl
CONFIGURE_ARGS+=    --with-http-client=curl
.endif

do-install:
    ${INSTALL_PROGRAM} ${WRKSRC}/src/mpdscribble ${PREFIX}/bin/mpdscribble
    ${INSTALL_MAN} ${WRKSRC}/doc/mpdscribble.1 ${MANPREFIX}/man/man1/mpdscribble.1
    ${INSTALL_DATA} ${WRKSRC}/doc/mpdscribble.conf ${PREFIX}/etc/mpdscribble.conf.sample
.if !exists(${PREFIX}/etc/mpdscribble.conf)
    @(cd ${PREFIX}/etc && ${CP} mpdscribble.conf.sample mpdscribble.conf)
.endif
.if ${PORT_OPTIONS:MDOCS}
    @${MKDIR} ${DOCSDIR}
.for file in AUTHORS NEWS README
    ${INSTALL_DATA} ${WRKSRC}/${file} ${DOCSDIR}
.endfor
.endif

.include <bsd.port.mk>