Hi, Ports! This update package xmp to the latest release 3.0.0.
Comments ? OK ? -- Alexandr Shadchin
Index: xmp/Makefile =================================================================== RCS file: /cvs/ports/audio/xmp/Makefile,v retrieving revision 1.31 diff -N -u -p xmp/Makefile --- xmp/Makefile 10 Aug 2009 06:29:53 -0000 1.31 +++ xmp/Makefile 12 Dec 2009 00:44:19 -0000 @@ -1,13 +1,17 @@ # $OpenBSD: Makefile,v 1.31 2009/08/10 06:29:53 kili Exp $ -COMMENT-main= extended module player -COMMENT-xmms= extended module player plugin for XMMS -DISTNAME= xmp-2.0.4 -PKGNAME-main= ${DISTNAME}p4 -PKGNAME-xmms= xmms-${DISTNAME}p1 -CATEGORIES= audio +COMMENT-main= extended module player +COMMENT-audacious= extended module player plugin for Audacious +COMMENT-bmp= extended module player plugin for BMP +COMMENT-xmms= extended module player plugin for XMMS +DISTNAME= xmp-3.0.0 +PKGNAME-main= ${DISTNAME} +PKGNAME-audacious= audacious-${DISTNAME} +PKGNAME-bmp= bmp-${DISTNAME} +PKGNAME-xmms= xmms-${DISTNAME} +CATEGORIES= audio -HOMEPAGE= http://xmp.sourceforge.net/ +HOMEPAGE= http://xmp.sourceforge.net/ # GPL PERMIT_PACKAGE_CDROM= Yes @@ -15,43 +19,61 @@ PERMIT_PACKAGE_FTP= Yes PERMIT_DISTFILES_CDROM= Yes PERMIT_DISTFILES_FTP= Yes -MASTER_SITES= ${MASTER_SITE_SOURCEFORGE:=xmp/} +MASTER_SITES= ${MASTER_SITE_SOURCEFORGE:=xmp/} -PSEUDO_FLAVORS= no_xmms +PSEUDO_FLAVORS= no_xmms .if ${MACHINE_ARCH} == "m88k" || ${MACHINE_ARCH} == "vax" -FLAVOR?= no_xmms +FLAVOR?= no_xmms .else FLAVOR?= .endif -MULTI_PACKAGES= -main +MULTI_PACKAGES= -main -audacious -bmp .if !${FLAVOR:L:Mno_xmms} MULTI_PACKAGES+= -xmms -LIB_DEPENDS= xmms.>=3::audio/xmms -.else -CONFIGURE_ARGS+= --disable-xmms +CONFIGURE_ARGS+= --enable-xmms-plugin .endif -LIB_DEPENDS-xmms= -RUN_DEPENDS-xmms= ::audio/xmms -WANTLIB-xmms= +LIB_DEPENDS-main= +WANTLIB-main= ${WANTLIB} c m sndio -LIB_DEPENDS-main= esd.>=2::audio/esound -WANTLIB-main= X11 Xext c m pthread-stubs xcb +LIB_DEPENDS-audacious= ${LIB_DEPENDS} audclient.>=1::audio/audacious +RUN_DEPENDS-audacious= ::audio/audacious +WANTLIB-audacious= ${WANTLIB} X11 Xau Xcomposite Xcursor Xdamage Xdmcp \ + Xext Xfixes Xi Xinerama Xrandr Xrender atk-1.0 cairo \ + dbus-1 dbus-glib-1 expat fontconfig freetype \ + gdk-x11-2.0 gdk_pixbuf-2.0 gio-2.0 glib-2.0 glitz \ + gmodule-2.0 gobject-2.0 gthread-2.0 gtk-x11-2.0 iconv \ + intl m mcs mowgli pango-1.0 pangocairo-1.0 pangoft2-1.0 \ + pixman-1 png pthread-stubs samplerate xcb z -USE_X11= Yes -USE_GMAKE= Yes +LIB_DEPENDS-bmp= ${LIB_DEPENDS} beep.>=2::audio/bmp +RUN_DEPENDS-bmp= ::audio/bmp +WANTLIB-bmp= ${WANTLIB} X11 Xau Xcomposite Xcursor Xdamage Xdmcp \ + Xext Xfixes Xi Xinerama Xrandr Xrender atk-1.0 cairo \ + expat fontconfig freetype gdk-x11-2.0 gdk_pixbuf-2.0 \ + gio-2.0 glib-2.0 glitz gmodule-2.0 gobject-2.0 \ + gtk-x11-2.0 iconv intl m pango-1.0 pangocairo-1.0 \ + pangoft2-1.0 pixman-1 png pthread-stubs xcb z -CONFIGURE_STYLE=gnu -MODGNU_CONFIG_GUESS_DIRS= ${WRKSRC}/scripts -CONFIGURE_ENV= CPPFLAGS="-I${LOCALBASE}/include" \ - LDFLAGS="-L${LOCALBASE}/lib" +LIB_DEPENDS-xmms= ${LIB_DEPENDS} xmms.>=4::audio/xmms +RUN_DEPENDS-xmms= ::audio/xmms +WANTLIB-xmms= ${WANTLIB} X11 Xext Xi gdk glib gmodule gtk iconv intl m -FAKE_FLAGS= DEST_DIR=${WRKINST} \ - SYSCONF_DIR=${PREFIX}/share/examples/xmp +USE_X11= Yes +USE_GMAKE= Yes -pre-install: - @${INSTALL_DATA_DIR} ${PREFIX}/share/examples/xmp \ - ${PREFIX}/lib/xmms/Input +CONFIGURE_STYLE= gnu +MODGNU_CONFIG_GUESS_DIRS= ${WRKSRC}/scripts +CONFIGURE_ARGS+= --disable-oss \ + --disable-alsa \ + --enable-audacious-plugin \ + --enable-bmp-plugin +CONFIGURE_ENV= CPPFLAGS="-I${LOCALBASE}/include" \ + LDFLAGS="-L${LOCALBASE}/lib" \ + LIBS=-lsndio + +FAKE_FLAGS= DESTDIR=${WRKINST} \ + SYSCONFDIR=${PREFIX}/share/examples/xmp .include <bsd.port.mk> Index: xmp/distinfo =================================================================== RCS file: /cvs/ports/audio/xmp/distinfo,v retrieving revision 1.4 diff -N -u -p xmp/distinfo --- xmp/distinfo 5 Apr 2007 15:37:45 -0000 1.4 +++ xmp/distinfo 12 Dec 2009 00:44:19 -0000 @@ -1,5 +1,5 @@ -MD5 (xmp-2.0.4.tar.gz) = KB6XnrX7ZOj9C3r9BSxhkQ== -RMD160 (xmp-2.0.4.tar.gz) = UPYVFMj9ISoMJXX7rbkMAgeszOY= -SHA1 (xmp-2.0.4.tar.gz) = EC7+rdPdl2rNKrQN2A/5vcIr+6A= -SHA256 (xmp-2.0.4.tar.gz) = sG3wWaQ+5wdAV3Sn6RL4C3+EPZznbwoXSO+FNUHZg08= -SIZE (xmp-2.0.4.tar.gz) = 352397 +MD5 (xmp-3.0.0.tar.gz) = xmM1umdn8Xlvp89y/Bg11Q== +RMD160 (xmp-3.0.0.tar.gz) = 6g++SgUQJARxL4wLD6Q/eS3e4Ww= +SHA1 (xmp-3.0.0.tar.gz) = mwpE0TmCnv0MoPWscKAoOVCPgaM= +SHA256 (xmp-3.0.0.tar.gz) = hJZDlQHEBxuqRpbwKdxFsqdEYXF3fn5YJyLPaxXTqLQ= +SIZE (xmp-3.0.0.tar.gz) = 838621 Index: xmp/patches/patch-Makefile_rules_in =================================================================== RCS file: /cvs/ports/audio/xmp/patches/patch-Makefile_rules_in,v retrieving revision 1.2 diff -N -u -p xmp/patches/patch-Makefile_rules_in --- xmp/patches/patch-Makefile_rules_in 13 Jul 2006 13:35:15 -0000 1.2 +++ /dev/null 28 Sep 2008 10:50:08 -0000 @@ -1,21 +0,0 @@ -$OpenBSD: patch-Makefile_rules_in,v 1.2 2006/07/13 13:35:15 espie Exp $ ---- Makefile.rules.in.orig Sat Jan 20 02:51:53 2001 -+++ Makefile.rules.in Thu Jul 13 15:32:24 2006 -@@ -5,11 +5,12 @@ VERSION = 2.0.4 - DATE = Fri Jan 19 23:51:53 BRST 2001 - - DEST_DIR= --prefix = $(DEST_DIR)@prefix@ --exec_prefix= $(DEST_DIR)@prefix@ --BIN_DIR = @bindir@ --LIB_DIR = @libdir@ --MAN_DIR = @mandir@/man1 -+prefix = @prefix@ -+exec_prefix= @prefix@ -+BIN_DIR = $(DEST_DIR)@bindir@ -+LIB_DIR = $(DEST_DIR)@libdir@ -+MAN_DIR = $(DEST_DIR)@mandir@/man1 -+SYSCONF_DIR = @sysconfdir@ - - CC = @CC@ - CFLAGS = -c @CFLAGS@ @DEFS@ @CINCS@ Index: xmp/patches/patch-configure =================================================================== RCS file: /cvs/ports/audio/xmp/patches/patch-configure,v retrieving revision 1.3 diff -N -u -p xmp/patches/patch-configure --- xmp/patches/patch-configure 13 Jun 2004 06:11:53 -0000 1.3 +++ /dev/null 28 Sep 2008 10:50:08 -0000 @@ -1,22 +0,0 @@ -$OpenBSD: patch-configure,v 1.3 2004/06/13 06:11:53 pvalchev Exp $ ---- configure.orig 2001-01-19 16:03:24.000000000 -0700 -+++ configure 2004-06-12 23:36:46.000000000 -0600 -@@ -593,9 +593,6 @@ CINCS="${CPPFLAGS}" - PLUGIN="" - - --LDFLAGS="" -- -- - X_XMP="xxmp" - - -@@ -2036,7 +2033,7 @@ fi - - - if test "${GCC-no}" = yes; then -- CFLAGS="${CFLAGS} -Wall -Wno-implicit-int -finline-functions" -+ CFLAGS="${CFLAGS} -Wall -Wno-implicit-int -finline-functions -fPIC" - - if test "${cross_compiling}" = no; then - echo $ac_n "checking whether gcc needs -fsigned-char""... $ac_c" 1>&6 Index: xmp/patches/patch-etc_Makefile =================================================================== RCS file: /cvs/ports/audio/xmp/patches/patch-etc_Makefile,v retrieving revision 1.1 diff -N -u -p xmp/patches/patch-etc_Makefile --- xmp/patches/patch-etc_Makefile 18 May 2003 07:40:55 -0000 1.1 +++ /dev/null 28 Sep 2008 10:50:08 -0000 @@ -1,20 +0,0 @@ -$OpenBSD: patch-etc_Makefile,v 1.1 2003/05/18 07:40:55 naddy Exp $ ---- etc/Makefile.orig Fri Dec 29 11:06:28 2000 -+++ etc/Makefile Sat May 17 01:27:10 2003 -@@ -14,11 +14,11 @@ include ../Makefile.rules - - install:: - @echo Installing xmp.conf and xmp-modules.conf in $(DEST_DIR)... -- @if [ -f $(DEST_DIR)/etc/xmp.conf ]; then \ -- mv -f $(DEST_DIR)/etc/xmp.conf $(DEST_DIR)/etc/xmp.conf.old; \ -+ @if [ -f $(DEST_DIR)/$(SYSCONF_DIR)/xmp.conf ]; then \ -+ mv -f $(DEST_DIR)/$(SYSCONF_DIR)/xmp.conf $(DEST_DIR)/$(SYSCONF_DIR)/xmp.conf.old; \ - fi -- @if [ -f $(DEST_DIR)/etc/xmp-modules.conf ]; then \ -- mv -f $(DEST_DIR)/etc/xmp-modules.conf $(DEST_DIR)/etc/xmp-modules.conf.old; \ -+ @if [ -f $(DEST_DIR)/$(SYSCONF_DIR)/xmp-modules.conf ]; then \ -+ mv -f $(DEST_DIR)/$(SYSCONF_DIR)/xmp-modules.conf $(DEST_DIR)/$(SYSCONF_DIR)/xmp-modules.conf.old; \ - fi -- $(INSTALL) -m644 xmp.conf xmp-modules.conf $(DEST_DIR)/etc -+ $(INSTALL) -m644 xmp.conf xmp-modules.conf $(DEST_DIR)/$(SYSCONF_DIR) - Index: xmp/patches/patch-src_drivers_openbsd_c =================================================================== RCS file: /cvs/ports/audio/xmp/patches/patch-src_drivers_openbsd_c,v retrieving revision 1.2 diff -N -u -p xmp/patches/patch-src_drivers_openbsd_c --- xmp/patches/patch-src_drivers_openbsd_c 4 Oct 2005 20:16:04 -0000 1.2 +++ /dev/null 28 Sep 2008 10:50:08 -0000 @@ -1,56 +0,0 @@ -$OpenBSD: patch-src_drivers_openbsd_c,v 1.2 2005/10/04 20:16:04 espie Exp $ ---- src/drivers/openbsd.c.orig Fri Dec 29 19:08:08 2000 -+++ src/drivers/openbsd.c Tue Oct 4 22:12:46 2005 -@@ -39,7 +39,6 @@ static void shutdown (void); - static void dummy () { } - - static char *help[] = { -- "gain=val", "Audio output gain (0 to 255)", - "buffer=val", "Audio buffer size (default is 32768)", - NULL - }; -@@ -75,35 +74,36 @@ struct xmp_drv_info drv_openbsd = { - static int setaudio (struct xmp_control *ctl) - { - audio_info_t ainfo; -- int gain = 128; - int bsize = 32 * 1024; - char *token; - char **parm = ctl->parm; - - parm_init (); -- chkparm1 ("gain", gain = atoi (token)); - chkparm1 ("buffer", bsize = atoi (token)); - parm_end (); - -- if (gain < AUDIO_MIN_GAIN) -- gain = AUDIO_MIN_GAIN; -- if (gain > AUDIO_MAX_GAIN) -- gain = AUDIO_MAX_GAIN; -- - AUDIO_INITINFO (&ainfo); - -+ ainfo.mode = AUMODE_PLAY; - ainfo.play.sample_rate = ctl->freq; - ainfo.play.channels = ctl->outfmt & XMP_FMT_MONO ? 1 : 2; - ainfo.play.precision = ctl->resol; - ainfo.play.encoding = ctl->resol > 8 ? - AUDIO_ENCODING_SLINEAR : AUDIO_ENCODING_ULINEAR; -- ainfo.play.gain = gain; - ainfo.play.buffer_size = bsize; - - if (ioctl (audio_fd, AUDIO_SETINFO, &ainfo) == -1) { - close (audio_fd); - return XMP_ERR_DINIT; - } -+ -+ ioctl (audio_fd, AUDIO_GETINFO, &ainfo); -+ ctl->freq = ainfo.play.sample_rate; -+ if (ainfo.play.channels == 2) -+ ctl->outfmt &= ~XMP_FMT_MONO; -+ else -+ ctl->outfmt |= XMP_FMT_MONO; -+ ctl->resol = ainfo.play.precision; - - drv_openbsd.description = "OpenBSD PCM audio"; - return XMP_OK; Index: xmp/patches/patch-src_include_config_h_in =================================================================== RCS file: xmp/patches/patch-src_include_config_h_in diff -N -u -p xmp/patches/patch-src_include_config_h_in --- /dev/null 12 Dec 2009 00:44:19 -0000 +++ xmp/patches/patch-src_include_config_h_in 12 Dec 2009 00:44:19 -0000 @@ -0,0 +1,13 @@ +$OpenBSD$ +--- src/include/config.h.in.orig Wed Sep 30 03:47:36 2009 ++++ src/include/config.h.in Sat Dec 12 04:20:00 2009 +@@ -21,6 +21,9 @@ + /* Define to enable OpenBSD audio support */ + #undef DRIVER_OPENBSD + ++/* Define to enable OpenBSD sndio support */ ++#undef DRIVER_SNDIO ++ + /* Define to enable BSD audio support */ + #undef DRIVER_BSD + Index: xmp/patches/patch-src_loaders_it_load_c =================================================================== RCS file: /cvs/ports/audio/xmp/patches/patch-src_loaders_it_load_c,v retrieving revision 1.1 diff -N -u -p xmp/patches/patch-src_loaders_it_load_c --- xmp/patches/patch-src_loaders_it_load_c 30 Dec 2004 02:18:50 -0000 1.1 +++ /dev/null 28 Sep 2008 10:50:08 -0000 @@ -1,26 +0,0 @@ -$OpenBSD: patch-src_loaders_it_load_c,v 1.1 2003/12/30 02:18:50 espie Exp $ ---- src/loaders/it_load.c.orig 2003-12-30 03:08:38.000000000 +0100 -+++ src/loaders/it_load.c 2003-12-30 03:09:10.000000000 +0100 -@@ -327,14 +327,14 @@ int it_load (FILE * f) - - #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); \ Index: xmp/patches/patch-src_loaders_kris_load_c =================================================================== RCS file: /cvs/ports/audio/xmp/patches/patch-src_loaders_kris_load_c,v retrieving revision 1.1 diff -N -u -p xmp/patches/patch-src_loaders_kris_load_c --- xmp/patches/patch-src_loaders_kris_load_c 16 Jun 2003 19:56:45 -0000 1.1 +++ /dev/null 28 Sep 2008 10:50:08 -0000 @@ -1,12 +0,0 @@ -$OpenBSD: patch-src_loaders_kris_load_c,v 1.1 2003/06/16 19:56:45 avsm Exp $ ---- src/loaders/kris_load.c.orig Fri Dec 29 18:08:31 2000 -+++ src/loaders/kris_load.c Mon Jun 16 20:47:42 2003 -@@ -43,7 +43,7 @@ int kris_load (FILE *f) - int i, j; - struct xxm_event *event; - struct kris_header kh; -- uint8 kris_event[3]; -+ uint8 kris_event[4]; - - LOAD_INIT (); - Index: xmp/patches/patch-src_main_drivers_c =================================================================== RCS file: xmp/patches/patch-src_main_drivers_c diff -N -u -p xmp/patches/patch-src_main_drivers_c --- /dev/null 12 Dec 2009 00:44:19 -0000 +++ xmp/patches/patch-src_main_drivers_c 12 Dec 2009 00:44:19 -0000 @@ -0,0 +1,13 @@ +$OpenBSD$ +--- src/main/drivers.c.orig Sun Aug 2 05:15:24 2009 ++++ src/main/drivers.c Sat Dec 12 04:41:46 2009 +@@ -54,6 +54,9 @@ void init_drivers() + #ifdef DRIVER_OPENBSD + xmp_drv_register(&drv_openbsd); + #endif ++#ifdef DRIVER_SNDIO ++ xmp_drv_register(&drv_openbsd); ++#endif + #ifdef DRIVER_SGI + xmp_drv_register(&drv_sgi); + #endif Index: xmp/patches/patch-src_player_Makefile =================================================================== RCS file: /cvs/ports/audio/xmp/patches/patch-src_player_Makefile,v retrieving revision 1.3 diff -N -u -p xmp/patches/patch-src_player_Makefile --- xmp/patches/patch-src_player_Makefile 13 Jul 2006 13:35:16 -0000 1.3 +++ /dev/null 28 Sep 2008 10:50:08 -0000 @@ -1,12 +0,0 @@ -$OpenBSD: patch-src_player_Makefile,v 1.3 2006/07/13 13:35:16 espie Exp $ ---- src/player/Makefile.orig Mon Jan 15 12:35:23 2001 -+++ src/player/Makefile Wed Jul 12 17:10:42 2006 -@@ -1,7 +1,7 @@ - # Extended Module Player src/player/Makefile - # $Id: patch-src_player_Makefile,v 1.3 2006/07/13 13:35:16 espie Exp $ - --XCFLAGS = -I../include -+XCFLAGS = -I../include -DSYSCONF_DIR=\"$(SYSCONF_DIR)\" - OBJS = convert.o driver.o formats.o misc.o period.o player.o \ - readrc.o scan.o ulaw.o med_synth.o cruncher.o filter.o \ - fmopl.o synth.o Index: xmp/patches/patch-src_player_mixer_c =================================================================== RCS file: /cvs/ports/audio/xmp/patches/patch-src_player_mixer_c,v retrieving revision 1.1 diff -N -u -p xmp/patches/patch-src_player_mixer_c --- xmp/patches/patch-src_player_mixer_c 11 Jul 2005 06:28:31 -0000 1.1 +++ /dev/null 28 Sep 2008 10:50:08 -0000 @@ -1,26 +0,0 @@ -$OpenBSD: patch-src_player_mixer_c,v 1.1 2005/07/11 06:28:31 espie Exp $ ---- src/player/mixer.c.orig Mon Jul 11 08:24:13 2005 -+++ src/player/mixer.c Mon Jul 11 08:26:58 2005 -@@ -562,10 +562,12 @@ int xmp_smix_on (struct xmp_control *ctl - cnt = smix_numbuf = ctl->numbuf; - - smix_buffer = calloc (sizeof (void *), cnt); -- smix_buf32b = calloc (sizeof (int), OUT_MAXLEN); -+ smix_buf32b = calloc (sizeof (int), OUT_MAXLEN+2); - if (!(smix_buffer && smix_buf32b)) - return XMP_ERR_ALLOC; - -+ smix_buf32b+=2; -+ - while (cnt--) { - if (!(smix_buffer[cnt] = calloc (SMIX_RESMAX, OUT_MAXLEN))) - return XMP_ERR_ALLOC; -@@ -587,7 +589,7 @@ void xmp_smix_off () - - //synth_deinit (); - -- free (smix_buf32b); -+ free (smix_buf32b-2); - free (smix_buffer); - smix_buf32b = NULL; - smix_buffer = NULL; Index: xmp/patches/patch-src_player_readrc_c =================================================================== RCS file: /cvs/ports/audio/xmp/patches/patch-src_player_readrc_c,v retrieving revision 1.1 diff -N -u -p xmp/patches/patch-src_player_readrc_c --- xmp/patches/patch-src_player_readrc_c 18 May 2003 07:40:55 -0000 1.1 +++ /dev/null 28 Sep 2008 10:50:08 -0000 @@ -1,21 +0,0 @@ -$OpenBSD: patch-src_player_readrc_c,v 1.1 2003/05/18 07:40:55 naddy Exp $ ---- src/player/readrc.c.orig Fri May 16 23:25:25 2003 -+++ src/player/readrc.c Fri May 16 23:26:34 2003 -@@ -58,7 +58,7 @@ int xmpi_read_rc (struct xmp_control *ct - if ((rc = fopen (myrc2, "r")) == NULL) { - if ((rc = fopen (myrc, "r")) == NULL) { - #ifndef __EMX__ -- if ((rc = fopen ("/etc/xmp.conf", "r")) == NULL) { -+ if ((rc = fopen (SYSCONF_DIR "/xmp.conf", "r")) == NULL) { - #else - if ((rc = fopen ("xmp.conf", "r")) == NULL) { - #endif -@@ -206,7 +206,7 @@ void xmpi_read_modconf (struct xmp_contr - myrc = malloc ((home ? strlen (home) : 0) + 20); - #ifndef __EMX__ - sprintf (myrc, "%s/.xmp/modules.conf", home); -- parse_modconf (ctl, "/etc/xmp-modules.conf", crc, size); -+ parse_modconf (ctl, SYSCONF_DIR "/xmp-modules.conf", crc, size); - #else - sprintf (myrc, "%s\\.xmp\\modules.conf", home); - parse_modconf (ctl, "xmp-modules.conf", crc, size); Index: xmp/patches/patch-src_xmms_Makefile =================================================================== RCS file: /cvs/ports/audio/xmp/patches/patch-src_xmms_Makefile,v retrieving revision 1.2 diff -N -u -p xmp/patches/patch-src_xmms_Makefile --- xmp/patches/patch-src_xmms_Makefile 13 Jul 2006 13:35:16 -0000 1.2 +++ /dev/null 28 Sep 2008 10:50:08 -0000 @@ -1,21 +0,0 @@ -$OpenBSD: patch-src_xmms_Makefile,v 1.2 2006/07/13 13:35:16 espie Exp $ ---- src/xmms/Makefile.orig Wed Jan 17 02:29:41 2001 -+++ src/xmms/Makefile Wed Jul 12 17:10:42 2006 -@@ -1,7 +1,7 @@ - # Extended Module Player src/xmms/Makefile - # $Id: patch-src_xmms_Makefile,v 1.2 2006/07/13 13:35:16 espie Exp $ - --XCFLAGS = -I../include -DVERSION=\"$(VERSION)\" `xmms-config --cflags` -DXMMS_PLUGIN #-DDEBUG -+XCFLAGS = -I../include -DVERSION=\"$(VERSION)\" `xmms-config --cflags` -DXMMS_PLUGIN -fPIC #-DDEBUG - DFILES = Makefile README xmp-plugin.h $(OBJS:.o=.c) - CFILES = xmp-plugin.so - -@@ -17,7 +17,7 @@ driver.c: - ln -sf ../player/driver.c . - - plugin: $(OBJS) $(DYNDRV) -- $(LD) -shared -o xmp-plugin.so $(OBJS) -L../../lib/ -lxmp -+ $(LD) -shared -fPIC -o xmp-plugin.so $(OBJS) -L../../lib/ -lxmp - - dyndrv: - make -C ../../lib shared Index: xmp/patches/patch-src_xmms_plugin_c =================================================================== RCS file: /cvs/ports/audio/xmp/patches/patch-src_xmms_plugin_c,v retrieving revision 1.1 diff -N -u -p xmp/patches/patch-src_xmms_plugin_c --- xmp/patches/patch-src_xmms_plugin_c 30 Dec 2004 02:18:50 -0000 1.1 +++ /dev/null 28 Sep 2008 10:50:08 -0000 @@ -1,30 +0,0 @@ -$OpenBSD: patch-src_xmms_plugin_c,v 1.1 2003/12/30 02:18:50 espie Exp $ ---- src/xmms/plugin.c.orig 2001-01-07 01:53:15.000000000 +0100 -+++ src/xmms/plugin.c 2003-12-30 03:13:42.000000000 +0100 -@@ -228,7 +228,7 @@ static void init(void) - 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))) { -@@ -558,7 +558,7 @@ static void configure() - 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.o == 1) \ - gtk_toggle_button_set_active(GTK_TOGGLE_BUTTON(w), TRUE); \ - } - -@@ -658,7 +658,7 @@ static void config_ok (GtkWidget *widget - 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); Index: xmp/pkg/DESCR-audacious =================================================================== RCS file: xmp/pkg/DESCR-audacious diff -N -u -p xmp/pkg/DESCR-audacious --- /dev/null 12 Dec 2009 00:44:19 -0000 +++ xmp/pkg/DESCR-audacious 12 Dec 2009 00:44:19 -0000 @@ -0,0 +1,4 @@ +xmp is a multi-format module player for UNIX. It supports more +than 40 module formats, such as Soundtracker, Impulse Tracker, etc. + +This is an Audacious input plugin based on xmp. Index: xmp/pkg/DESCR-bmp =================================================================== RCS file: xmp/pkg/DESCR-bmp diff -N -u -p xmp/pkg/DESCR-bmp --- /dev/null 12 Dec 2009 00:44:19 -0000 +++ xmp/pkg/DESCR-bmp 12 Dec 2009 00:44:19 -0000 @@ -0,0 +1,4 @@ +xmp is a multi-format module player for UNIX. It supports more +than 40 module formats, such as Soundtracker, Impulse Tracker, etc. + +This is an BMP input plugin based on xmp. Index: xmp/pkg/PLIST-audacious =================================================================== RCS file: xmp/pkg/PLIST-audacious diff -N -u -p xmp/pkg/PLIST-audacious --- /dev/null 12 Dec 2009 00:44:19 -0000 +++ xmp/pkg/PLIST-audacious 12 Dec 2009 00:44:19 -0000 @@ -0,0 +1,2 @@ +...@comment $OpenBSD$ +lib/audacious/Input/xmp-audacious.so Index: xmp/pkg/PLIST-bmp =================================================================== RCS file: xmp/pkg/PLIST-bmp diff -N -u -p xmp/pkg/PLIST-bmp --- /dev/null 12 Dec 2009 00:44:19 -0000 +++ xmp/pkg/PLIST-bmp 12 Dec 2009 00:44:19 -0000 @@ -0,0 +1,2 @@ +...@comment $OpenBSD$ +lib/bmp/Input/xmp-bmp.so Index: xmp/pkg/PLIST-main =================================================================== RCS file: /cvs/ports/audio/xmp/pkg/PLIST-main,v retrieving revision 1.1 diff -N -u -p xmp/pkg/PLIST-main --- xmp/pkg/PLIST-main 20 Nov 2006 19:15:09 -0000 1.1 +++ xmp/pkg/PLIST-main 12 Dec 2009 00:44:19 -0000 @@ -1,12 +1,14 @@ @comment $OpenBSD: PLIST-main,v 1.1 2006/11/20 19:15:09 espie Exp $ @pkgpath audio/xmp,no_xmms @pkgpath audio/xmp -bin/xmp -bin/xxmp +...@bin bin/xmp +lib/audacious/ +lib/audacious/Input/ +lib/bmp/ +lib/bmp/Input/ lib/xmms/ lib/xmms/Input/ @man man/man1/xmp.1 -...@man man/man1/xxmp.1 share/examples/xmp/ -share/examples/xmp/xmp-modules.conf +share/examples/xmp/modules.conf share/examples/xmp/xmp.conf Index: xmp/pkg/PLIST-xmms =================================================================== RCS file: /cvs/ports/audio/xmp/pkg/PLIST-xmms,v retrieving revision 1.1 diff -N -u -p xmp/pkg/PLIST-xmms --- xmp/pkg/PLIST-xmms 18 May 2003 07:40:55 -0000 1.1 +++ xmp/pkg/PLIST-xmms 12 Dec 2009 00:44:19 -0000 @@ -1,2 +1,2 @@ @comment $OpenBSD: PLIST-xmms,v 1.1 2003/05/18 07:40:55 naddy Exp $ -lib/xmms/Input/xmp-plugin.so +lib/xmms/Input/xmp-xmms.so