diff options
author | Karl Trygve Kalleberg <karltk@gentoo.org> | 2004-03-11 12:13:27 +0000 |
---|---|---|
committer | Karl Trygve Kalleberg <karltk@gentoo.org> | 2004-03-11 12:13:27 +0000 |
commit | 64f07cd3d6571b5bf08749cf5598e961c95bb3fc (patch) | |
tree | be83254b973b85f412f862520d1d360f3137fce0 /media-sound | |
parent | Added to ~ppc (diff) | |
download | historical-64f07cd3d6571b5bf08749cf5598e961c95bb3fc.tar.gz historical-64f07cd3d6571b5bf08749cf5598e961c95bb3fc.tar.bz2 historical-64f07cd3d6571b5bf08749cf5598e961c95bb3fc.zip |
Fixes gcc 3.3 compilation errors.
Diffstat (limited to 'media-sound')
-rw-r--r-- | media-sound/xmp/ChangeLog | 7 | ||||
-rw-r--r-- | media-sound/xmp/Manifest | 7 | ||||
-rw-r--r-- | media-sound/xmp/files/digest-xmp-2.0.5_pre3-r1 | 1 | ||||
-rw-r--r-- | media-sound/xmp/files/xmp-2.0.5_pre3-gcc3.3.diff | 62 | ||||
-rw-r--r-- | media-sound/xmp/xmp-2.0.5_pre3-r1.ebuild | 67 |
5 files changed, 141 insertions, 3 deletions
diff --git a/media-sound/xmp/ChangeLog b/media-sound/xmp/ChangeLog index 948f94380a77..aa098ef0d38e 100644 --- a/media-sound/xmp/ChangeLog +++ b/media-sound/xmp/ChangeLog @@ -1,6 +1,11 @@ # ChangeLog for media-sound/xmp # Copyright 2002-2003 Gentoo Technologies, Inc.; Distributed under the GPL v2 -# $Header: /var/cvsroot/gentoo-x86/media-sound/xmp/ChangeLog,v 1.3 2003/02/12 07:35:40 vapier Exp $ +# $Header: /var/cvsroot/gentoo-x86/media-sound/xmp/ChangeLog,v 1.4 2004/03/11 12:13:27 karltk Exp $ + +*xmp-2.0.5_pre3-r1 (11 Mar 2004) + + 11 Mar 2004; Karl Trygve Kalleberg <karltk@gentoo.org> xmp-2.0.5_pre3-r1.ebuild: + Fixes gcc 3.3 compilation errors. *xmp-2.0.5_pre3 (17 Jun 2002) diff --git a/media-sound/xmp/Manifest b/media-sound/xmp/Manifest index b2fcfcdce750..d95b2a41dcdd 100644 --- a/media-sound/xmp/Manifest +++ b/media-sound/xmp/Manifest @@ -1,4 +1,7 @@ -MD5 f7e91392081336808f7322c7d0939f50 xmp-2.0.5_pre3.ebuild 1441 -MD5 9a69f27036b9bcbb8863954cd92fb77e ChangeLog 521 +MD5 4e60ad0aed5158735312b7b160c4b0f2 ChangeLog 675 +MD5 2bf46ccb30c3930d8b8cc51ed5c57530 xmp-2.0.5_pre3.ebuild 1443 +MD5 280351871a54b7f43c2a3811502808b5 xmp-2.0.5_pre3-r1.ebuild 1511 MD5 a1eaeb2ae801daeb712c90c060e922dc metadata.xml 158 MD5 b7454b9cfe32ed0950a6eb72dcac8b33 files/digest-xmp-2.0.5_pre3 66 +MD5 1e1fab05a4835611a5e25aa1e6a4898a files/xmp-2.0.5_pre3-gcc3.3.diff 2658 +MD5 b7454b9cfe32ed0950a6eb72dcac8b33 files/digest-xmp-2.0.5_pre3-r1 66 diff --git a/media-sound/xmp/files/digest-xmp-2.0.5_pre3-r1 b/media-sound/xmp/files/digest-xmp-2.0.5_pre3-r1 new file mode 100644 index 000000000000..3198e4ee7d7a --- /dev/null +++ b/media-sound/xmp/files/digest-xmp-2.0.5_pre3-r1 @@ -0,0 +1 @@ +MD5 749db9c8da956b403a959b4c8b909447 xmp-2.0.5pre3.tar.bz2 318375 diff --git a/media-sound/xmp/files/xmp-2.0.5_pre3-gcc3.3.diff b/media-sound/xmp/files/xmp-2.0.5_pre3-gcc3.3.diff new file mode 100644 index 000000000000..1f8b9c6472e2 --- /dev/null +++ b/media-sound/xmp/files/xmp-2.0.5_pre3-gcc3.3.diff @@ -0,0 +1,62 @@ +diff -x '*.h' -x '*.status' -x '*.log' -x '*.rules' -x '*.cache' -urN xmp-2.0.5-pre3/src/loaders/it_load.c xmp-2.0.5-pre3.fixed/src/loaders/it_load.c +--- xmp-2.0.5-pre3/src/loaders/it_load.c 2000-12-29 19:08:28.000000000 +0100 ++++ xmp-2.0.5-pre3.fixed/src/loaders/it_load.c 2004-03-11 12:38:20.459060960 +0100 +@@ -327,14 +327,14 @@ + + #define BUILD_ENV(X) { \ + fread (&env, 1, sizeof (env), f); \ +- xxih[i].##X##ei.flg = env.flg & IT_ENV_ON ? XXM_ENV_ON : 0; \ +- xxih[i].##X##ei.flg |= env.flg & IT_ENV_LOOP ? XXM_ENV_LOOP : 0; \ +- xxih[i].##X##ei.flg |= env.flg & IT_ENV_SLOOP ? XXM_ENV_SUS : 0; \ +- xxih[i].##X##ei.npt = env.num; \ +- xxih[i].##X##ei.sus = env.slb; \ +- xxih[i].##X##ei.sue = env.sle; \ +- xxih[i].##X##ei.lps = env.lpb; \ +- xxih[i].##X##ei.lpe = env.lpe; \ ++ xxih[i].X##ei.flg = env.flg & IT_ENV_ON ? XXM_ENV_ON : 0; \ ++ xxih[i].X##ei.flg |= env.flg & IT_ENV_LOOP ? XXM_ENV_LOOP : 0; \ ++ xxih[i].X##ei.flg |= env.flg & IT_ENV_SLOOP ? XXM_ENV_SUS : 0; \ ++ xxih[i].X##ei.npt = env.num; \ ++ xxih[i].X##ei.sus = env.slb; \ ++ xxih[i].X##ei.sue = env.sle; \ ++ xxih[i].X##ei.lps = env.lpb; \ ++ xxih[i].X##ei.lpe = env.lpe; \ + if (env.num) xx##X##e[i] = calloc (4, env.num); \ + for (j = 0; j < env.num; j++) { \ + L_ENDIAN16 (env.node[j].x); \ +diff -x '*.h' -x '*.status' -x '*.log' -x '*.rules' -x '*.cache' -urN xmp-2.0.5-pre3/src/xmms/plugin.c xmp-2.0.5-pre3.fixed/src/xmms/plugin.c +--- xmp-2.0.5-pre3/src/xmms/plugin.c 2001-02-04 01:47:38.000000000 +0100 ++++ xmp-2.0.5-pre3.fixed/src/xmms/plugin.c 2004-03-11 12:48:04.595258760 +0100 +@@ -284,7 +284,7 @@ + xmp_cfg.filter = TRUE; + xmp_cfg.pan_amplitude = 80; + +-#define CFGREADINT(x) xmms_cfg_read_int (cfg, "XMP", #x, &xmp_cfg.##x) ++#define CFGREADINT(x) xmms_cfg_read_int (cfg, "XMP", #x, &xmp_cfg.x) + + filename = g_strconcat(g_get_home_dir(), "/.xmms/config", NULL); + if ((cfg = xmms_cfg_open_file(filename))) { +@@ -668,12 +668,12 @@ + + /* Options */ + +-#define OPTCHECK(w,l,o) { \ ++#define OPTCHECK(w,l,ox) { \ + w = gtk_check_button_new_with_label(l); \ + gtk_object_set_data(GTK_OBJECT(xmp_conf_window), #w, w); \ + gtk_widget_show(w); \ + gtk_box_pack_start(GTK_BOX(vbox6), w, TRUE, TRUE, 0); \ +- if (xmp_cfg.##o == 1) \ ++ if (xmp_cfg.ox == 1) \ + gtk_toggle_button_set_active(GTK_TOGGLE_BUTTON(w), TRUE); \ + } + +@@ -773,7 +773,7 @@ + if (!cfg) + cfg = xmms_cfg_new(); + +-#define CFGWRITEINT(x) xmms_cfg_write_int (cfg, "XMP", #x, xmp_cfg.##x) ++#define CFGWRITEINT(x) xmms_cfg_write_int (cfg, "XMP", #x, xmp_cfg.x) + + CFGWRITEINT (mixing_freq); + CFGWRITEINT (force8bit); diff --git a/media-sound/xmp/xmp-2.0.5_pre3-r1.ebuild b/media-sound/xmp/xmp-2.0.5_pre3-r1.ebuild new file mode 100644 index 000000000000..a2b5f2d1d246 --- /dev/null +++ b/media-sound/xmp/xmp-2.0.5_pre3-r1.ebuild @@ -0,0 +1,67 @@ +# Copyright 1999-2004 Gentoo Technologies, Inc. +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/media-sound/xmp/xmp-2.0.5_pre3-r1.ebuild,v 1.1 2004/03/11 12:13:27 karltk Exp $ + +IUSE="xmms arts esd nas X oss alsa" + +S="${WORKDIR}/${PN}-2.0.5-pre3" +DESCRIPTION="Extended Module Player" +SRC_URI="mirror://sourceforge/xmp/${PN}-2.0.5pre3.tar.bz2" +HOMEPAGE="http://xmp.sf.net" + +SLOT="0" +LICENSE="GPL-2" +KEYWORDS="~x86" + +DEPEND="X? ( virtual/x11 ) + esd? ( media-sound/esound ) + nas? ( media-libs/nas ) + alsa? ( =media-libs/alsa-lib-0.5* ) + arts? ( kde-base/arts ) + xmms? ( media-sound/xmms )" + +src_unpack() { + unpack ${A} + epatch ${FILESDIR}/${P}-gcc3.3.diff +} + +src_compile() { + local myconf + + use alsa \ + && myconf="${myconf} --enable-alsa" \ + || myconf="${myconf} --disable-alsa" + + use arts \ + && myconf="${myconf} --enable-arts" \ + || myconf="${myconf} --disable-arts" + + use esd \ + && myconf="${myconf} --enable-esd" \ + || myconf="${myconf} --disable-esd" + + use nas \ + && myconf="${myconf} --enable-nas" \ + || myconf="${myconf} --disable-nas" + + use oss \ + && myconf="${myconf} --enable-oss" \ + || myconf="${myconf} --disable-oss" + + use xmms \ + && myconf="${myconf} --enable-xmms" \ + || myconf="${myconf} --disable-xmms" + + use X \ + && myconf="${myconf} --with-x" \ + || myconf="${myconf} --with-x" + + econf ${myconf} || die + + make || die +} + +src_install () { + make DEST_DIR=${D} MAN_DIR=${D}/usr/share/man/man1 install || die + dodoc INSTALL README +} |