aboutsummaryrefslogtreecommitdiff
path: root/audio/mpc
diff options
context:
space:
mode:
authorKirill Ponomarev <krion@FreeBSD.org>2004-06-18 10:40:43 +0000
committerKirill Ponomarev <krion@FreeBSD.org>2004-06-18 10:40:43 +0000
commit8aec53cacc4aa2d1818aef6063889d3d18dcf9c7 (patch)
tree40ea63841bf010a21221f2554402944000e2a7d4 /audio/mpc
parentb253f67e18b8ffd341630ab521498b4254a569b9 (diff)
downloadports-8aec53cacc4aa2d1818aef6063889d3d18dcf9c7.tar.gz
ports-8aec53cacc4aa2d1818aef6063889d3d18dcf9c7.zip
Notes
Diffstat (limited to 'audio/mpc')
-rw-r--r--audio/mpc/Makefile29
-rw-r--r--audio/mpc/distinfo4
-rw-r--r--audio/mpc/files/patch-src-util.c::gcc29519
-rw-r--r--audio/mpc/pkg-plist3
4 files changed, 48 insertions, 7 deletions
diff --git a/audio/mpc/Makefile b/audio/mpc/Makefile
index 5d7b08519b55..2df0124e2a31 100644
--- a/audio/mpc/Makefile
+++ b/audio/mpc/Makefile
@@ -6,7 +6,7 @@
#
PORTNAME= mpc
-PORTVERSION= 0.10.2
+PORTVERSION= 0.11.0
CATEGORIES= audio ipv6
MASTER_SITES= ${MASTER_SITE_SOURCEFORGE}
MASTER_SITE_SUBDIR= musicpd
@@ -15,12 +15,33 @@ MAINTAINER= ports@mark.reidel.info
COMMENT= Command line client for the musicpd
GNU_CONFIGURE= yes
+OPTIONS= ICONV "Support for international characters" on \
+
+CFLAGS+= -I${PREFIX}/include
+
+MAN1= mpc.1
+
+.include <bsd.port.pre.mk>
+
CONFIGURE_TARGET=--build=${MACHINE_ARCH}-portbld-freebsd${OSREL}
CONFIGURE_ENV= CPPFLAGS="-I${LOCALBASE}/include" \
LDFLAGS="-L${LOCALBASE}/lib" \
-CFLAGS+= -I${PREFIX}/include
+.ifdef(WITHOUT_ICONV)
+CONFIGURE_ARGS+=--disable-iconv
+.else
+USE_ICONV= yes
+.endif
-MAN1= mpc.1
+do-install:
+ ${INSTALL_PROGRAM} ${WRKSRC}/src/mpc ${PREFIX}/bin/
+.ifndef(NOPORTDOCS)
+ ${MKDIR} ${DOCSDIR}
+ ${INSTALL_DATA} ${WRKSRC}/AUTHORS ${DOCSDIR}
+ ${INSTALL_DATA} ${WRKSRC}/README ${DOCSDIR}
+.endif
+ ${MKDIR} ${EXAMPLESDIR}
+ ${INSTALL_DATA} ${WRKSRC}/doc/mpc-bashrc ${EXAMPLESDIR}
+ ${INSTALL_MAN} ${WRKSRC}/doc/mpc.1 ${MAN1PREFIX}/man/man1/
-.include <bsd.port.mk>
+.include <bsd.port.post.mk>
diff --git a/audio/mpc/distinfo b/audio/mpc/distinfo
index 4682ab483ead..eebaa63dc360 100644
--- a/audio/mpc/distinfo
+++ b/audio/mpc/distinfo
@@ -1,2 +1,2 @@
-MD5 (mpc-0.10.2.tar.gz) = 3ca8b537d164897a376fd1abcd5514d1
-SIZE (mpc-0.10.2.tar.gz) = 209538
+MD5 (mpc-0.11.0.tar.gz) = 7b58088f3ceba47b6466d1226993ad99
+SIZE (mpc-0.11.0.tar.gz) = 163502
diff --git a/audio/mpc/files/patch-src-util.c::gcc295 b/audio/mpc/files/patch-src-util.c::gcc295
new file mode 100644
index 000000000000..7c2275170d8a
--- /dev/null
+++ b/audio/mpc/files/patch-src-util.c::gcc295
@@ -0,0 +1,19 @@
+--- src/util.c.orig Fri Jun 18 08:53:42 2004
++++ src/util.c Fri Jun 18 08:53:58 2004
+@@ -125,13 +125,13 @@
+ * the number in any other way for that matter */
+ int parse_songnum(const char * str, int * ret)
+ {
++ int song;
++ char * endptr;
++
+ if(!str)
+ return 0;
+ if(*str == '#')
+ str++;
+-
+- int song;
+- char * endptr;
+
+ song = strtol(str, &endptr, 10);
+
diff --git a/audio/mpc/pkg-plist b/audio/mpc/pkg-plist
index 877011592206..d5969051b382 100644
--- a/audio/mpc/pkg-plist
+++ b/audio/mpc/pkg-plist
@@ -1,5 +1,6 @@
bin/mpc
%%PORTDOCS%%%%DOCSDIR%%/AUTHORS
%%PORTDOCS%%%%DOCSDIR%%/README
-%%PORTDOCS%%%%DOCSDIR%%/mpc-bashrc
%%PORTDOCS%%@dirrm %%DOCSDIR%%
+%%EXAMPLESDIR%%/mpc-bashrc
+@dirrm %%EXAMPLESDIR%%