aboutsummaryrefslogtreecommitdiffstats
path: root/audio/mpc/Makefile
blob: e6d69d33d4e5ab9652554f18b8283b6fe1aa9a8f (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
# New ports collection makefile for:    mpc
# Date created:     Oct 02 2003
# Whom:         Mark Reidel <ports@mark.reidle.info>
#
# $FreeBSD$
#

PORTNAME=   mpc
PORTVERSION=    0.15
CATEGORIES= audio ipv6
MASTER_SITES=   SF/musicpd

MAINTAINER= ports@mark.reidel.info
COMMENT=    Command line client for the musicpd

OPTIONS=    ICONV "Support for international characters" on

USE_BZIP2=  yes
GNU_CONFIGURE=  yes
LDFLAGS+=   -L${LOCALBASE}/lib
CFLAGS+=    -I${LOCALBASE}/include
CONFIGURE_ENV=  CFLAGS="${CFLAGS}" \
        LDFLAGS="${LDFLAGS}"

PORTDOCS=   AUTHORS README NEWS

PLIST_FILES=    bin/${PORTNAME} %%PORTEXAMPLES%%%%EXAMPLESDIR%%/${PORTNAME}-bashrc
PLIST_DIRS= %%PORTEXAMPLES%%%%EXAMPLESDIR%%

MAN1=       ${PORTNAME}.1

.include <bsd.port.pre.mk>

.ifdef(WITHOUT_ICONV)
CONFIGURE_ARGS+=--disable-iconv
.else
USE_ICONV=  yes
.endif

do-install:
    ${INSTALL_PROGRAM} ${WRKSRC}/src/${PORTNAME} ${PREFIX}/bin/
.ifndef(NOPORTDOCS)
    @${MKDIR} ${DOCSDIR}
.for i in ${PORTDOCS}
    ${INSTALL_DATA} ${WRKSRC}/${i} ${DOCSDIR}
.endfor
.endif
.ifndef(NOPORTEXAMPLES)
    @${MKDIR} ${EXAMPLESDIR}
    ${INSTALL_DATA} ${WRKSRC}/doc/${PORTNAME}-bashrc ${EXAMPLESDIR}
.endif
    ${INSTALL_MAN} ${WRKSRC}/doc/${PORTNAME}.1 ${MAN1PREFIX}/man/man1/

.include <bsd.port.post.mk>