summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJeremy Huddleston <eradicator@gentoo.org>2004-07-10 06:45:39 +0000
committerJeremy Huddleston <eradicator@gentoo.org>2004-07-10 06:45:39 +0000
commit6a872d2c1220813bc0dee2d2a6835afb99ee23f1 (patch)
tree348b5ff10a8979a34b39ae0eea7ba63bbb0c66cf /media-plugins/xmms-wma
parentnow that i've tested it a bit locally, i'm committing a -* masked ebuild with... (diff)
downloadhistorical-6a872d2c1220813bc0dee2d2a6835afb99ee23f1.tar.gz
historical-6a872d2c1220813bc0dee2d2a6835afb99ee23f1.tar.bz2
historical-6a872d2c1220813bc0dee2d2a6835afb99ee23f1.zip
Initial ebuild submitted in bug #53035 by Makurin Roman <romka@kaluga.ru>. I modified it to use the installed ffmpeg libraries rather than the ones included.
Diffstat (limited to 'media-plugins/xmms-wma')
-rw-r--r--media-plugins/xmms-wma/ChangeLog12
-rw-r--r--media-plugins/xmms-wma/Manifest5
-rw-r--r--media-plugins/xmms-wma/files/digest-xmms-wma-1.0.31
-rw-r--r--media-plugins/xmms-wma/files/xmms-wma-1.0.3-ffmpeg.patch58
-rw-r--r--media-plugins/xmms-wma/metadata.xml5
-rw-r--r--media-plugins/xmms-wma/xmms-wma-1.0.3.ebuild38
6 files changed, 119 insertions, 0 deletions
diff --git a/media-plugins/xmms-wma/ChangeLog b/media-plugins/xmms-wma/ChangeLog
new file mode 100644
index 000000000000..fc5ac830aa5e
--- /dev/null
+++ b/media-plugins/xmms-wma/ChangeLog
@@ -0,0 +1,12 @@
+# ChangeLog for media-plugins/xmms-wma
+# Copyright 1999-2004 Gentoo Foundation; Distributed under the GPL v2
+# $Header: /var/cvsroot/gentoo-x86/media-plugins/xmms-wma/ChangeLog,v 1.1 2004/07/10 06:45:39 eradicator Exp $
+
+*xmms-wma-1.0.3 (09 Jul 2004)
+
+ 09 Jul 2004; Jeremy Huddleston <eradicator@gentoo.org> +metadata.xml,
+ +files/xmms-wma-1.0.3-ffmpeg.patch, +xmms-wma-1.0.3.ebuild:
+ Initial ebuild submitted in bug #53035 by Makurin Roman <romka@kaluga.ru>. I
+ modified it to use the installed ffmpeg libraries rather than the ones
+ included.
+
diff --git a/media-plugins/xmms-wma/Manifest b/media-plugins/xmms-wma/Manifest
new file mode 100644
index 000000000000..bc5188c29441
--- /dev/null
+++ b/media-plugins/xmms-wma/Manifest
@@ -0,0 +1,5 @@
+MD5 202acd23f61ac50b29ce37283a067c36 xmms-wma-1.0.3.ebuild 841
+MD5 a1eaeb2ae801daeb712c90c060e922dc metadata.xml 158
+MD5 aed920b5f98dc22a7a73e6180a2e79cf ChangeLog 551
+MD5 5112ee033af33bd3c309514fe4c880da files/digest-xmms-wma-1.0.3 67
+MD5 c04c28fc4aea2b19bab6d5f04593dde6 files/xmms-wma-1.0.3-ffmpeg.patch 2348
diff --git a/media-plugins/xmms-wma/files/digest-xmms-wma-1.0.3 b/media-plugins/xmms-wma/files/digest-xmms-wma-1.0.3
new file mode 100644
index 000000000000..d9ca682c2875
--- /dev/null
+++ b/media-plugins/xmms-wma/files/digest-xmms-wma-1.0.3
@@ -0,0 +1 @@
+MD5 25cfcfb7deed581dea3aae3b153cc291 xmms-wma-1.0.3.tar.bz2 145752
diff --git a/media-plugins/xmms-wma/files/xmms-wma-1.0.3-ffmpeg.patch b/media-plugins/xmms-wma/files/xmms-wma-1.0.3-ffmpeg.patch
new file mode 100644
index 000000000000..00a35142b96c
--- /dev/null
+++ b/media-plugins/xmms-wma/files/xmms-wma-1.0.3-ffmpeg.patch
@@ -0,0 +1,58 @@
+diff -Naur xmms-wma-1.0.3.orig/Makefile xmms-wma-1.0.3/Makefile
+--- xmms-wma-1.0.3.orig/Makefile 2004-03-03 06:47:58.000000000 -0800
++++ xmms-wma-1.0.3/Makefile 2004-07-09 16:24:31.276059000 -0700
+@@ -11,7 +11,7 @@
+ export DEPS := $(SOURCES:%.c=$(DEPDIR)/%.d)
+
+ all:
+- @cd ffmpeg-strip-wma; make; cd ..
++# @cd ffmpeg-strip-wma; make; cd ..
+ @$(MAKE) --no-print-directory -f Makefile.inc
+ @strip $(PLUGIN_FILE)
+ @echo "The plug-in has been compiled. Run one of the following:"
+diff -Naur xmms-wma-1.0.3.orig/Makefile.inc xmms-wma-1.0.3/Makefile.inc
+--- xmms-wma-1.0.3.orig/Makefile.inc 2004-03-03 12:02:39.000000000 -0800
++++ xmms-wma-1.0.3/Makefile.inc 2004-07-09 16:31:44.366257000 -0700
+@@ -1,18 +1,20 @@
+ CC := gcc
+-CFLAGS := -O2 -ffast-math -fomit-frame-pointer
+-#CFLAGS := -Wall -g -O3
+-CFLAGS += -DHAVE_AV_CONFIG_H -I.. -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -D_GNU_SOURCE -DX86
+-CFLAGS += -I ffmpeg-strip-wma
+-CFLAGS += `xmms-config --cflags`
+-LIBS := `xmms-config --libs` -L ffmpeg-strip-wma -lffwma
++MYCFLAGS := $(CFLAGS) -fPIC
++#MYCFLAGS := -Wall -g -O3
++MYCFLAGS += -DHAVE_AV_CONFIG_H -I.. -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -D_GNU_SOURCE -fPIC
++#MYCFLAGS += -I ffmpeg-strip-wma
++MYCFLAGS += `xmms-config --cflags`
++MYCFLAGS += -I/usr/include/ffmpeg
++#LIBS := `xmms-config --libs` -L ffmpeg-strip-wma -lffwma
++LIBS := `xmms-config --libs` -lavcodec -lavformat
+
+ $(PLUGIN_FILE): $(OBJECTS)
+ $(CC) -o $@ $^ $(LIBS) -shared
+
+ $(OBJDIR)/%.o: %.c
+- $(CC) -c -o $@ $(CFLAGS) $<
++ $(CC) -c -o $@ $(MYCFLAGS) $<
+
+ $(DEPDIR)/%.d: %.c
+- $(CC) -MM $(CFLAGS) $< | sed "s/^$*\.o:/$(OBJDIR)\/$*\.o $(DEPDIR)\/$*\.d:/" > $@
++ $(CC) -MM $(MYCFLAGS) $< | sed "s/^$*\.o:/$(OBJDIR)\/$*\.o $(DEPDIR)\/$*\.d:/" > $@
+
+ -include $(DEPS)
+diff -Naur xmms-wma-1.0.3.orig/wma123_examples/Makefile xmms-wma-1.0.3/wma123_examples/Makefile
+--- xmms-wma-1.0.3.orig/wma123_examples/Makefile 2004-03-26 09:01:39.000000000 -0800
++++ xmms-wma-1.0.3/wma123_examples/Makefile 2004-07-09 16:25:08.197936000 -0700
+@@ -1,7 +1,7 @@
+-include ../ffmpeg-strip-wma/config.mak
++#include ../ffmpeg-strip-wma/config.mak
+
+-INC=-I../ffmpeg-strip-wma
+-LIB=-L../ffmpeg-strip-wma
++#INC=-I../ffmpeg-strip-wma
++#LIB=-L../ffmpeg-strip-wma
+ CFLAGS=$(OPTFLAGS) -DHAVE_AV_CONFIG_H -I.. -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -D_GNU_SOURCE
+
+ all: artswma alsawma osswma
diff --git a/media-plugins/xmms-wma/metadata.xml b/media-plugins/xmms-wma/metadata.xml
new file mode 100644
index 000000000000..e1774e3d9ad7
--- /dev/null
+++ b/media-plugins/xmms-wma/metadata.xml
@@ -0,0 +1,5 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+<herd>sound</herd>
+</pkgmetadata>
diff --git a/media-plugins/xmms-wma/xmms-wma-1.0.3.ebuild b/media-plugins/xmms-wma/xmms-wma-1.0.3.ebuild
new file mode 100644
index 000000000000..ef10a83fbabf
--- /dev/null
+++ b/media-plugins/xmms-wma/xmms-wma-1.0.3.ebuild
@@ -0,0 +1,38 @@
+# Copyright 1999-2004 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/media-plugins/xmms-wma/xmms-wma-1.0.3.ebuild,v 1.1 2004/07/10 06:45:39 eradicator Exp $
+
+IUSE=""
+
+inherit eutils
+
+DESCRIPTION="XMMS plugin to play wma"
+HOMEPAGE="http://mcmcc.bat.ru/xmms-wma/"
+SRC_URI="http://mcmcc.bat.ru/xmms-wma/${P}.tar.bz2"
+
+SLOT="0"
+LICENSE="GPL-2"
+
+#~amd64: 1.0.3: Plays a little staticy, x86 is clear... both with
+# media-video/ffmpeg-0.4.8.20040322-r1
+
+KEYWORDS="~x86 ~sparc ~amd64"
+
+DEPEND="media-sound/xmms
+ >=media-video/ffmpeg-0.4.8"
+
+src_unpack() {
+ unpack ${A}
+ cd ${S}
+ epatch ${FILESDIR}/${P}-ffmpeg.patch
+}
+
+src_compile () {
+ emake || die
+}
+
+src_install () {
+ exeinto `xmms-config --output-plugin-dir`
+ doexe libwma.so
+ dodoc readme.rus readme.eng
+}