blob: a245e49dba2e2dedf40f47a5c4a9f03f3c9c01e1 (
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
65
66
67
68
69
70
71
72
73
74
75
76
|
# New ports collection makefile for: ncmpcpp
# Date created: August 25 2008
# Whom: Dennis Herrmann <adox@mcx2.org>
#
# $FreeBSD$
#
PORTNAME= ncmpcpp
PORTVERSION= 0.2.5
PORTREVISION= 1
CATEGORIES= audio
MASTER_SITES= http://unkart.ovh.org/ncmpcpp/ \
http://mirror.mcx2.org/
MAINTAINER= adox@mcx2.org
COMMENT= A ncurses mpd client, clone of ncmpc with some new features
USE_BZIP2= yes
GNU_CONFIGURE= yes
USE_ICONV= yes
USE_GNOME= glib20
CONFIGURE_ENV= CFLAGS="-I${LOCALBASE}/include" \
LDFLAGS="-L${LOCALBASE}/lib -lpthread"
CONFIGURE_ARGS= --disable-unicode
OPTIONS= CURL "Enable fetching lyrics from the Internet" on \
TAGLIB "Enable taglib support" off
.include <bsd.port.pre.mk>
.if ${OSVERSION} < 602107 || (${OSVERSION} > 700000 && ${OSVERSION} < 700033)
LIB_DEPENDS+= ncursesw.5:${PORTSDIR}/devel/ncurses
.else
# no need to use ncurses-config if we use ncurses from the base system
CONFIGURE_ARGS+= NCURSES_CONFIG=/usr/bin/true
.endif
PLIST_FILES= bin/ncmpcpp \
%%DOCSDIR%%/config \
%%DOCSDIR%%/keys \
%%DOCSDIR%%/NEWS \
%%DOCSDIR%%/AUTHORS \
%%DOCSDIR%%/COPYING
PLIST_DIRS= %%DOCSDIR%%
.if !defined(WITHOUT_CURL)
LIB_DEPENDS+= curl.5:${PORTSDIR}/ftp/curl
CONFIGURE_ARGS+= --with-curl
.else
CONFIGURE_ARGS+= --with-curl=no
.endif
.if !defined(WITHOUT_TAGLIB)
LIB_DEPENDS+= tag:${PORTSDIR}/audio/taglib
CONFIGURE_ARGS+= --with-taglib
.else
CONFIGURE_ARGS+= --with-taglib=no
.endif
post-install:
${INSTALL_PROGRAM} ${WRKSRC}/src/ncmpcpp ${PREFIX}/bin/
.if !defined(NOPORTDOCS)
@${ECHO_MSG} "installing additional documentation to ${DOCSDIR}"
@${MKDIR} ${DOCSDIR}
${INSTALL_DATA} ${WRKSRC}/NEWS ${DOCSDIR}/NEWS
${INSTALL_DATA} ${WRKSRC}/AUTHORS ${DOCSDIR}/AUTHORS
${INSTALL_DATA} ${WRKSRC}/COPYING ${DOCSDIR}/COPYING
${INSTALL_DATA} ${WRKSRC}/doc/config ${DOCSDIR}/config
${INSTALL_DATA} ${WRKSRC}/doc/keys ${DOCSDIR}/keys
.endif
@${ECHO_MSG} ""
@${CAT} ${PKGMESSAGE}
@${ECHO_MSG} ""
.include <bsd.port.post.mk>
|