diff options
author | krion <krion@FreeBSD.org> | 2004-06-18 18:40:43 +0800 |
---|---|---|
committer | krion <krion@FreeBSD.org> | 2004-06-18 18:40:43 +0800 |
commit | 3ec40360ad37b9d58fdb857447b0ba2aef5316e3 (patch) | |
tree | bbdfb10a5bb04b99e7d08d7c7e69c8a9266a7f29 /audio | |
parent | d6391f47565714e45f3a450f91909e8aa25b5f58 (diff) | |
download | freebsd-ports-gnome-3ec40360ad37b9d58fdb857447b0ba2aef5316e3.tar.gz freebsd-ports-gnome-3ec40360ad37b9d58fdb857447b0ba2aef5316e3.tar.zst freebsd-ports-gnome-3ec40360ad37b9d58fdb857447b0ba2aef5316e3.zip |
Update to version 0.11.0
PR: ports/68071
Submitted by: maintainer
Diffstat (limited to 'audio')
-rw-r--r-- | audio/mpc/Makefile | 29 | ||||
-rw-r--r-- | audio/mpc/distinfo | 4 | ||||
-rw-r--r-- | audio/mpc/files/patch-src-util.c::gcc295 | 19 | ||||
-rw-r--r-- | audio/mpc/pkg-plist | 3 |
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%% |