aboutsummaryrefslogtreecommitdiffstats
path: root/multimedia/shell-fm/Makefile
blob: e87b597fcbe4c19eb080358194965d943610f235 (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
# New ports collection makefile for: shell-fm
# Date created: 15 December 2006
# Whom:     Nikos Ntarmos <ntarmos@ceid.upatras.gr>
#
# $FreeBSD$
#

PORTNAME=   shell-fm
PORTVERSION=    0.6
PORTEPOCH=  1
CATEGORIES= multimedia
MASTER_SITES=   http://nex.scrapping.cc/code/shell-fm/downloads/

MAINTAINER= ntarmos@cs.uoi.gr
COMMENT=    A command-line client for Last.FM

LIB_DEPENDS=    ao:${PORTSDIR}/audio/libao \
        mad:${PORTSDIR}/audio/libmad

USE_BZIP2=  true
USE_GMAKE=  true
LDFLAGS+=   -L${LOCALBASE}/lib
CFLAGS+=    -I${LOCALBASE}/include

MAN1=       shell-fm.1
MANCOMPRESSED=  yes
PLIST_FILES=    bin/shell-fm
PORTDOCS=   AUTHORS CHANGES RELEASE INSTALL
PORTEXAMPLES=   shell-colors.sh shell-fm-tune.sh \
        unix.pl zcontrol

pre-build:
    @${REINPLACE_CMD} \
        -e 's/^DESTDIR.*$$/\DESTDIR := $$(LOCALBASE)/g' \
        ${WRKSRC}/Makefile

post-install:
.if !defined(NOPORTDOCS)
    @${ECHO_MSG} "installing additional documentation to ${DOCSDIR}"
    @${MKDIR} ${DOCSDIR}
. for doc in ${PORTDOCS}
    @${INSTALL_DATA} ${WRKSRC}/${doc} ${DOCSDIR}
. endfor
.endif
.if !defined(NOPORTEXAMPLES)
    @${MKDIR} ${EXAMPLESDIR}
    @${ECHO_MSG} "installing examples to ${EXAMPLESDIR}"
. for example in ${PORTEXAMPLES}
    @${INSTALL_DATA} ${WRKSRC}/scripts/${example} ${EXAMPLESDIR}
. endfor
.endif

.include <bsd.port.mk>