diff options
author | drochner <drochner@pkgsrc.org> | 2013-10-03 11:15:39 +0000 |
---|---|---|
committer | drochner <drochner@pkgsrc.org> | 2013-10-03 11:15:39 +0000 |
commit | 1d074addaa93e97c67ece1a59d1cf5fd07e3d9c9 (patch) | |
tree | 49d851dece41623e51fecc765e07e51939d0ea8b /audio/libxspf | |
parent | 652b5b134f8a96e633d572a96bed8cec3ce66ae3 (diff) | |
download | pkgsrc-1d074addaa93e97c67ece1a59d1cf5fd07e3d9c9.tar.gz |
add libxspf-1.2.0, a library to handle xspf playlists
Diffstat (limited to 'audio/libxspf')
-rw-r--r-- | audio/libxspf/DESCR | 17 | ||||
-rw-r--r-- | audio/libxspf/Makefile | 33 | ||||
-rw-r--r-- | audio/libxspf/PLIST | 29 | ||||
-rw-r--r-- | audio/libxspf/buildlink3.mk | 15 | ||||
-rw-r--r-- | audio/libxspf/distinfo | 6 | ||||
-rw-r--r-- | audio/libxspf/patches/patch-aa | 14 |
6 files changed, 114 insertions, 0 deletions
diff --git a/audio/libxspf/DESCR b/audio/libxspf/DESCR new file mode 100644 index 00000000000..fbf5593231a --- /dev/null +++ b/audio/libxspf/DESCR @@ -0,0 +1,17 @@ +LibSpiff brings XSPF playlist reading and writing support to your C++ +application. Both version 0 and 1 are supported. libSpiff uses Expat for +XML parsing and CppTest for unit testing. libSpiff is the official +reference implementation for XSPF of the [9]Xiph.Org Foundation. + +Features + + * Full conformance to the XSPF specification + * Cross-platform (Unix, Windows, Mac OS X, ...) + * Read and write XSPF files + * XSPF-0 and XSPF-1 support + * Unicode support + * Full support for XSPF extensions + * Full support for XML namespaces + * Fast (XML parsing is done by Expat) + * Uses unit testing + * Liberal license: [10]New BSD license diff --git a/audio/libxspf/Makefile b/audio/libxspf/Makefile new file mode 100644 index 00000000000..35faa7e4823 --- /dev/null +++ b/audio/libxspf/Makefile @@ -0,0 +1,33 @@ +# $NetBSD: Makefile,v 1.1 2013/10/03 11:15:39 drochner Exp $ +# + +DISTNAME= libxspf-1.2.0 +CATEGORIES= audio +MASTER_SITES= ${MASTER_SITE_SOURCEFORGE:=libspiff/} +EXTRACT_SUFX= .tar.bz2 + +MAINTAINER= pkgsrc-users@NetBSD.org +HOMEPAGE= http://libspiff.sourceforge.net/ +COMMENT= XML Shareable Playlist Format (XSPF) library + +PKG_DESTDIR_SUPPORT= user-destdir + +USE_TOOLS+= pkg-config +GNU_CONFIGURE= yes +USE_LIBTOOL= yes +USE_LANGUAGES= c c++ +PKGCONFIG_OVERRIDE+= xspf.pc.in + +CONFIGURE_ARGS+= --with-expat=${BUILDLINK_PREFIX.expat:Q} +#CONFIGURE_ARGS+= --with-uriparser=${BUILDLINK_PREFIX.uriparser:Q} + +CONFIGURE_ARGS+= --disable-test +#TEST_TARGET= check + +BUILDLINK_ABI_DEPENDS.expat+= expat>=2.0.0nb1 +BUILDLINK_API_DEPENDS.uriparser+= uriparser>=0.7.5 + +.include "../../textproc/expat/buildlink3.mk" +.include "../../textproc/uriparser/buildlink3.mk" + +.include "../../mk/bsd.pkg.mk" diff --git a/audio/libxspf/PLIST b/audio/libxspf/PLIST new file mode 100644 index 00000000000..3bfc5b35b19 --- /dev/null +++ b/audio/libxspf/PLIST @@ -0,0 +1,29 @@ +@comment $NetBSD: PLIST,v 1.1 2013/10/03 11:15:39 drochner Exp $ +bin/xspf_check +bin/xspf_strip +include/xspf/ProjectOpus/ProjectOpusPlaylistExtension.h +include/xspf/ProjectOpus/ProjectOpusPlaylistExtensionReader.h +include/xspf/ProjectOpus/ProjectOpusPlaylistExtensionWriter.h +include/xspf/Xspf.h +include/xspf/XspfChunkCallback.h +include/xspf/XspfData.h +include/xspf/XspfDateTime.h +include/xspf/XspfDefines.h +include/xspf/XspfExtension.h +include/xspf/XspfExtensionReader.h +include/xspf/XspfExtensionReaderFactory.h +include/xspf/XspfExtensionWriter.h +include/xspf/XspfIndentFormatter.h +include/xspf/XspfProps.h +include/xspf/XspfReader.h +include/xspf/XspfReaderCallback.h +include/xspf/XspfSeamlessFormatter.h +include/xspf/XspfStack.h +include/xspf/XspfToolbox.h +include/xspf/XspfTrack.h +include/xspf/XspfVersion.h +include/xspf/XspfWriter.h +include/xspf/XspfXmlFormatter.h +include/xspf/xspf_c.h +lib/libxspf.la +lib/pkgconfig/xspf.pc diff --git a/audio/libxspf/buildlink3.mk b/audio/libxspf/buildlink3.mk new file mode 100644 index 00000000000..a3354da9296 --- /dev/null +++ b/audio/libxspf/buildlink3.mk @@ -0,0 +1,15 @@ +# $NetBSD: buildlink3.mk,v 1.1 2013/10/03 11:15:39 drochner Exp $ + +BUILDLINK_TREE+= libspiff + +.if !defined(LIBSPIFF_BUILDLINK3_MK) +LIBSPIFF_BUILDLINK3_MK:= + +BUILDLINK_API_DEPENDS.libspiff+= libxspf>=1.2.0 +BUILDLINK_PKGSRCDIR.libspiff?= ../../audio/libxspf + +.include "../../textproc/expat/buildlink3.mk" +.include "../../textproc/uriparser/buildlink3.mk" +.endif # LIBSPIFF_BUILDLINK3_MK + +BUILDLINK_TREE+= -libspiff diff --git a/audio/libxspf/distinfo b/audio/libxspf/distinfo new file mode 100644 index 00000000000..5e81ef89115 --- /dev/null +++ b/audio/libxspf/distinfo @@ -0,0 +1,6 @@ +$NetBSD: distinfo,v 1.1 2013/10/03 11:15:39 drochner Exp $ + +SHA1 (libxspf-1.2.0.tar.bz2) = 23bbc0573636928210f42699029941dd06b20a1d +RMD160 (libxspf-1.2.0.tar.bz2) = 64f14c6e419c97826ad729ed46651a86061e6964 +Size (libxspf-1.2.0.tar.bz2) = 372483 bytes +SHA1 (patch-aa) = 16f441fd7662395244feae0bebf03497c1bba0ed diff --git a/audio/libxspf/patches/patch-aa b/audio/libxspf/patches/patch-aa new file mode 100644 index 00000000000..3c5467b272f --- /dev/null +++ b/audio/libxspf/patches/patch-aa @@ -0,0 +1,14 @@ +$NetBSD: patch-aa,v 1.1 2013/10/03 11:15:39 drochner Exp $ + +--- examples/read/read.cpp.orig 2009-03-11 15:29:44 +0200 ++++ examples/read/read.cpp 2009-03-11 15:35:35 +0200 +@@ -56,6 +56,9 @@ + # define PORT_GETCWD _getcwd + # endif + #else ++extern "C" { ++#include <unistd.h> ++} + # define PORT_PATH_MAX PATH_MAX + # define DIR_SEPERATOR '/' + # define uriFilenameToUriString uriUnixFilenameToUriStringA |