Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 25 May 2009 17:14:33 GMT
From:      Henrik Friedrichsen <hrkfdn@gmail.com>
To:        freebsd-gnats-submit@FreeBSD.org
Subject:   ports/134936: [PATCH] audio/ncmpc: add lyrics screen support to Makefile
Message-ID:  <200905251714.n4PHEXxd017483@www.freebsd.org>
Resent-Message-ID: <200905251720.n4PHK1tq075771@freefall.freebsd.org>

next in thread | raw e-mail | index | archive | help

>Number:         134936
>Category:       ports
>Synopsis:       [PATCH] audio/ncmpc: add lyrics screen support to Makefile
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-ports-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          change-request
>Submitter-Id:   current-users
>Arrival-Date:   Mon May 25 17:20:01 UTC 2009
>Closed-Date:
>Last-Modified:
>Originator:     Henrik Friedrichsen
>Release:        7.2
>Organization:
>Environment:
FreeBSD sun.univer.se 7.2-RELEASE FreeBSD 7.2-RELEASE #0: Sun May  3 18:25:22 CEST 2009     root@sun.univer.se:/usr/obj/usr/src/sys/KRAFTWERK  i386

>Description:
This patch adds a lyric screen knob to enable the lyrics screen in ncmpc.
>How-To-Repeat:

>Fix:


Patch attached with submission follows:

diff -Naur ./Makefile ../ncmpc/Makefile
--- ./Makefile	2009-05-25 18:40:05.000000000 +0200
+++ ../ncmpc/Makefile	2009-05-25 19:11:28.000000000 +0200
@@ -18,15 +18,16 @@
 CONFIGURE_ENV=	CFLAGS="-I${LOCALBASE}/include" \
 		LDFLAGS="-L${LOCALBASE}/lib"
 
-OPTIONS=	NLS "Native language support" on
+OPTIONS=	NLS "Native language support" on \
+		LYRICS "Compile with lyrics screen" on
 
 .include <bsd.port.pre.mk>
 
 USE_ICONV=	yes
 PLIST_FILES=	bin/ncmpc \
-	%%EXAMPLESDIR%%/config \
-	%%EXAMPLESDIR%%/keys \
-	%%EXAMPLESDIR%%/ncmpc.lirc
+		%%EXAMPLESDIR%%/config \
+		%%EXAMPLESDIR%%/keys \
+		%%EXAMPLESDIR%%/ncmpc.lirc
 PLIST_DIRS=%%EXAMPLESDIR%%
 
 .ifdef(WITHOUT_NLS)
@@ -40,6 +41,17 @@
 
 .endif
 
+.ifdef(WITH_LYRICS)
+CONFIGURE_ARGS+=--enable-lyrics-screen
+PLIST_FILES+=	lib/ncmpc/lyrics/01-hd.sh \
+		lib/ncmpc/lyrics/02-lyricwiki.rb \
+		lib/ncmpc/lyrics/03-leoslyrics.py
+PLIST_DIRS+=	lib/ncmpc/lyrics \
+		lib/ncmpc
+.else
+CONFIGURE_ARGS+=--disable-lyrics-screen
+.endif
+
 MAN1=		ncmpc.1
 
 do-install:
@@ -55,5 +67,8 @@
 	${INSTALL_DATA} ${WRKSRC}/po/${language}.gmo ${PREFIX}/share/locale/${language}/LC_MESSAGES/ncmpc.mo
 .endfor
 .endif
+.if !defined(WITHOUT_LYRICS)
+	${MAKE} -C ${WRKSRC} install-exec-local
+.endif
 
 .include <bsd.port.post.mk>


>Release-Note:
>Audit-Trail:
>Unformatted:



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200905251714.n4PHEXxd017483>