diff options
-rw-r--r-- | audio/libmpd/DESCR | 5 | ||||
-rw-r--r-- | audio/libmpd/Makefile | 16 | ||||
-rw-r--r-- | audio/libmpd/PLIST | 8 | ||||
-rw-r--r-- | audio/libmpd/buildlink3.mk | 18 | ||||
-rw-r--r-- | audio/libmpd/distinfo | 6 | ||||
-rw-r--r-- | audio/libmpd/patches/patch-aa | 14 |
6 files changed, 67 insertions, 0 deletions
diff --git a/audio/libmpd/DESCR b/audio/libmpd/DESCR new file mode 100644 index 00000000000..982447e6449 --- /dev/null +++ b/audio/libmpd/DESCR @@ -0,0 +1,5 @@ +libmpd is trying to provide a easy to use high level, callback +based access to mpd. It tries to be fast and keep the data transfer +with mpd to the minimum. To do this it implements queues for deleting +and adding songs. There is extra functionallity added for the ease +of the programmer. diff --git a/audio/libmpd/Makefile b/audio/libmpd/Makefile new file mode 100644 index 00000000000..7bec4001dd9 --- /dev/null +++ b/audio/libmpd/Makefile @@ -0,0 +1,16 @@ +# $NetBSD: Makefile,v 1.1.1.1 2005/11/22 19:26:08 wiz Exp $ +# + +DISTNAME= libmpd-0.01 +CATEGORIES= audio +MASTER_SITES= http://download.qballcow.nl/programs/libmpd/ + +MAINTAINER= tech-pkg@NetBSD.org +HOMEPAGE= http://download.qballcow.nl/programs/libmpd/libmpd.html +COMMENT= Library to access mpd (musicpd) + +USE_LIBTOOL= yes +PKGCONFIG_OVERRIDE+= ${WRKSRC}/libmpd-0.01.pc.in +GNU_CONFIGURE= yes + +.include "../../mk/bsd.pkg.mk" diff --git a/audio/libmpd/PLIST b/audio/libmpd/PLIST new file mode 100644 index 00000000000..43a67a6b162 --- /dev/null +++ b/audio/libmpd/PLIST @@ -0,0 +1,8 @@ +@comment $NetBSD: PLIST,v 1.1.1.1 2005/11/22 19:26:08 wiz Exp $ +include/${PKGNAME}/libmpd/debug_printf.h +include/${PKGNAME}/libmpd/libmpd.h +include/${PKGNAME}/libmpd/libmpdclient.h +lib/${PKGNAME}.la +lib/pkgconfig/${PKGNAME}.pc +@dirrm include/${PKGNAME}/libmpd +@dirrm include/${PKGNAME} diff --git a/audio/libmpd/buildlink3.mk b/audio/libmpd/buildlink3.mk new file mode 100644 index 00000000000..2cbaa35e385 --- /dev/null +++ b/audio/libmpd/buildlink3.mk @@ -0,0 +1,18 @@ +# $NetBSD: buildlink3.mk,v 1.1.1.1 2005/11/22 19:26:08 wiz Exp $ + +BUILDLINK_DEPTH:= ${BUILDLINK_DEPTH}+ +LIBMPD_BUILDLINK3_MK:= ${LIBMPD_BUILDLINK3_MK}+ + +.if !empty(BUILDLINK_DEPTH:M+) +BUILDLINK_DEPENDS+= libmpd +.endif + +BUILDLINK_PACKAGES:= ${BUILDLINK_PACKAGES:Nlibmpd} +BUILDLINK_PACKAGES+= libmpd + +.if !empty(LIBMPD_BUILDLINK3_MK:M+) +BUILDLINK_DEPENDS.libmpd+= libmpd>=0.01 +BUILDLINK_PKGSRCDIR.libmpd?= ../../audio/libmpd +.endif # LIBMPD_BUILDLINK3_MK + +BUILDLINK_DEPTH:= ${BUILDLINK_DEPTH:S/+$//} diff --git a/audio/libmpd/distinfo b/audio/libmpd/distinfo new file mode 100644 index 00000000000..f9f5694ebfa --- /dev/null +++ b/audio/libmpd/distinfo @@ -0,0 +1,6 @@ +$NetBSD: distinfo,v 1.1.1.1 2005/11/22 19:26:08 wiz Exp $ + +SHA1 (libmpd-0.01.tar.gz) = 156dce90654332b491ffd07b2c087d777d080ba0 +RMD160 (libmpd-0.01.tar.gz) = a55460b95dd7049378dea12885033e58449ea76b +Size (libmpd-0.01.tar.gz) = 311358 bytes +SHA1 (patch-aa) = 4050fa9b8aeed532de3b965ffd13e9522a9c3358 diff --git a/audio/libmpd/patches/patch-aa b/audio/libmpd/patches/patch-aa new file mode 100644 index 00000000000..195bcb84dbb --- /dev/null +++ b/audio/libmpd/patches/patch-aa @@ -0,0 +1,14 @@ +$NetBSD: patch-aa,v 1.1.1.1 2005/11/22 19:26:08 wiz Exp $ + +--- src/libmpd.c.orig 2005-08-14 20:06:20.000000000 +0200 ++++ src/libmpd.c +@@ -2729,7 +2729,8 @@ regex_t ** mpd_misc_tokenize(char *strin + char * temp=NULL; + result = (regex_t **)realloc(result,(tokens+2)*sizeof(regex_t *)); + result[tokens] = malloc(sizeof(regex_t)); +- temp = (char *)strndup((const char *)&string[bpos], i-bpos); ++ temp = (char *)strdup((const char *)&string[bpos]); ++ temp[i-bpos] = '\0'; + if(regcomp(result[tokens], temp, REG_EXTENDED|REG_ICASE|REG_NOSUB)) + { + result[tokens+1] = NULL; |