diff options
-rw-r--r-- | media-plugins/xmms-nsf/ChangeLog | 11 | ||||
-rw-r--r-- | media-plugins/xmms-nsf/files/digest-xmms-nsf-0.0.3 | 2 | ||||
-rw-r--r-- | media-plugins/xmms-nsf/files/digest-xmms-nsf-0.0.3-r1 | 2 | ||||
-rw-r--r-- | media-plugins/xmms-nsf/files/digest-xmms-nsf-0.0.3-r2 | 3 | ||||
-rw-r--r-- | media-plugins/xmms-nsf/files/xmms-nsf-0.0.3-compilefixes.patch | 518 | ||||
-rw-r--r-- | media-plugins/xmms-nsf/xmms-nsf-0.0.3-r2.ebuild | 38 |
6 files changed, 572 insertions, 2 deletions
diff --git a/media-plugins/xmms-nsf/ChangeLog b/media-plugins/xmms-nsf/ChangeLog index 73ba4fb5748f..62cd07f50786 100644 --- a/media-plugins/xmms-nsf/ChangeLog +++ b/media-plugins/xmms-nsf/ChangeLog @@ -1,6 +1,13 @@ # ChangeLog for media-plugins/xmms-nsf -# Copyright 2002-2005 Gentoo Foundation; Distributed under the GPL v2 -# $Header: /var/cvsroot/gentoo-x86/media-plugins/xmms-nsf/ChangeLog,v 1.14 2005/11/09 03:25:02 metalgod Exp $ +# Copyright 2002-2006 Gentoo Foundation; Distributed under the GPL v2 +# $Header: /var/cvsroot/gentoo-x86/media-plugins/xmms-nsf/ChangeLog,v 1.15 2006/06/12 00:40:38 metalgod Exp $ + +*xmms-nsf-0.0.3-r2 (12 Jun 2006) + + 12 Jun 2006; Luis Medinas <metalgod@gentoo.org> + +files/xmms-nsf-0.0.3-compilefixes.patch, +xmms-nsf-0.0.3-r2.ebuild: + Added a new patch to support compile fixes for gcc 3 and gcc4. Fixes for + gcc4 were made by Miguel Marte <miguelmarte@gmail.com> on bug #136358. *xmms-nsf-0.0.3-r1 (09 Nov 2005) diff --git a/media-plugins/xmms-nsf/files/digest-xmms-nsf-0.0.3 b/media-plugins/xmms-nsf/files/digest-xmms-nsf-0.0.3 index d462c5281aa9..6788cdad34a0 100644 --- a/media-plugins/xmms-nsf/files/digest-xmms-nsf-0.0.3 +++ b/media-plugins/xmms-nsf/files/digest-xmms-nsf-0.0.3 @@ -1 +1,3 @@ MD5 45c55a17d81cd82d36d59bdb231777df xmms-nsf-0.0.3.tar.gz 185683 +RMD160 d7d70b55a9bcf4f36014bcf396f9b1e66855a448 xmms-nsf-0.0.3.tar.gz 185683 +SHA256 43480b65b7ccd64396248404ccc54b62eb8cb21949f240a6d45d3a6cc1d352cd xmms-nsf-0.0.3.tar.gz 185683 diff --git a/media-plugins/xmms-nsf/files/digest-xmms-nsf-0.0.3-r1 b/media-plugins/xmms-nsf/files/digest-xmms-nsf-0.0.3-r1 index d462c5281aa9..6788cdad34a0 100644 --- a/media-plugins/xmms-nsf/files/digest-xmms-nsf-0.0.3-r1 +++ b/media-plugins/xmms-nsf/files/digest-xmms-nsf-0.0.3-r1 @@ -1 +1,3 @@ MD5 45c55a17d81cd82d36d59bdb231777df xmms-nsf-0.0.3.tar.gz 185683 +RMD160 d7d70b55a9bcf4f36014bcf396f9b1e66855a448 xmms-nsf-0.0.3.tar.gz 185683 +SHA256 43480b65b7ccd64396248404ccc54b62eb8cb21949f240a6d45d3a6cc1d352cd xmms-nsf-0.0.3.tar.gz 185683 diff --git a/media-plugins/xmms-nsf/files/digest-xmms-nsf-0.0.3-r2 b/media-plugins/xmms-nsf/files/digest-xmms-nsf-0.0.3-r2 new file mode 100644 index 000000000000..6788cdad34a0 --- /dev/null +++ b/media-plugins/xmms-nsf/files/digest-xmms-nsf-0.0.3-r2 @@ -0,0 +1,3 @@ +MD5 45c55a17d81cd82d36d59bdb231777df xmms-nsf-0.0.3.tar.gz 185683 +RMD160 d7d70b55a9bcf4f36014bcf396f9b1e66855a448 xmms-nsf-0.0.3.tar.gz 185683 +SHA256 43480b65b7ccd64396248404ccc54b62eb8cb21949f240a6d45d3a6cc1d352cd xmms-nsf-0.0.3.tar.gz 185683 diff --git a/media-plugins/xmms-nsf/files/xmms-nsf-0.0.3-compilefixes.patch b/media-plugins/xmms-nsf/files/xmms-nsf-0.0.3-compilefixes.patch new file mode 100644 index 000000000000..b4956f84a7d9 --- /dev/null +++ b/media-plugins/xmms-nsf/files/xmms-nsf-0.0.3-compilefixes.patch @@ -0,0 +1,518 @@ +diff -ur xmms-nsf-0.0.3/src/nes/handler.c xmms-nsf-0.0.3-gentoo/src/nes/handler.c +--- xmms-nsf-0.0.3/src/nes/handler.c 2001-01-07 17:17:57.000000000 +1300 ++++ xmms-nsf-0.0.3-gentoo/src/nes/handler.c 2003-10-12 19:56:48.000000000 +1300 +@@ -10,9 +10,9 @@ + static NES_READ_HANDLER *(nprh[0x10]) = { 0, }; + static NES_WRITE_HANDLER *(npwh[0x10]) = { 0, }; + #define EXTREADWRITE(p) \ +-static Uint __fastcall ExtRd##p##(Uint A) \ ++static Uint __fastcall ExtRd##p (Uint A) \ + { \ +- NES_READ_HANDLER *ph = nprh[0x##p##]; \ ++ NES_READ_HANDLER *ph = nprh[0x##p ]; \ + do \ + { \ + if (ph->min <= A && A <= ph->max) \ +@@ -22,9 +22,9 @@ + } while ((ph = ph->next) != 0); \ + return 0; \ + } \ +-static void __fastcall ExtWr##p##(Uint A, Uint V) \ ++static void __fastcall ExtWr##p (Uint A, Uint V) \ + { \ +- NES_WRITE_HANDLER *ph = npwh[0x##p##]; \ ++ NES_WRITE_HANDLER *ph = npwh[0x##p ]; \ + do \ + { \ + if (ph->min <= A && A <= ph->max) \ +diff -ur xmms-nsf-0.0.3/src/nes/km6502/km6502cd.h xmms-nsf-0.0.3-gentoo/src/nes/km6502/km6502cd.h +--- xmms-nsf-0.0.3/src/nes/km6502/km6502cd.h 2001-01-07 17:18:05.000000000 +1300 ++++ xmms-nsf-0.0.3-gentoo/src/nes/km6502/km6502cd.h 2003-10-12 20:07:08.000000000 +1300 +@@ -361,27 +361,27 @@ + + /* --- ADC --- */ + #if BUILD_HUC6280 +-#define DEF_ADC(i,p,a) static void OpcodeCall Opcode##i##(__CONTEXT) \ +-{ KMI_ADC(__THISP_ K_READ##p##(__THISP_ a(__THISP))); } \ +-static void OpcodeCall D_Opco##i##(__CONTEXT) \ +-{ KMI_ADC_D(__THISP_ K_READ##p##(__THISP_ a(__THISP))); } \ +-static void OpcodeCall T_Opco##i##(__CONTEXT) \ ++#define DEF_ADC(i,p,a) static void OpcodeCall Opcode##i (__CONTEXT) \ ++{ KMI_ADC(__THISP_ K_READ##p (__THISP_ a(__THISP))); } \ ++static void OpcodeCall D_Opco##i (__CONTEXT) \ ++{ KMI_ADC_D(__THISP_ K_READ##p (__THISP_ a(__THISP))); } \ ++static void OpcodeCall T_Opco##i (__CONTEXT) \ + { \ + Uword saveA = KMI_PRET(__THISP); \ +- KMI_ADC(__THISP_ K_READ##p##(__THISP_ a(__THISP))); \ ++ KMI_ADC(__THISP_ K_READ##p (__THISP_ a(__THISP))); \ + KMI_POSTT(__THISP_ saveA); \ + } \ +-static void OpcodeCall TD_Opc##i##(__CONTEXT) \ ++static void OpcodeCall TD_Opc##i (__CONTEXT) \ + { \ + Uword saveA = KMI_PRET(__THISP); \ +- KMI_ADC_D(__THISP_ K_READ##p##(__THISP_ a(__THISP))); \ ++ KMI_ADC_D(__THISP_ K_READ##p (__THISP_ a(__THISP))); \ + KMI_POSTT(__THISP_ saveA); \ + } + #else +-#define DEF_ADC(i,p,a) static void OpcodeCall Opcode##i##(__CONTEXT) \ +-{ KMI_ADC(__THISP_ K_READ##p##(__THISP_ a(__THISP))); } \ +-static void OpcodeCall D_Opco##i##(__CONTEXT) \ +-{ KMI_ADC_D(__THISP_ K_READ##p##(__THISP_ a(__THISP))); } ++#define DEF_ADC(i,p,a) static void OpcodeCall Opcode##i (__CONTEXT) \ ++{ KMI_ADC(__THISP_ K_READ##p (__THISP_ a(__THISP))); } \ ++static void OpcodeCall D_Opco##i (__CONTEXT) \ ++{ KMI_ADC_D(__THISP_ K_READ##p (__THISP_ a(__THISP))); } + #endif + DEF_ADC(61,NP,KA_INDX) /* 61 - ADC - (Indirect,X) */ + DEF_ADC(65,ZP,KA_ZP) /* 65 - ADC - Zero Page */ +@@ -397,17 +397,17 @@ + + /* --- AND --- */ + #if BUILD_HUC6280 +-#define DEF_AND(i,p,a) static void OpcodeCall Opcode##i##(__CONTEXT) \ +-{ KM_AND(__THISP_ K_READ##p##(__THISP_ a(__THISP))); } \ +-static void OpcodeCall T_Opco##i##(__CONTEXT) \ ++#define DEF_AND(i,p,a) static void OpcodeCall Opcode##i (__CONTEXT) \ ++{ KM_AND(__THISP_ K_READ##p (__THISP_ a(__THISP))); } \ ++static void OpcodeCall T_Opco##i (__CONTEXT) \ + { \ + Uword saveA = KMI_PRET(__THISP); \ +- KM_AND(__THISP_ K_READ##p##(__THISP_ a(__THISP))); \ ++ KM_AND(__THISP_ K_READ##p (__THISP_ a(__THISP))); \ + KMI_POSTT(__THISP_ saveA); \ + } + #else +-#define DEF_AND(i,p,a) static void OpcodeCall Opcode##i##(__CONTEXT) \ +-{ KM_AND(__THISP_ K_READ##p##(__THISP_ a(__THISP))); } ++#define DEF_AND(i,p,a) static void OpcodeCall Opcode##i (__CONTEXT) \ ++{ KM_AND(__THISP_ K_READ##p (__THISP_ a(__THISP))); } + #endif + DEF_AND(21,NP,KA_INDX) /* 21 - AND - (Indirect,X) */ + DEF_AND(25,ZP,KA_ZP) /* 25 - AND - Zero Page */ +@@ -422,10 +422,10 @@ + #endif + + /* --- ASL --- */ +-#define DEF_ASL(i,p,a) static void OpcodeCall Opcode##i##(__CONTEXT) \ ++#define DEF_ASL(i,p,a) static void OpcodeCall Opcode##i (__CONTEXT) \ + { \ + Uword adr = a(__THISP); \ +- K_WRITE##p##(__THISP_ adr, KM_ASL(__THISP_ K_READ##p##(__THISP_ adr))); \ ++ K_WRITE##p (__THISP_ adr, KM_ASL(__THISP_ K_READ##p (__THISP_ adr))); \ + } + DEF_ASL(06,ZP,KA_ZP) /* 06 - ASL - Zero Page */ + DEF_ASL(0E,NP,KA_ABS) /* 0E - ASL - Absolute */ +@@ -436,7 +436,7 @@ + + #if BUILD_HUC6280 + /* --- BBRi --- */ +-#define DEF_BBR(i,y) static void OpcodeCall Opcode##i##(__CONTEXT) \ ++#define DEF_BBR(i,y) static void OpcodeCall Opcode##i (__CONTEXT) \ + { \ + Uword adr = KA_ZP(__THISP); \ + Uword rel = K_READ(__THISP_ KA_IMM(__THISP)); \ +@@ -451,7 +451,7 @@ + DEF_BBR(6F,6) /* 6F - BBR6 */ + DEF_BBR(7F,7) /* 7F - BBR7 */ + /* --- BBSi --- */ +-#define DEF_BBS(i,y) static void OpcodeCall Opcode##i##(__CONTEXT) \ ++#define DEF_BBS(i,y) static void OpcodeCall Opcode##i (__CONTEXT) \ + { \ + Uword adr = KA_ZP(__THISP); \ + Uword rel = K_READ(__THISP_ KA_IMM(__THISP)); \ +@@ -468,8 +468,8 @@ + #endif + + /* --- BIT --- */ +-#define DEF_BIT(i,p,a) static void OpcodeCall Opcode##i##(__CONTEXT) \ +-{ KM_BIT(__THISP_ K_READ##p##(__THISP_ a(__THISP))); } ++#define DEF_BIT(i,p,a) static void OpcodeCall Opcode##i (__CONTEXT) \ ++{ KM_BIT(__THISP_ K_READ##p (__THISP_ a(__THISP))); } + DEF_BIT(24,ZP,KA_ZP) /* 24 - BIT - Zero Page */ + DEF_BIT(2C,NP,KA_ABS) /* 2C - BIT - Absolute */ + #if BUILD_HUC6280 || BUILD_M65C02 +@@ -479,7 +479,7 @@ + #endif + + /* --- Bcc --- */ +-#define DEF_BRA(i,a) static void OpcodeCall Opcode##i##(__CONTEXT) \ ++#define DEF_BRA(i,a) static void OpcodeCall Opcode##i (__CONTEXT) \ + { \ + Uword rel = K_READ(__THISP_ KA_IMM(__THISP)); \ + if (a) KM_BRA(__THISP_ rel); \ +@@ -536,8 +536,8 @@ + { __THIS__.P &= ~V_FLAG; } + + /* --- CMP --- */ +-#define DEF_CMP(i,p,a) static void OpcodeCall Opcode##i##(__CONTEXT) \ +-{ KM_CMP(__THISP_ K_READ##p##(__THISP_ a(__THISP))); } ++#define DEF_CMP(i,p,a) static void OpcodeCall Opcode##i (__CONTEXT) \ ++{ KM_CMP(__THISP_ K_READ##p (__THISP_ a(__THISP))); } + DEF_CMP(C1,NP,KA_INDX) /* C1 - CMP - (Indirect,X) */ + DEF_CMP(C5,ZP,KA_ZP) /* C5 - CMP - Zero Page */ + DEF_CMP(C9,NP,KA_IMM) /* C9 - CMP - Immediate */ +@@ -551,24 +551,24 @@ + #endif + + /* --- CPX --- */ +-#define DEF_CPX(i,p,a) static void OpcodeCall Opcode##i##(__CONTEXT) \ +-{ KM_CPX(__THISP_ K_READ##p##(__THISP_ a(__THISP))); } ++#define DEF_CPX(i,p,a) static void OpcodeCall Opcode##i (__CONTEXT) \ ++{ KM_CPX(__THISP_ K_READ##p (__THISP_ a(__THISP))); } + DEF_CPX(E0,NP,KA_IMM) /* E0 - CPX - Immediate */ + DEF_CPX(E4,ZP,KA_ZP) /* E4 - CPX - Zero Page */ + DEF_CPX(EC,NP,KA_ABS) /* EC - CPX - Absolute */ + + /* --- CPY --- */ +-#define DEF_CPY(i,p,a) static void OpcodeCall Opcode##i##(__CONTEXT) \ +-{ KM_CPY(__THISP_ K_READ##p##(__THISP_ a(__THISP))); } ++#define DEF_CPY(i,p,a) static void OpcodeCall Opcode##i (__CONTEXT) \ ++{ KM_CPY(__THISP_ K_READ##p (__THISP_ a(__THISP))); } + DEF_CPY(C0,NP,KA_IMM) /* C0 - CPY - Immediate */ + DEF_CPY(C4,ZP,KA_ZP) /* C4 - CPY - Zero Page */ + DEF_CPY(CC,NP,KA_ABS) /* CC - CPY - Absolute */ + + /* --- DEC --- */ +-#define DEF_DEC(i,p,a) static void OpcodeCall Opcode##i##(__CONTEXT) \ ++#define DEF_DEC(i,p,a) static void OpcodeCall Opcode##i (__CONTEXT) \ + { \ + Uword adr = a(__THISP); \ +- K_WRITE##p##(__THISP_ adr, KM_DEC(__THISP_ K_READ##p##(__THISP_ adr))); \ ++ K_WRITE##p (__THISP_ adr, KM_DEC(__THISP_ K_READ##p (__THISP_ adr))); \ + } + DEF_DEC(C6,ZP,KA_ZP) /* C6 - DEC - Zero Page */ + DEF_DEC(CE,NP,KA_ABS) /* CE - DEC - Absolute */ +@@ -585,17 +585,17 @@ + + /* --- EOR --- */ + #if BUILD_HUC6280 +-#define DEF_EOR(i,p,a) static void OpcodeCall Opcode##i##(__CONTEXT) \ +-{ KM_EOR(__THISP_ K_READ##p##(__THISP_ a(__THISP))); } \ +-static void OpcodeCall T_Opco##i##(__CONTEXT) \ ++#define DEF_EOR(i,p,a) static void OpcodeCall Opcode##i (__CONTEXT) \ ++{ KM_EOR(__THISP_ K_READ##p (__THISP_ a(__THISP))); } \ ++static void OpcodeCall T_Opco##i (__CONTEXT) \ + { \ + Uword saveA = KMI_PRET(__THISP); \ +- KM_EOR(__THISP_ K_READ##p##(__THISP_ a(__THISP))); \ ++ KM_EOR(__THISP_ K_READ##p (__THISP_ a(__THISP))); \ + KMI_POSTT(__THISP_ saveA); \ + } + #else +-#define DEF_EOR(i,p,a) static void OpcodeCall Opcode##i##(__CONTEXT) \ +-{ KM_EOR(__THISP_ K_READ##p##(__THISP_ a(__THISP))); } ++#define DEF_EOR(i,p,a) static void OpcodeCall Opcode##i (__CONTEXT) \ ++{ KM_EOR(__THISP_ K_READ##p (__THISP_ a(__THISP))); } + #endif + DEF_EOR(41,NP,KA_INDX) /* 41 - EOR - (Indirect,X) */ + DEF_EOR(45,ZP,KA_ZP) /* 45 - EOR - Zero Page */ +@@ -610,10 +610,10 @@ + #endif + + /* --- INC --- */ +-#define DEF_INC(i,p,a) static void OpcodeCall Opcode##i##(__CONTEXT) \ ++#define DEF_INC(i,p,a) static void OpcodeCall Opcode##i (__CONTEXT) \ + { \ + Uword adr = a(__THISP); \ +- K_WRITE##p##(__THISP_ adr, KM_INC(__THISP_ K_READ##p##(__THISP_ adr))); \ ++ K_WRITE##p (__THISP_ adr, KM_INC(__THISP_ K_READ##p (__THISP_ adr))); \ + } + DEF_INC(E6,ZP,KA_ZP) /* E6 - INC - Zero Page */ + DEF_INC(EE,NP,KA_ABS) /* EE - INC - Absolute */ +@@ -629,12 +629,12 @@ + { __THIS__.Y = KM_INC(__THISP_ __THIS__.Y); } + + /* --- JMP --- */ +-#define DEF_JMP(i,a) static void OpcodeCall Opcode##i##(__CONTEXT) \ ++#define DEF_JMP(i,a) static void OpcodeCall Opcode##i (__CONTEXT) \ + { __THIS__.PC = KI_READWORD(__THISP_ a(__THISP)); } + #if BUILD_HUC6280 || BUILD_M65C02 + #define DEF_JMPBUG(i,a) DEF_JMP(i,a) + #else +-#define DEF_JMPBUG(i,a) static void OpcodeCall Opcode##i##(__CONTEXT) \ ++#define DEF_JMPBUG(i,a) static void OpcodeCall Opcode##i (__CONTEXT) \ + { __THIS__.PC = KI_READWORDBUG(__THISP_ a(__THISP)); } + #endif + DEF_JMP(4C,KA_IMM16) /* 4C - JMP - Immediate */ +@@ -653,8 +653,8 @@ + } + + /* --- LDA --- */ +-#define DEF_LDA(i,p,a) static void OpcodeCall Opcode##i##(__CONTEXT) \ +-{ __THIS__.A = KM_LD(__THISP_ K_READ##p##(__THISP_ a(__THISP))); } ++#define DEF_LDA(i,p,a) static void OpcodeCall Opcode##i (__CONTEXT) \ ++{ __THIS__.A = KM_LD(__THISP_ K_READ##p (__THISP_ a(__THISP))); } + DEF_LDA(A1,NP,KA_INDX) /* A1 - LDA - (Indirect,X) */ + DEF_LDA(A5,ZP,KA_ZP) /* A5 - LDA - Zero Page */ + DEF_LDA(A9,NP,KA_IMM) /* A9 - LDA - Immediate */ +@@ -668,8 +668,8 @@ + #endif + + /* --- LDX --- */ +-#define DEF_LDX(i,p,a) static void OpcodeCall Opcode##i##(__CONTEXT) \ +-{ __THIS__.X = KM_LD(__THISP_ K_READ##p##(__THISP_ a(__THISP))); } ++#define DEF_LDX(i,p,a) static void OpcodeCall Opcode##i (__CONTEXT) \ ++{ __THIS__.X = KM_LD(__THISP_ K_READ##p (__THISP_ a(__THISP))); } + DEF_LDX(A2,NP,KA_IMM) /* A2 - LDX - Immediate */ + DEF_LDX(A6,ZP,KA_ZP) /* A6 - LDX - Zero Page */ + DEF_LDX(AE,NP,KA_ABS) /* AE - LDX - Absolute */ +@@ -677,8 +677,8 @@ + DEF_LDX(BE,NP,KA_ABSY_) /* BE - LDX - Absolute,Y */ + + /* --- LDY --- */ +-#define DEF_LDY(i,p,a) static void OpcodeCall Opcode##i##(__CONTEXT) \ +-{ __THIS__.Y = KM_LD(__THISP_ K_READ##p##(__THISP_ a(__THISP))); } ++#define DEF_LDY(i,p,a) static void OpcodeCall Opcode##i (__CONTEXT) \ ++{ __THIS__.Y = KM_LD(__THISP_ K_READ##p (__THISP_ a(__THISP))); } + DEF_LDY(A0,NP,KA_IMM) /* A0 - LDY - Immediate */ + DEF_LDY(A4,ZP,KA_ZP) /* A4 - LDY - Zero Page */ + DEF_LDY(AC,NP,KA_ABS) /* AC - LDY - Absolute */ +@@ -686,10 +686,10 @@ + DEF_LDY(BC,NP,KA_ABSX_) /* BC - LDY - Absolute,X */ + + /* --- LSR --- */ +-#define DEF_LSR(i,p,a) static void OpcodeCall Opcode##i##(__CONTEXT) \ ++#define DEF_LSR(i,p,a) static void OpcodeCall Opcode##i (__CONTEXT) \ + { \ + Uword adr = a(__THISP); \ +- K_WRITE##p##(__THISP_ adr, KM_LSR(__THISP_ K_READ##p##(__THISP_ adr))); \ ++ K_WRITE##p (__THISP_ adr, KM_LSR(__THISP_ K_READ##p (__THISP_ adr))); \ + } + DEF_LSR(46,ZP,KA_ZP) /* 46 - LSR - Zero Page */ + DEF_LSR(4E,NP,KA_ABS) /* 4E - LSR - Absolute */ +@@ -705,17 +705,17 @@ + + /* --- ORA --- */ + #if BUILD_HUC6280 +-#define DEF_ORA(i,p,a) static void OpcodeCall Opcode##i##(__CONTEXT) \ +-{ KM_ORA(__THISP_ K_READ##p##(__THISP_ a(__THISP))); } \ +-static void OpcodeCall T_Opco##i##(__CONTEXT) \ ++#define DEF_ORA(i,p,a) static void OpcodeCall Opcode##i (__CONTEXT) \ ++{ KM_ORA(__THISP_ K_READ##p (__THISP_ a(__THISP))); } \ ++static void OpcodeCall T_Opco##i (__CONTEXT) \ + { \ + Uword saveA = KMI_PRET(__THISP); \ +- KM_ORA(__THISP_ K_READ##p##(__THISP_ a(__THISP))); \ ++ KM_ORA(__THISP_ K_READ##p (__THISP_ a(__THISP))); \ + KMI_POSTT(__THISP_ saveA); \ + } + #else +-#define DEF_ORA(i,p,a) static void OpcodeCall Opcode##i##(__CONTEXT) \ +-{ KM_ORA(__THISP_ K_READ##p##(__THISP_ a(__THISP))); } ++#define DEF_ORA(i,p,a) static void OpcodeCall Opcode##i (__CONTEXT) \ ++{ KM_ORA(__THISP_ K_READ##p (__THISP_ a(__THISP))); } + #endif + DEF_ORA(01,NP,KA_INDX) /* 01 - ORA - (Indirect,X) */ + DEF_ORA(05,ZP,KA_ZP) /* 05 - ORA - Zero Page */ +@@ -751,7 +751,7 @@ + + #if BUILD_HUC6280 + /* --- RMBi --- */ +-#define DEF_RMB(i,y) static void OpcodeCall Opcode##i##(__CONTEXT) \ ++#define DEF_RMB(i,y) static void OpcodeCall Opcode##i (__CONTEXT) \ + { \ + Uword adr = KA_ZP(__THISP); \ + K_WRITEZP(__THISP_ adr, (Uword)(K_READZP(__THISP_ adr) & (~(1 << y)))); \ +@@ -765,7 +765,7 @@ + DEF_RMB(67,6) /* 67 - RMB6 */ + DEF_RMB(77,7) /* 77 - RMB7 */ + /* --- SMBi --- */ +-#define DEF_SMB(i,y) static void OpcodeCall Opcode##i##(__CONTEXT) \ ++#define DEF_SMB(i,y) static void OpcodeCall Opcode##i (__CONTEXT) \ + { \ + Uword adr = KA_ZP(__THISP); \ + K_WRITEZP(__THISP_ adr, (Uword)(K_READZP(__THISP_ adr) | (1 << y))); \ +@@ -781,10 +781,10 @@ + #endif + + /* --- ROL --- */ +-#define DEF_ROL(i,p,a) static void OpcodeCall Opcode##i##(__CONTEXT) \ ++#define DEF_ROL(i,p,a) static void OpcodeCall Opcode##i (__CONTEXT) \ + { \ + Uword adr = a(__THISP); \ +- K_WRITE##p##(__THISP_ adr, KM_ROL(__THISP_ K_READ##p##(__THISP_ adr))); \ ++ K_WRITE##p (__THISP_ adr, KM_ROL(__THISP_ K_READ##p (__THISP_ adr))); \ + } + DEF_ROL(26,ZP,KA_ZP) /* 26 - ROL - Zero Page */ + DEF_ROL(2E,NP,KA_ABS) /* 2E - ROL - Absolute */ +@@ -794,10 +794,10 @@ + { __THIS__.A = KM_ROL(__THISP_ __THIS__.A); } + + /* --- ROR --- */ +-#define DEF_ROR(i,p,a) static void OpcodeCall Opcode##i##(__CONTEXT) \ ++#define DEF_ROR(i,p,a) static void OpcodeCall Opcode##i (__CONTEXT) \ + { \ + Uword adr = a(__THISP); \ +- K_WRITE##p##(__THISP_ adr, KM_ROR(__THISP_ K_READ##p##(__THISP_ adr))); \ ++ K_WRITE##p (__THISP_ adr, KM_ROR(__THISP_ K_READ##p (__THISP_ adr))); \ + } + DEF_ROR(66,ZP,KA_ZP) /* 66 - ROR - Zero Page */ + DEF_ROR(6E,NP,KA_ABS) /* 6E - ROR - Absolute */ +@@ -841,10 +841,10 @@ + #endif + + /* --- SBC --- */ +-#define DEF_SBC(i,p,a) static void OpcodeCall Opcode##i##(__CONTEXT) \ +-{ KMI_SBC(__THISP_ K_READ##p##(__THISP_ a(__THISP))); } \ +-static void OpcodeCall D_Opco##i##(__CONTEXT) \ +-{ KMI_SBC_D(__THISP_ K_READ##p##(__THISP_ a(__THISP))); } ++#define DEF_SBC(i,p,a) static void OpcodeCall Opcode##i (__CONTEXT) \ ++{ KMI_SBC(__THISP_ K_READ##p (__THISP_ a(__THISP))); } \ ++static void OpcodeCall D_Opco##i (__CONTEXT) \ ++{ KMI_SBC_D(__THISP_ K_READ##p (__THISP_ a(__THISP))); } + DEF_SBC(E1,NP,KA_INDX) /* E1 - SBC - (Indirect,X) */ + DEF_SBC(E5,ZP,KA_ZP) /* E5 - SBC - Zero Page */ + DEF_SBC(E9,NP,KA_IMM) /* E9 - SBC - Immediate */ +@@ -883,8 +883,8 @@ + #endif + + /* --- STA --- */ +-#define DEF_STA(i,p,a) static void OpcodeCall Opcode##i##(__CONTEXT) \ +-{ K_WRITE##p##(__THISP_ a(__THISP), __THIS__.A); } ++#define DEF_STA(i,p,a) static void OpcodeCall Opcode##i (__CONTEXT) \ ++{ K_WRITE##p (__THISP_ a(__THISP), __THIS__.A); } + DEF_STA(81,NP,KA_INDX) /* 81 - STA - (Indirect,X) */ + DEF_STA(85,ZP,KA_ZP) /* 85 - STA - Zero Page */ + DEF_STA(8D,NP,KA_ABS) /* 8D - STA - Absolute */ +@@ -897,23 +897,23 @@ + #endif + + /* --- STX --- */ +-#define DEF_STX(i,p,a) static void OpcodeCall Opcode##i##(__CONTEXT) \ +-{ K_WRITE##p##(__THISP_ a(__THISP), __THIS__.X); } ++#define DEF_STX(i,p,a) static void OpcodeCall Opcode##i (__CONTEXT) \ ++{ K_WRITE##p (__THISP_ a(__THISP), __THIS__.X); } + DEF_STX(86,ZP,KA_ZP) /* 86 - STX - Zero Page */ + DEF_STX(8E,NP,KA_ABS) /* 8E - STX - Absolute */ + DEF_STX(96,ZP,KA_ZPY) /* 96 - STX - Zero Page,Y */ + + /* --- STY --- */ +-#define DEF_STY(i,p,a) static void OpcodeCall Opcode##i##(__CONTEXT) \ +-{ K_WRITE##p##(__THISP_ a(__THISP), __THIS__.Y); } ++#define DEF_STY(i,p,a) static void OpcodeCall Opcode##i (__CONTEXT) \ ++{ K_WRITE##p (__THISP_ a(__THISP), __THIS__.Y); } + DEF_STY(84,ZP,KA_ZP) /* 84 - STY - Zero Page */ + DEF_STY(8C,NP,KA_ABS) /* 8C - STY - Absolute */ + DEF_STY(94,ZP,KA_ZPX) /* 94 - STY - Zero Page,X */ + + #if BUILD_HUC6280 || BUILD_M65C02 + /* --- STZ --- */ +-#define DEF_STZ(i,p,a) static void OpcodeCall Opcode##i##(__CONTEXT) \ +-{ K_WRITE##p##(__THISP_ a(__THISP), 0); } ++#define DEF_STZ(i,p,a) static void OpcodeCall Opcode##i (__CONTEXT) \ ++{ K_WRITE##p (__THISP_ a(__THISP), 0); } + DEF_STZ(64,ZP,KA_ZP) /* 64 - STZ - Zero Page */ + DEF_STZ(9C,NP,KA_ABS) /* 9C - STZ - Absolute */ + DEF_STZ(74,ZP,KA_ZPX) /* 74 - STZ - Zero Page,X */ +@@ -931,18 +931,18 @@ + + #if BUILD_HUC6280 || BUILD_M65C02 + /* --- TRB --- */ +-#define DEF_TRB(i,p,a) static void OpcodeCall Opcode##i##(__CONTEXT) \ ++#define DEF_TRB(i,p,a) static void OpcodeCall Opcode##i (__CONTEXT) \ + { \ + Uword adr = a(__THISP); \ +- K_WRITE##p##(__THISP_ adr, KM_TRB(__THISP_ K_READ##p##(__THISP_ adr))); \ ++ K_WRITE##p (__THISP_ adr, KM_TRB(__THISP_ K_READ##p (__THISP_ adr))); \ + } + DEF_TRB(14,ZP,KA_ZP) /* 14 - TRB - Zero Page */ + DEF_TRB(1C,NP,KA_ABS) /* 1C - TRB - Absolute */ + /* --- TSB --- */ +-#define DEF_TSB(i,p,a) static void OpcodeCall Opcode##i##(__CONTEXT) \ ++#define DEF_TSB(i,p,a) static void OpcodeCall Opcode##i (__CONTEXT) \ + { \ + Uword adr = a(__THISP); \ +- K_WRITE##p##(__THISP_ adr, KM_TSB(__THISP_ K_READ##p##(__THISP_ adr))); \ ++ K_WRITE##p (__THISP_ adr, KM_TSB(__THISP_ K_READ##p (__THISP_ adr))); \ + } + DEF_TSB(04,ZP,KA_ZP) /* 04 - TSB - Zero Page */ + DEF_TSB(0C,NP,KA_ABS) /* 0C - TSB - Absolute */ +@@ -950,10 +950,10 @@ + + #if BUILD_HUC6280 + /* --- TST --- */ +-#define DEF_TST(i,p,a) static void OpcodeCall Opcode##i##(__CONTEXT) \ ++#define DEF_TST(i,p,a) static void OpcodeCall Opcode##i (__CONTEXT) \ + { \ + Uword imm = K_READ(__THISP_ KA_IMM(__THISP)); \ +- KM_TST(__THISP_ imm, K_READ##p##(__THISP_ a(__THISP))); \ ++ KM_TST(__THISP_ imm, K_READ##p (__THISP_ a(__THISP))); \ + } + DEF_TST(83,ZP,KA_ZP) /* 83 - TST - Zero Page */ + DEF_TST(93,NP,KA_ABS) /* 93 - TST - Absolute */ +diff -ur xmms-nsf-0.0.3/src/nes/km6502/km6502ot.h xmms-nsf-0.0.3-gentoo/src/nes/km6502/km6502ot.h +--- xmms-nsf-0.0.3/src/nes/km6502/km6502ot.h 2001-01-07 17:18:05.000000000 +1300 ++++ xmms-nsf-0.0.3-gentoo/src/nes/km6502/km6502ot.h 2003-10-12 20:09:41.000000000 +1300 +@@ -1,35 +1,35 @@ + #define OPxx(i) + #define OP__(i) \ +- case 0x##i##: \ +- Opcode##i##(__THISP); \ ++ case 0x##i : \ ++ Opcode##i (__THISP); \ + break; + #define OP_d(i) \ +- case 0x##i##: \ ++ case 0x##i : \ + if (__THIS__.P & D_FLAG) \ +- D_Opco##i##(__THISP); \ ++ D_Opco##i (__THISP); \ + else \ +- Opcode##i##(__THISP); \ ++ Opcode##i (__THISP); \ + break; + #if BUILD_HUC6280 + #define OPtd(i) \ +- case 0x##i##: \ ++ case 0x##i : \ + if (__THIS__.P & T_FLAG) \ + if (__THIS__.P & D_FLAG) \ +- TD_Opc##i##(__THISP); \ ++ TD_Opc##i (__THISP); \ + else \ +- T_Opco##i##(__THISP); \ ++ T_Opco##i (__THISP); \ + else \ + if (__THIS__.P & D_FLAG) \ +- D_Opco##i##(__THISP); \ ++ D_Opco##i (__THISP); \ + else \ +- Opcode##i##(__THISP); \ ++ Opcode##i (__THISP); \ + break; + #define OPt_(i) \ +- case 0x##i##: \ ++ case 0x##i : \ + if (__THIS__.P & T_FLAG) \ +- T_Opco##i##(__THISP); \ ++ T_Opco##i (__THISP); \ + else \ +- Opcode##i##(__THISP); \ ++ Opcode##i (__THISP); \ + break; + #else + #define OPtd OP_d + +--- xmms-nsf-0.0.3/src/xmms/nsf.c.orig 2006-06-11 01:07:15.000000000 -0400 ++++ xmms-nsf-0.0.3/src/xmms/nsf.c 2006-06-11 01:00:28.000000000 -0400 +@@ -462,7 +462,7 @@ + } + if (bytes > 0){ + //read 1024byte = 512 sample * 2byte +- c = NESAudioRender(data, bytes/2); ++ c = NESAudioRender((Int16*)data, bytes/2); + if (c < 512) + count = 0; + else +@@ -529,7 +529,7 @@ + count = ftell(nsf_file->file); + fseek(nsf_file->file, 0, SEEK_SET); + +- (void*)buffer = g_malloc0(count); ++ buffer = (void*)g_malloc0(count); + for(i=0;i<count;i++){ + *(buffer+i) = fgetc(nsf_file->file); + } diff --git a/media-plugins/xmms-nsf/xmms-nsf-0.0.3-r2.ebuild b/media-plugins/xmms-nsf/xmms-nsf-0.0.3-r2.ebuild new file mode 100644 index 000000000000..155827f0767b --- /dev/null +++ b/media-plugins/xmms-nsf/xmms-nsf-0.0.3-r2.ebuild @@ -0,0 +1,38 @@ +# Copyright 1999-2006 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/media-plugins/xmms-nsf/xmms-nsf-0.0.3-r2.ebuild,v 1.1 2006/06/12 00:40:38 metalgod Exp $ + +inherit eutils gnuconfig autotools libtool + +IUSE="" + +DESCRIPTION="An xmms input-plugin for NSF-files (the nintendo 8-bit soundfiles) that uses source from NEZamp." +HOMEPAGE="http://www.xmms.org/" +SRC_URI="http://optronic.sourceforge.net/files/${P}.tar.gz" + +LICENSE="GPL-2" +SLOT="0" +#-sparc: 0.0.3: Plays, but not completely... misses notes +KEYWORDS="~x86 -sparc ~amd64 -ppc" + +DEPEND="media-sound/xmms + =x11-libs/gtk+-1.2*" + +src_unpack() { + unpack ${A} + cd ${S} + epatch ${FILESDIR}/${P}-about.patch + epatch ${FILESDIR}/${P}-PIC.patch + epatch ${FILESDIR}/${P}-compilefixes.patch + + gnuconfig_update + + export WANT_AUTOMAKE=1.4 + eautomake + elibtoolize +} + +src_install() { + make DESTDIR=${D} install || die + dodoc AUTHORS ChangeLog NEWS README +} |