[Midnightbsd-cvs] mports: mports/audio: Add libtunepimp, required for amarok
laffer1 at midnightbsd.org
laffer1 at midnightbsd.org
Sun Sep 7 15:51:12 EDT 2008
Log Message:
-----------
Add libtunepimp, required for amarok
Modified Files:
--------------
mports/audio:
Makefile (r1.64 -> r1.65)
Added Files:
-----------
mports/audio/libtunepimp:
Makefile (r1.1)
distinfo (r1.1)
pkg-descr (r1.1)
pkg-plist (r1.1)
mports/audio/libtunepimp/files:
patch-lib-metadata.cpp (r1.1)
patch-lib-utf8-utf8util.cpp (r1.1)
patch-plugins-flac-flac.cpp (r1.1)
patch-plugins-mp3-mp3.cpp (r1.1)
patch-plugins-mp4-mp4.cpp (r1.1)
patch-plugins-vorbis-vorbis.cpp (r1.1)
patch-plugins-wav-wav.cpp (r1.1)
-------------- next part --------------
Index: Makefile
===================================================================
RCS file: /home/cvs/mports/audio/Makefile,v
retrieving revision 1.64
retrieving revision 1.65
diff -L audio/Makefile -L audio/Makefile -u -r1.64 -r1.65
--- audio/Makefile
+++ audio/Makefile
@@ -53,6 +53,7 @@
SUBDIR += libogg
SUBDIR += libsamplerate
SUBDIR += libsndfile
+ SUBDIR += libtunepimp
SUBDIR += libvorbis
SUBDIR += linux-esound
SUBDIR += linux-libaudiofile
--- /dev/null
+++ audio/libtunepimp/pkg-descr
@@ -0,0 +1,9 @@
+Tunepimp is a client library for MusicBrainz
+
+MusicBrainz is the second generation incarnation of the CD Index.
+This server is designed to enable Audio CD and MP3/Vorbis players
+to download metadata about the music they are playing. All of the
+data collected on the Musicbrainz server is made available to the
+public under the OpenContent license.
+
+WWW: http://www.musicbrainz.org/
--- /dev/null
+++ audio/libtunepimp/pkg-plist
@@ -0,0 +1,28 @@
+bin/puid
+include/tunepimp-0.5/context.h
+include/tunepimp-0.5/decode_plugin.h
+include/tunepimp-0.5/defs.h
+include/tunepimp-0.5/fileio.h
+include/tunepimp-0.5/metadata.h
+include/tunepimp-0.5/metadata_plugin.h
+include/tunepimp-0.5/tp_c.h
+include/tunepimp-0.5/track.h
+include/tunepimp-0.5/tunepimp.h
+lib/libtunepimp.a
+lib/libtunepimp.la
+lib/libtunepimp.so
+lib/libtunepimp.so.5
+lib/tunepimp/plugins/flac.tpp
+lib/tunepimp/plugins/mp3.tpp
+lib/tunepimp/plugins/mp4.tpp
+lib/tunepimp/plugins/mpc.tpp
+lib/tunepimp/plugins/speex.tpp
+lib/tunepimp/plugins/tta.tpp
+lib/tunepimp/plugins/vorbis.tpp
+lib/tunepimp/plugins/wav.tpp
+lib/tunepimp/plugins/wma.tpp
+lib/tunepimp/plugins/wv.tpp
+ at dirrm lib/tunepimp/plugins
+ at dirrm lib/tunepimp
+ at dirrm include/tunepimp
+ at dirrm include/tunepimp-0.5
--- /dev/null
+++ audio/libtunepimp/Makefile
@@ -0,0 +1,51 @@
+# New ports collection makefile for: tunepimp
+# Date Created: 11 Aug 2004
+# Whom: Lauri Watts <lauri at kde.org>
+#
+# $MidnightBSD: mports/audio/libtunepimp/Makefile,v 1.1 2008/09/07 19:51:09 laffer1 Exp $
+# $FreeBSD: ports/audio/libtunepimp/Makefile,v 1.21 2008/06/20 15:41:49 tabthorpe Exp $
+#
+
+PORTNAME= libtunepimp
+PORTVERSION= 0.5.3
+PORTEPOCH= 1
+CATEGORIES= audio
+MASTER_SITES= http://ftp.musicbrainz.org/pub/musicbrainz/ \
+ ftp://ftp.au.musicbrainz.org/pub/musicbrainz/
+
+MAINTAINER= ports at MidnightBSD.org
+COMMENT= Client library for musicbrainz
+LICENSE= gpl2
+# allows us to use mp3 features
+
+LIB_DEPENDS= FLAC:${PORTSDIR}/audio/flac \
+ expat:${PORTSDIR}/textproc/expat2 \
+ mad:${PORTSDIR}/audio/libmad \
+ mp4v2:${PORTSDIR}/multimedia/mpeg4ip-libmp4v2 \
+ musicbrainz:${PORTSDIR}/audio/libmusicbrainz \
+ ogg:${PORTSDIR}/audio/libogg \
+ tag:${PORTSDIR}/audio/taglib \
+ vorbis:${PORTSDIR}/audio/libvorbis \
+ ofa:${PORTSDIR}/audio/libofa
+
+CONFLICTS= trm-0*
+USE_GMAKE= yes
+USE_GNOME= gnomehack gnometarget pkgconfig
+USE_AUTOTOOLS= libtool:15
+CONFIGURE_ENV= CPPFLAGS="-I${LOCALBASE}/include" \
+ LDFLAGS="-L${LOCALBASE}/lib -liconv"
+USE_LDCONFIG= yes
+
+post-patch:
+ @${REINPLACE_CMD} -e 's|^CFLAGS=|#CFLAGS=|g ; \
+ s|^CPPFLAGS=|#CPPFLAGS=|g' ${WRKSRC}/configure
+ @${REINPLACE_CMD} -e 's|-lthr|${PTHREAD_LIBS}|g' \
+ ${WRKSRC}/lib/threads/posix/Makefile.in
+
+post-configure:
+ @${REINPLACE_CMD} -e 's|\(^LDFLAGS =.*\)|\1 ${PTHREAD_LIBS} -liconv|g' \
+ ${WRKSRC}/examples/Makefile
+ @${REINPLACE_CMD} -e 's|plugins/wv|plugins/tta|' \
+ ${WRKSRC}/plugins/tta/Makefile
+
+.include <bsd.port.mk>
--- /dev/null
+++ audio/libtunepimp/distinfo
@@ -0,0 +1,3 @@
+MD5 (libtunepimp-0.5.3.tar.gz) = 09649f983acef679a548344ba7a9bb2f
+SHA256 (libtunepimp-0.5.3.tar.gz) = 341744a0be386387632fc4bb906b97d2b3346137beb2c776a41dedaeeb0f2468
+SIZE (libtunepimp-0.5.3.tar.gz) = 1097005
--- /dev/null
+++ audio/libtunepimp/files/patch-plugins-flac-flac.cpp
@@ -0,0 +1,13 @@
+--- plugins/flac/flac.cpp.orig Tue Jun 28 13:03:06 2005
++++ plugins/flac/flac.cpp Wed Sep 14 17:35:23 2005
+@@ -33,7 +33,10 @@
+ #ifdef WIN32
+ #include <winsock.h>
+ #else
++#include <sys/types.h>
++#include <sys/socket.h>
+ #include <netinet/in.h>
++#include <arpa/inet.h>
+ #include <sys/param.h>
+ #endif
+
--- /dev/null
+++ audio/libtunepimp/files/patch-plugins-mp4-mp4.cpp
@@ -0,0 +1,23 @@
+--- plugins/mp4/mp4.cpp.orig 2006-11-18 02:51:08.000000000 -0800
++++ plugins/mp4/mp4.cpp 2007-10-02 16:24:06.000000000 -0700
+@@ -231,9 +231,7 @@
+
+ strcpy(mdata->fileFormat, fileName + strlen(fileName) - 3);
+
+- if (!MP4Close(mp4file))
+- return 0;
+-
++ MP4Close(mp4file);
+ return 1;
+ }
+
+@@ -315,8 +313,7 @@
+ sprintf(temp, "%d", mdata->nonAlbum);
+ MP4SetMetadataFreeForm(mp4file, "MusicBrainz Non-Album", (u_int8_t *)temp, strlen(temp) + 1);
+
+- if (!MP4Close(mp4file))
+- return 0;
++ MP4Close(mp4file);
+
+ #ifndef WIN32
+ if (!MP4Optimize(utf8ToEncoding(fileName, encoding).c_str()))
--- /dev/null
+++ audio/libtunepimp/files/patch-plugins-mp3-mp3.cpp
@@ -0,0 +1,13 @@
+--- plugins/mp3/mp3.cpp.orig Tue Jul 12 06:44:06 2005
++++ plugins/mp3/mp3.cpp Wed Sep 14 17:32:42 2005
+@@ -33,7 +33,10 @@
+ #ifdef WIN32
+ #include <winsock.h>
+ #else
++#include <sys/types.h>
++#include <sys/socket.h>
+ #include <netinet/in.h>
++#include <arpa/inet.h>
+ #include <sys/param.h>
+ #endif
+
--- /dev/null
+++ audio/libtunepimp/files/patch-lib-metadata.cpp
@@ -0,0 +1,17 @@
+--- lib/metadata.cpp.orig Wed Nov 10 17:37:26 2004
++++ lib/metadata.cpp Wed Sep 14 17:25:59 2005
+@@ -34,6 +34,14 @@
+ #include "astrcmp.h"
+ }
+
++#ifndef min
++#define min(a,b) ((a) < (b) ? (a) : (b))
++#endif
++
++#ifndef max
++#define max(a,b) ((a) > (b) ? (a) : (b))
++#endif
++
+ const int numAlbumTypeStrings = 11;
+ const char *albumTypeStrings[] =
+ {
--- /dev/null
+++ audio/libtunepimp/files/patch-plugins-vorbis-vorbis.cpp
@@ -0,0 +1,13 @@
+--- plugins/vorbis/vorbis.cpp.orig Tue Jun 28 13:03:06 2005
++++ plugins/vorbis/vorbis.cpp Wed Sep 14 17:34:12 2005
+@@ -33,7 +33,10 @@
+ #ifdef WIN32
+ #include <winsock.h>
+ #else
++#include <sys/types.h>
++#include <sys/socket.h>
+ #include <netinet/in.h>
++#include <arpa/inet.h>
+ #include <sys/param.h>
+ #endif
+
--- /dev/null
+++ audio/libtunepimp/files/patch-lib-utf8-utf8util.cpp
@@ -0,0 +1,20 @@
+--- lib/utf8/utf8util.cpp.orig Mon Jul 11 05:01:23 2005
++++ lib/utf8/utf8util.cpp Wed Sep 14 17:19:42 2005
+@@ -38,7 +38,7 @@
+ char *dest;
+ string to;
+
+- to.clear();
++ to = "";
+ ret = utf8_encode(from.c_str(), &dest);
+ if (ret >= 0)
+ {
+@@ -54,7 +54,7 @@
+ char *dest;
+ string to;
+
+- to.clear();
++ to = "";
+ ret = utf8_decode(from.c_str(), &dest);
+ if (ret >= 0)
+ {
--- /dev/null
+++ audio/libtunepimp/files/patch-plugins-wav-wav.cpp
@@ -0,0 +1,13 @@
+--- plugins/wav/wav.cpp.orig Wed Jun 15 06:15:18 2005
++++ plugins/wav/wav.cpp Wed Sep 14 17:30:30 2005
+@@ -34,7 +34,10 @@
+ #ifdef WIN32
+ #include <winsock.h>
+ #else
++#include <sys/types.h>
++#include <sys/socket.h>
+ #include <netinet/in.h>
++#include <arpa/inet.h>
+ #include <sys/param.h>
+ #endif
+
\ No newline at end of file
More information about the Midnightbsd-cvs
mailing list