summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMartin Wilke <miwi@FreeBSD.org>2009-02-08 21:38:49 +0000
committerMartin Wilke <miwi@FreeBSD.org>2009-02-08 21:38:49 +0000
commit4b09c635a960d0abda70fcba3099d41e746ca5e7 (patch)
tree6dd25bab2989933696205308452a8543f6349ab3
parentRemove patch that is no longer needed. (diff)
- Update to 0.3
PR: 131092 Submitted by: Dennis Herrmann <adox@mcx2.org> (maintainer)
Notes
Notes: svn path=/head/; revision=227824
-rw-r--r--audio/ncmpcpp/Makefile25
-rw-r--r--audio/ncmpcpp/distinfo6
-rw-r--r--audio/ncmpcpp/pkg-message5
3 files changed, 30 insertions, 6 deletions
diff --git a/audio/ncmpcpp/Makefile b/audio/ncmpcpp/Makefile
index a245e49dba2e..5ba283f339c3 100644
--- a/audio/ncmpcpp/Makefile
+++ b/audio/ncmpcpp/Makefile
@@ -6,8 +6,7 @@
#
PORTNAME= ncmpcpp
-PORTVERSION= 0.2.5
-PORTREVISION= 1
+PORTVERSION= 0.3
CATEGORIES= audio
MASTER_SITES= http://unkart.ovh.org/ncmpcpp/ \
http://mirror.mcx2.org/
@@ -19,11 +18,15 @@ USE_BZIP2= yes
GNU_CONFIGURE= yes
USE_ICONV= yes
USE_GNOME= glib20
+USE_AUTOTOOLS= automake:110 aclocal:110 libtool:15
+ACLOCAL_ARGS= --acdir=${ACLOCAL_DIR} -I ${LOCALBASE}/share/aclocal
CONFIGURE_ENV= CFLAGS="-I${LOCALBASE}/include" \
LDFLAGS="-L${LOCALBASE}/lib -lpthread"
-CONFIGURE_ARGS= --disable-unicode
+#CONFIGURE_ARGS= --disable-unicode
OPTIONS= CURL "Enable fetching lyrics from the Internet" on \
+ CLOCK "Enable clock-screen support" on \
+ UTF8 "Enable UTF8 support" on \
TAGLIB "Enable taglib support" off
.include <bsd.port.pre.mk>
@@ -50,6 +53,18 @@ CONFIGURE_ARGS+= --with-curl
CONFIGURE_ARGS+= --with-curl=no
.endif
+.if !defined(WITHOUT_CLOCK)
+CONFIGURE_ARGS+= --enable-clock
+.else
+CONFIGURE_ARGS+= --disable-clock
+.endif
+
+.if !defined(WITHOUT_UTF8)
+CONFIGURE_ARGS+= --enable-unicode
+.else
+CONFIGURE_ARGS+= --disable-unicode
+.endif
+
.if !defined(WITHOUT_TAGLIB)
LIB_DEPENDS+= tag:${PORTSDIR}/audio/taglib
CONFIGURE_ARGS+= --with-taglib
@@ -57,6 +72,10 @@ CONFIGURE_ARGS+= --with-taglib
CONFIGURE_ARGS+= --with-taglib=no
.endif
+post-patch:
+ @${REINPLACE_CMD} -e 's|/usr/share/i18n/SUPPORTED|${LOCALBASE}/share/locale|g' \
+ -e 's|iconv.h|sys/iconv.h|g' ${WRKSRC}/configure*
+
post-install:
${INSTALL_PROGRAM} ${WRKSRC}/src/ncmpcpp ${PREFIX}/bin/
.if !defined(NOPORTDOCS)
diff --git a/audio/ncmpcpp/distinfo b/audio/ncmpcpp/distinfo
index f29c2bb7db21..e9840f39c0ad 100644
--- a/audio/ncmpcpp/distinfo
+++ b/audio/ncmpcpp/distinfo
@@ -1,3 +1,3 @@
-MD5 (ncmpcpp-0.2.5.tar.bz2) = acd8df3f5512f7cab8b5b9207c778db1
-SHA256 (ncmpcpp-0.2.5.tar.bz2) = 9fde4a7fad47cee62fe5ab9f3c24f6b24cf592d2fd7a3d8009a157a2e4d51531
-SIZE (ncmpcpp-0.2.5.tar.bz2) = 310567
+MD5 (ncmpcpp-0.3.tar.bz2) = 5b2d400cab697ff74ae9a4d7e25d7a3e
+SHA256 (ncmpcpp-0.3.tar.bz2) = 2d64d186490cf6c18e77baa58aa8f60794facdbd4113956a93e4e09672e265b8
+SIZE (ncmpcpp-0.3.tar.bz2) = 313879
diff --git a/audio/ncmpcpp/pkg-message b/audio/ncmpcpp/pkg-message
index 7e7249492424..9901462b87f1 100644
--- a/audio/ncmpcpp/pkg-message
+++ b/audio/ncmpcpp/pkg-message
@@ -5,6 +5,11 @@ Attention: ncmpcpp doesn't use ~/.ncmpcpprc and ~/.ncmpcpp_keys as config
files anymore. It's been using respectively ~/.ncmpcpp/config and
~/.ncmpcpp/keys for this since ver. 0.2.4!
+--------------------------------------------------------------------------
+Colors syntax has changed since 0.3 version. See example config file for
+new syntax.
+--------------------------------------------------------------------------
+
A default config has been installed to:
PREFIX/share/doc/ncmpcpp/config