summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTony Vroon <chainsaw@gentoo.org>2004-11-10 18:56:54 +0000
committerTony Vroon <chainsaw@gentoo.org>2004-11-10 18:56:54 +0000
commit9eed55f0a00f5b7cf9873d50b58c2836293fd0fb (patch)
tree2cfb18243d3584d4cfbb65393a39ab711bec93ea /media-libs/libmodplug
parentVersion bump. Added src_test. (diff)
downloadhistorical-9eed55f0a00f5b7cf9873d50b58c2836293fd0fb.tar.gz
historical-9eed55f0a00f5b7cf9873d50b58c2836293fd0fb.tar.bz2
historical-9eed55f0a00f5b7cf9873d50b58c2836293fd0fb.zip
Ebuild submitted by Bruce Guenter <bruceg@em.ca>; bug #70470 not fully done yet.
Diffstat (limited to 'media-libs/libmodplug')
-rw-r--r--media-libs/libmodplug/ChangeLog9
-rw-r--r--media-libs/libmodplug/Manifest5
-rw-r--r--media-libs/libmodplug/files/digest-libmodplug-0.71
-rw-r--r--media-libs/libmodplug/files/libmodplug-0.7-amd64.patch73
-rw-r--r--media-libs/libmodplug/libmodplug-0.7.ebuild34
-rw-r--r--media-libs/libmodplug/metadata.xml9
6 files changed, 131 insertions, 0 deletions
diff --git a/media-libs/libmodplug/ChangeLog b/media-libs/libmodplug/ChangeLog
new file mode 100644
index 000000000000..4fb5b36ae4e0
--- /dev/null
+++ b/media-libs/libmodplug/ChangeLog
@@ -0,0 +1,9 @@
+# ChangeLog for media-libs/libmodplug
+# Copyright 1999-2004 Gentoo Foundation; Distributed under the GPL v2
+# $Header: /var/cvsroot/gentoo-x86/media-libs/libmodplug/ChangeLog,v 1.1 2004/11/10 18:56:54 chainsaw Exp $
+
+*libmodplug-0.7 (10 Nov 2004)
+
+ 10 Nov 2004; Tony Vroon <chainsaw@gentoo.org> +libmodplug-0.7.ebuild:
+ Initial import, ebuild submitted by Bruce Guenter <bruceg@em.ca> in bug #70470.
+
diff --git a/media-libs/libmodplug/Manifest b/media-libs/libmodplug/Manifest
new file mode 100644
index 000000000000..d11cbfaebdd0
--- /dev/null
+++ b/media-libs/libmodplug/Manifest
@@ -0,0 +1,5 @@
+MD5 8bfe1d13c7e4054f7ba89bfd40a9f3fc libmodplug-0.7.ebuild 767
+MD5 89129249f063882efb4a824a917ab4a2 ChangeLog 403
+MD5 319fe8f45b51a2d31f8d4e9a4071ca10 metadata.xml 248
+MD5 5009236d8b451fecef858961aed24428 files/digest-libmodplug-0.7 66
+MD5 b10f6248932b7fd4ce0df1a025df6e8a files/libmodplug-0.7-amd64.patch 1550
diff --git a/media-libs/libmodplug/files/digest-libmodplug-0.7 b/media-libs/libmodplug/files/digest-libmodplug-0.7
new file mode 100644
index 000000000000..f286cc0519d4
--- /dev/null
+++ b/media-libs/libmodplug/files/digest-libmodplug-0.7
@@ -0,0 +1 @@
+MD5 b6e7412f90cdd4a27a2dd3de94909905 libmodplug-0.7.tar.gz 329398
diff --git a/media-libs/libmodplug/files/libmodplug-0.7-amd64.patch b/media-libs/libmodplug/files/libmodplug-0.7-amd64.patch
new file mode 100644
index 000000000000..9584268c3b3b
--- /dev/null
+++ b/media-libs/libmodplug/files/libmodplug-0.7-amd64.patch
@@ -0,0 +1,73 @@
+--- stdafx.h
++++ stdafx.h
+23a24,91
+> #elif defined(__x86_64__)
+>
+> #include <stdlib.h>
+> #include <stdio.h>
+> #include <string.h>
+>
+> typedef signed char CHAR;
+> typedef unsigned char UCHAR;
+> typedef unsigned char* PUCHAR;
+> typedef unsigned short USHORT;
+> typedef unsigned int ULONG;
+> typedef unsigned int UINT;
+> typedef unsigned int DWORD;
+> typedef int LONG;
+> typedef unsigned short WORD;
+> typedef unsigned char BYTE;
+> typedef unsigned char * LPBYTE;
+> typedef bool BOOL;
+> typedef char * LPSTR;
+> typedef void * LPVOID;
+> typedef int * LPLONG;
+> typedef unsigned int * LPDWORD;
+> typedef unsigned short * LPWORD;
+> typedef const char * LPCSTR;
+> typedef long LONGLONG;
+> typedef void * PVOID;
+> typedef void VOID;
+>
+> inline LONG MulDiv (int a, int b, int c)
+> {
+> // if (!c) return 0;
+> return ((unsigned long)a * (unsigned long) b ) / c;
+> }
+>
+> #define MODPLUG_NO_FILESAVE
+> #define NO_AGC
+> #define LPCTSTR LPCSTR
+> #define lstrcpyn strncpy
+> #define lstrcpy strcpy
+> #define lstrcmp strcmp
+> #define WAVE_FORMAT_PCM 1
+> //#define ENABLE_EQ
+>
+> #define GHND 0
+>
+> inline signed char * GlobalAllocPtr(unsigned int, size_t size)
+> {
+> signed char * p = (signed char *) malloc(size);
+>
+> if (p != NULL) memset(p, 0, size);
+> return p;
+> }
+>
+> inline void ProcessPlugins(int n) {}
+>
+> #define GlobalFreePtr(p) free((void *)(p))
+>
+> #define strnicmp(a,b,c) strncasecmp(a,b,c)
+> #define wsprintf sprintf
+>
+> #ifndef FALSE
+> #define FALSE false
+> #endif
+>
+> #ifndef TRUE
+> #define TRUE true
+> #endif
+>
+52d119
+<
diff --git a/media-libs/libmodplug/libmodplug-0.7.ebuild b/media-libs/libmodplug/libmodplug-0.7.ebuild
new file mode 100644
index 000000000000..9b5db009ac02
--- /dev/null
+++ b/media-libs/libmodplug/libmodplug-0.7.ebuild
@@ -0,0 +1,34 @@
+# Copyright 1999-2004 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/media-libs/libmodplug/libmodplug-0.7.ebuild,v 1.1 2004/11/10 18:56:54 chainsaw Exp $
+
+inherit eutils
+
+IUSE=""
+
+DESCRIPTION="Library for playing MOD-like music files"
+SRC_URI="mirror://sourceforge/modplug-xmms/${P}.tar.gz"
+HOMEPAGE="http://modplug-xmms.sourceforge.net/"
+
+SLOT="0"
+LICENSE="GPL-2"
+KEYWORDS="~x86 ~amd64"
+
+DEPEND=""
+
+src_unpack() {
+ unpack ${A}
+
+ cd ${S}/src/libmodplug
+ epatch ${FILESDIR}/${P}-amd64.patch
+}
+
+src_compile() {
+ econf || die "could not configure"
+ emake LDFLAGS="$LDFLAGS -L${D}/usr/lib/" || die "emake failed"
+}
+
+src_install () {
+ einstall
+ dodoc AUTHORS COPYING ChangeLog INSTALL README TODO
+}
diff --git a/media-libs/libmodplug/metadata.xml b/media-libs/libmodplug/metadata.xml
new file mode 100644
index 000000000000..a025c77c7636
--- /dev/null
+++ b/media-libs/libmodplug/metadata.xml
@@ -0,0 +1,9 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+<herd>sound</herd>
+<maintainer>
+ <email>chainsaw@gentoo.org</email>
+ <name>Tony Vroon</name>
+</maintainer>
+</pkgmetadata>