2004-04-14 12:46:46 +00:00
|
|
|
# New ports collection makefile for: ncmpc
|
|
|
|
# Date created: Apr 14 2004
|
|
|
|
# Whom: Mark Reidel <ports@mark.reidel.info>
|
|
|
|
#
|
|
|
|
# $FreeBSD$
|
|
|
|
#
|
|
|
|
|
|
|
|
PORTNAME= ncmpc
|
2010-09-28 11:00:06 +00:00
|
|
|
PORTVERSION= 0.18
|
2004-04-14 12:46:46 +00:00
|
|
|
CATEGORIES= audio
|
2009-08-22 00:13:26 +00:00
|
|
|
MASTER_SITES= SF/musicpd/${PORTNAME}/${PORTVERSION}
|
2004-04-14 12:46:46 +00:00
|
|
|
|
2009-01-09 23:19:34 +00:00
|
|
|
MAINTAINER= hrkfdn@gmail.com
|
2004-04-14 12:46:46 +00:00
|
|
|
COMMENT= Ncurses client for the musicpd
|
|
|
|
|
2010-01-25 08:44:59 +00:00
|
|
|
LIB_DEPENDS= mpdclient:${PORTSDIR}/audio/libmpdclient
|
|
|
|
|
2004-04-14 12:46:46 +00:00
|
|
|
GNU_CONFIGURE= yes
|
2005-03-16 19:49:20 +00:00
|
|
|
USE_GNOME= glib20
|
2009-05-26 14:57:54 +00:00
|
|
|
CONFIGURE_ENV= CPPFLAGS="-I${LOCALBASE}/include" \
|
2004-04-14 12:46:46 +00:00
|
|
|
LDFLAGS="-L${LOCALBASE}/lib"
|
2004-07-12 13:10:12 +00:00
|
|
|
|
2009-05-26 14:57:54 +00:00
|
|
|
OPTIONS= NLS "Native language support" on \
|
|
|
|
LYRICS "Compile with lyrics screen" on
|
2004-07-12 13:10:12 +00:00
|
|
|
|
|
|
|
.include <bsd.port.pre.mk>
|
|
|
|
|
2004-04-14 12:46:46 +00:00
|
|
|
USE_ICONV= yes
|
2005-03-20 11:59:20 +00:00
|
|
|
PLIST_FILES= bin/ncmpc \
|
2009-05-26 14:57:54 +00:00
|
|
|
%%EXAMPLESDIR%%/config \
|
|
|
|
%%EXAMPLESDIR%%/keys \
|
|
|
|
%%EXAMPLESDIR%%/ncmpc.lirc
|
2005-03-20 11:59:20 +00:00
|
|
|
PLIST_DIRS=%%EXAMPLESDIR%%
|
2004-04-14 12:46:46 +00:00
|
|
|
|
2004-07-12 13:10:12 +00:00
|
|
|
.ifdef(WITHOUT_NLS)
|
|
|
|
CONFIGURE_ARGS+=--disable-nls
|
|
|
|
.else
|
|
|
|
USE_GETTEXT= yes
|
2010-09-28 11:00:06 +00:00
|
|
|
LANGUAGES=cs da de eo es fi fr gl he hu it ko nb nl pt_BR ru sk sv uk zh_CN
|
2005-03-20 11:59:20 +00:00
|
|
|
.for language in ${LANGUAGES}
|
|
|
|
PLIST_FILES+=share/locale/${language}/LC_MESSAGES/ncmpc.mo
|
|
|
|
.endfor
|
|
|
|
|
2004-07-12 13:10:12 +00:00
|
|
|
.endif
|
|
|
|
|
2009-05-26 14:57:54 +00:00
|
|
|
.ifdef(WITH_LYRICS)
|
|
|
|
CONFIGURE_ARGS+=--enable-lyrics-screen
|
2010-01-25 08:44:59 +00:00
|
|
|
PLIST_FILES+= lib/ncmpc/lyrics/10-hd.sh \
|
|
|
|
lib/ncmpc/lyrics/15-leoslyrics.sh \
|
|
|
|
lib/ncmpc/lyrics/20-lyricwiki.rb \
|
|
|
|
lib/ncmpc/lyrics/30-leoslyrics.py
|
2009-05-26 14:57:54 +00:00
|
|
|
PLIST_DIRS+= lib/ncmpc/lyrics \
|
|
|
|
lib/ncmpc
|
|
|
|
.else
|
|
|
|
CONFIGURE_ARGS+=--disable-lyrics-screen
|
|
|
|
.endif
|
|
|
|
|
2004-04-14 12:46:46 +00:00
|
|
|
MAN1= ncmpc.1
|
|
|
|
|
2009-10-10 09:23:47 +00:00
|
|
|
post-patch:
|
|
|
|
@${REINPLACE_CMD} -e 's|/usr/bin|${PREFIX}/bin|' \
|
2010-01-25 08:44:59 +00:00
|
|
|
${WRKSRC}/lyrics/30-leoslyrics.py
|
2009-10-10 09:23:47 +00:00
|
|
|
|
2004-04-14 12:46:46 +00:00
|
|
|
do-install:
|
2004-07-12 13:10:12 +00:00
|
|
|
${INSTALL_PROGRAM} ${WRKSRC}/src/ncmpc ${PREFIX}/bin/
|
2004-04-14 12:46:46 +00:00
|
|
|
${MKDIR} ${EXAMPLESDIR}
|
2004-05-07 07:45:31 +00:00
|
|
|
${INSTALL_DATA} ${WRKSRC}/doc/config.sample ${EXAMPLESDIR}/config
|
|
|
|
${INSTALL_DATA} ${WRKSRC}/doc/keys.sample ${EXAMPLESDIR}/keys
|
2004-04-14 12:46:46 +00:00
|
|
|
${INSTALL_DATA} ${WRKSRC}/doc/ncmpc.lirc ${EXAMPLESDIR}/
|
|
|
|
${INSTALL_MAN} ${WRKSRC}/doc/ncmpc.1 ${MAN1PREFIX}/man/man1/
|
2004-07-12 13:10:12 +00:00
|
|
|
.if !defined(WITHOUT_NLS)
|
2005-03-20 11:59:20 +00:00
|
|
|
.for language in ${LANGUAGES}
|
2004-07-12 13:10:12 +00:00
|
|
|
${MKDIR} ${LOCALBASE}/share/locale/${language}/LC_MESSAGES
|
|
|
|
${INSTALL_DATA} ${WRKSRC}/po/${language}.gmo ${PREFIX}/share/locale/${language}/LC_MESSAGES/ncmpc.mo
|
|
|
|
.endfor
|
|
|
|
.endif
|
2009-05-26 14:57:54 +00:00
|
|
|
.if !defined(WITHOUT_LYRICS)
|
2009-10-10 09:23:47 +00:00
|
|
|
${MKDIR} ${PREFIX}/lib/ncmpc/lyrics
|
2010-01-25 08:44:59 +00:00
|
|
|
${INSTALL_SCRIPT} ${WRKSRC}/lyrics/10-hd.sh ${PREFIX}/lib/ncmpc/lyrics/10-hd.sh
|
|
|
|
${INSTALL_SCRIPT} ${WRKSRC}/lyrics/15-leoslyrics.sh ${PREFIX}/lib/ncmpc/lyrics/15-leoslyrics.sh
|
|
|
|
${INSTALL_SCRIPT} ${WRKSRC}/lyrics/20-lyricwiki.rb ${PREFIX}/lib/ncmpc/lyrics/20-lyricwiki.rb
|
|
|
|
${INSTALL_SCRIPT} ${WRKSRC}/lyrics/30-leoslyrics.py ${PREFIX}/lib/ncmpc/lyrics/30-leoslyrics.py
|
2009-05-26 14:57:54 +00:00
|
|
|
.endif
|
2004-04-14 12:46:46 +00:00
|
|
|
|
2004-07-12 13:10:12 +00:00
|
|
|
.include <bsd.port.post.mk>
|