diff options
author | drochner <drochner@pkgsrc.org> | 2002-12-02 20:29:48 +0000 |
---|---|---|
committer | drochner <drochner@pkgsrc.org> | 2002-12-02 20:29:48 +0000 |
commit | d8a4ae64440350c537760d67cfbbf7aacd1f5adc (patch) | |
tree | d0aa6cc7459ee703725d3230ab128183e5839558 /sysutils/xcdroast | |
parent | bec2bf2f5a4953689eeb2aa2a93e044560cc8d3c (diff) | |
download | pkgsrc-d8a4ae64440350c537760d67cfbbf7aacd1f5adc.tar.gz |
update to 0.98alpha11.
There is a major restructuring of the sources, more than to be expected
from the subminor version change.
Still needs some finetuning...
Most notable change: multisession support.
Diffstat (limited to 'sysutils/xcdroast')
-rw-r--r-- | sysutils/xcdroast/Makefile | 40 | ||||
-rw-r--r-- | sysutils/xcdroast/PLIST | 76 | ||||
-rw-r--r-- | sysutils/xcdroast/distinfo | 15 | ||||
-rw-r--r-- | sysutils/xcdroast/patches/patch-aa | 43 | ||||
-rw-r--r-- | sysutils/xcdroast/patches/patch-ab | 32 | ||||
-rw-r--r-- | sysutils/xcdroast/patches/patch-ac | 82 | ||||
-rw-r--r-- | sysutils/xcdroast/patches/patch-ad | 54 | ||||
-rw-r--r-- | sysutils/xcdroast/patches/patch-ae | 22 |
8 files changed, 178 insertions, 186 deletions
diff --git a/sysutils/xcdroast/Makefile b/sysutils/xcdroast/Makefile index ae7742d6394..9d69cb98f66 100644 --- a/sysutils/xcdroast/Makefile +++ b/sysutils/xcdroast/Makefile @@ -1,8 +1,7 @@ -# $NetBSD: Makefile,v 1.8 2002/09/26 12:29:55 jlam Exp $ +# $NetBSD: Makefile,v 1.9 2002/12/02 20:29:48 drochner Exp $ -DISTNAME= xcdroast-0.98alpha9 -PKGNAME= xcdroast-0.98a9 -PKGREVISION= 1 +DISTNAME= xcdroast-0.98alpha11 +PKGNAME= xcdroast-0.98a11 CATEGORIES= sysutils MASTER_SITES= ${MASTER_SITE_SOURCEFORGE:=xcdroast/} @@ -10,43 +9,40 @@ MAINTAINER= frueauf@netbsd.org HOMEPAGE= http://www.xcdroast.org/ COMMENT= graphical user interface for the command-line cdrecord-tools -DEPENDS+= cdrecord-1.10:../../sysutils/cdrecord +DEPENDS+= cdrecord-xcdroast098a11-[0-9]*:../../sysutils/cdrecord-xcdroast .include "../../mk/bsd.prefs.mk" USE_BUILDLINK2= YES USE_X11= YES - -BASE_VERS= ${PKGVERSION:C/a.*//} -PLIST_SUBST+= BASE_VERS=${BASE_VERS} -MAKE_ENV+= X_CFLAGS="${CFLAGS}" -MAKE_ENV+= X_LDFLAGS="${LDFLAGS}" +GNU_CONFIGURE= yes +CONFIGURE_ARGS+= --sysconfdir=${PKG_SYSCONFDIR} #.if ${_OPSYS_HAS_OSSAUDIO} == "yes" -#CFLAGS+= -DHAVE_OSS +CFLAGS+= -DHAVE_OSS #.endif DOCDIR= ${PREFIX}/share/doc/xcdroast SUPPORT_FILES= /dev/null ${PKG_SYSCONFDIR}/xcdroast.conf -pre-build: - cd ${WRKSRC}; for file in io.c wavplay.c xcdroast.h; do \ - ${SED} -e "s|@PREFIX@|${PREFIX}|g" \ - -e "s|@PKG_SYSCONFDIR@|${PKG_SYSCONFDIR}|g" \ - -e "s|@DEVOSSAUDIO@|${DEVOSSAUDIO}|g" \ - $${file} > $${file}.fixed; \ - ${MV} -f $${file}.fixed $${file}; \ - done +#pre-build: +# cd ${WRKSRC}; for file in io.c wavplay.c xcdroast.h; do \ +# ${SED} -e "s|@PREFIX@|${PREFIX}|g" \ +# -e "s|@PKG_SYSCONFDIR@|${PKG_SYSCONFDIR}|g" \ +# -e "s|@DEVOSSAUDIO@|${DEVOSSAUDIO}|g" \ +# $${file} > $${file}.fixed; \ +# ${MV} -f $${file}.fixed $${file}; \ +# done post-install: ${INSTALL_DATA_DIR} ${DOCDIR} cd ${WRKSRC}; \ - for file in COPYING DOCUMENTATION FAQ README.nonroot; do \ + for file in ${WRKSRC}/doc/*; do \ ${INSTALL_DATA} $${file} ${DOCDIR}; \ done -.include "../../graphics/imlib/buildlink2.mk" +# gdk-pixbuf implies gtk, glib, gettext-lib +.include "../../graphics/gdk-pixbuf/buildlink2.mk" .include "../../mk/ossaudio.buildlink2.mk" - .include "../../mk/bsd.pkg.install.mk" .include "../../mk/bsd.pkg.mk" diff --git a/sysutils/xcdroast/PLIST b/sysutils/xcdroast/PLIST index d8fd7f1cb7f..fcce3220ab8 100644 --- a/sysutils/xcdroast/PLIST +++ b/sysutils/xcdroast/PLIST @@ -1,29 +1,57 @@ -@comment $NetBSD: PLIST,v 1.2 2002/09/26 12:29:55 jlam Exp $ +@comment $NetBSD: PLIST,v 1.3 2002/12/02 20:29:48 drochner Exp $ bin/xcdroast -lib/xcdroast-${BASE_VERS}/bin/wavplay -lib/xcdroast-${BASE_VERS}/bin/rmtool -lib/xcdroast-${BASE_VERS}/bin/vrfytool -lib/xcdroast-${BASE_VERS}/bin/cddbtool -lib/xcdroast-${BASE_VERS}/bin/xcdrwrap -lib/xcdroast-${BASE_VERS}/icons/burnproof.gif -lib/xcdroast-${BASE_VERS}/icons/cddblogo.gif -lib/xcdroast-${BASE_VERS}/icons/dialog_default.png -lib/xcdroast-${BASE_VERS}/icons/dialog_error.png -lib/xcdroast-${BASE_VERS}/icons/dialog_information.png -lib/xcdroast-${BASE_VERS}/icons/dialog_question.png -lib/xcdroast-${BASE_VERS}/icons/dialog_warning.png -lib/xcdroast-${BASE_VERS}/icons/xcdrlogo.gif -lib/xcdroast-${BASE_VERS}/lang/lang_extract.sh -lib/xcdroast-${BASE_VERS}/lang/langhelp.def -lib/xcdroast-${BASE_VERS}/lang/language.def -lib/xcdroast-${BASE_VERS}/sound/test.wav -share/doc/xcdroast/COPYING +lib/xcdroast-0.98/bin/cddbtool +lib/xcdroast-0.98/bin/rmtool +lib/xcdroast-0.98/bin/vrfytool +lib/xcdroast-0.98/bin/wavplay +lib/xcdroast-0.98/bin/xcdrwrap +lib/xcdroast-0.98/icons/burnproof.gif +lib/xcdroast-0.98/icons/cddblogo.gif +lib/xcdroast-0.98/icons/dialog_default.png +lib/xcdroast-0.98/icons/dialog_error.png +lib/xcdroast-0.98/icons/dialog_information.png +lib/xcdroast-0.98/icons/dialog_question.png +lib/xcdroast-0.98/icons/dialog_warning.png +lib/xcdroast-0.98/icons/xcdricon.gif +lib/xcdroast-0.98/icons/xcdricon.png +lib/xcdroast-0.98/icons/xcdrlogo.gif +lib/xcdroast-0.98/sound/test.wav +man/man1/xcdroast.1 share/doc/xcdroast/DOCUMENTATION share/doc/xcdroast/FAQ +share/doc/xcdroast/README.AIX +share/doc/xcdroast/README.HPUX +share/doc/xcdroast/README.MacOSX +share/doc/xcdroast/README.ProDVD +share/doc/xcdroast/README.atapi share/doc/xcdroast/README.nonroot +share/doc/xcdroast/README.setup-bulgarian.html +share/doc/xcdroast/TRANSLATION.HOWTO +${PKGLOCALEDIR}/locale/bg/LC_MESSAGES/xcdroast.mo +${PKGLOCALEDIR}/locale/ca/LC_MESSAGES/xcdroast.mo +${PKGLOCALEDIR}/locale/cs/LC_MESSAGES/xcdroast.mo +${PKGLOCALEDIR}/locale/da/LC_MESSAGES/xcdroast.mo +${PKGLOCALEDIR}/locale/de/LC_MESSAGES/xcdroast.mo +${PKGLOCALEDIR}/locale/es/LC_MESSAGES/xcdroast.mo +${PKGLOCALEDIR}/locale/et/LC_MESSAGES/xcdroast.mo +${PKGLOCALEDIR}/locale/fi/LC_MESSAGES/xcdroast.mo +${PKGLOCALEDIR}/locale/fr/LC_MESSAGES/xcdroast.mo +${PKGLOCALEDIR}/locale/gl/LC_MESSAGES/xcdroast.mo +${PKGLOCALEDIR}/locale/hr/LC_MESSAGES/xcdroast.mo +${PKGLOCALEDIR}/locale/hu/LC_MESSAGES/xcdroast.mo +${PKGLOCALEDIR}/locale/id/LC_MESSAGES/xcdroast.mo +${PKGLOCALEDIR}/locale/it/LC_MESSAGES/xcdroast.mo +${PKGLOCALEDIR}/locale/ja/LC_MESSAGES/xcdroast.mo +${PKGLOCALEDIR}/locale/nl/LC_MESSAGES/xcdroast.mo +${PKGLOCALEDIR}/locale/no/LC_MESSAGES/xcdroast.mo +${PKGLOCALEDIR}/locale/pl/LC_MESSAGES/xcdroast.mo +${PKGLOCALEDIR}/locale/pt_BR/LC_MESSAGES/xcdroast.mo +${PKGLOCALEDIR}/locale/ru/LC_MESSAGES/xcdroast.mo +${PKGLOCALEDIR}/locale/sk/LC_MESSAGES/xcdroast.mo +${PKGLOCALEDIR}/locale/sv/LC_MESSAGES/xcdroast.mo +${PKGLOCALEDIR}/locale/tr/LC_MESSAGES/xcdroast.mo +${PKGLOCALEDIR}/locale/zh_CN.GB2312/LC_MESSAGES/xcdroast.mo +${PKGLOCALEDIR}/locale/zh_TW.Big5/LC_MESSAGES/xcdroast.mo @dirrm share/doc/xcdroast -@dirrm lib/xcdroast-${BASE_VERS}/bin -@dirrm lib/xcdroast-${BASE_VERS}/icons -@dirrm lib/xcdroast-${BASE_VERS}/lang -@dirrm lib/xcdroast-${BASE_VERS}/sound -@dirrm lib/xcdroast-${BASE_VERS} +@dirrm lib/xcdroast-0.98/sound +@dirrm lib/xcdroast-0.98/icons diff --git a/sysutils/xcdroast/distinfo b/sysutils/xcdroast/distinfo index 26593900654..b13d2cb7a2f 100644 --- a/sysutils/xcdroast/distinfo +++ b/sysutils/xcdroast/distinfo @@ -1,8 +1,9 @@ -$NetBSD: distinfo,v 1.6 2002/10/27 21:46:11 martin Exp $ +$NetBSD: distinfo,v 1.7 2002/12/02 20:29:48 drochner Exp $ -SHA1 (xcdroast-0.98alpha9.tar.gz) = 7994b54ce0a0b55fe140f4b2ba14e0d1317d5d52 -Size (xcdroast-0.98alpha9.tar.gz) = 649469 bytes -SHA1 (patch-aa) = 48365964de9a0ee2349fea063695c7b1d999b645 -SHA1 (patch-ab) = 39c716a03162a1c093e95442befbc65c8bd6fb76 -SHA1 (patch-ac) = 5d462c9c2521c85258b53030174fa91a2c76d73b -SHA1 (patch-ad) = 875d4c2a31a3590d7a566d4452b253edf30a75d9 +SHA1 (xcdroast-0.98alpha11.tar.gz) = 201fd7dc4f70a2860ff6519577a8fb9c3f45adf6 +Size (xcdroast-0.98alpha11.tar.gz) = 2073809 bytes +SHA1 (patch-aa) = 0beee32a5550646cd360459d90281cb0ec9a826a +SHA1 (patch-ab) = 12115c9034f9bbb684e0b6138efff3f341fb5fa6 +SHA1 (patch-ac) = 577977e962fd13c2bbc22ac43a35829c2f103739 +SHA1 (patch-ad) = c1aa3ac7ac96e02337bec0144044517867395708 +SHA1 (patch-ae) = 6dbc961d201bee69c2cc90718a82f8a3fd1306de diff --git a/sysutils/xcdroast/patches/patch-aa b/sysutils/xcdroast/patches/patch-aa index 21bf181d0a7..8b4188402a2 100644 --- a/sysutils/xcdroast/patches/patch-aa +++ b/sysutils/xcdroast/patches/patch-aa @@ -1,39 +1,12 @@ -$NetBSD: patch-aa,v 1.3 2002/09/26 12:29:56 jlam Exp $ +$NetBSD: patch-aa,v 1.4 2002/12/02 20:29:49 drochner Exp $ ---- Makefile.orig Tue Jul 17 14:46:26 2001 -+++ Makefile -@@ -6,7 +6,7 @@ - # Installation prefix directory: +--- src/gettext.h.orig Mon Dec 2 11:48:41 2002 ++++ src/gettext.h Mon Dec 2 11:49:25 2002 +@@ -24,6 +24,7 @@ - #PREFIX=/usr --PREFIX=/usr/local -+#PREFIX=/usr/local - PRE_LIBDIR=$(PREFIX)/lib/xcdroast-0.98 + /* Get declarations of GNU message catalog functions. */ + # include <libintl.h> ++# include <locale.h> - # put here the prefix where you want xcdroast to look for -@@ -23,9 +23,9 @@ INSTALL=/usr/bin/install -c + #else - #--- - --CFLAGS=-Wall `gtk-config --cflags` `imlib-config --cflags` -DPRE_PREFIX="\"$(PREFIX)\"" -DPRE_LIBDIR="\"$(PRE_LIBDIR)\"" -DCDRTOOLS_PREFIX="\"$(CDRTOOLS_PREFIX)\"" --CFLAGS2=-Wall `glib-config --cflags --libs` -DPRE_PREFIX="\"$(PREFIX)\"" -DPRE_LIBDIR="\"$(PRE_LIBDIR)\"" -DCDRTOOLS_PREFIX="\"$(CDRTOOLS_PREFIX)\"" --LIBS=`gtk-config --libs` `imlib-config --libs` -lgdk_imlib -+CFLAGS=${X_CFLAGS} -Wall `gtk-config --cflags` `imlib-config --cflags` -DPRE_PREFIX="\"$(PREFIX)\"" -DPRE_LIBDIR="\"$(PRE_LIBDIR)\"" -DCDRTOOLS_PREFIX="\"$(CDRTOOLS_PREFIX)\"" -+CFLAGS2=${X_CFLAGS} -Wall `glib-config --cflags --libs` -DPRE_PREFIX="\"$(PREFIX)\"" -DPRE_LIBDIR="\"$(PRE_LIBDIR)\"" -DCDRTOOLS_PREFIX="\"$(CDRTOOLS_PREFIX)\"" -+LIBS=${X_LDFLAGS} `gtk-config --libs` `imlib-config --libs` -lgdk_imlib - TOOLLIBS=`gtk-config --libs` - CC=gcc - -@@ -48,10 +48,10 @@ all: xcdroast wavplay rmtool vrfytool cd - $(CC) $(CFLAGS) -c $< - - xcdroast: $(OBJ) -- $(CC) $(OBJ) $(LIBS) -o xcdroast -+ $(CC) $(OBJ) $(LIBS) $(LIBOSSAUDIO) -o xcdroast - - wavplay: wavplay.o wav_id.o tools.o -- $(CC) wavplay.o wav_id.o tools.o $(TOOLLIBS) -o wavplay -+ $(CC) wavplay.o wav_id.o tools.o $(TOOLLIBS) $(LIBOSSAUDIO) -o wavplay - cp wavplay lib/bin - - rmtool: rmtool.o diff --git a/sysutils/xcdroast/patches/patch-ab b/sysutils/xcdroast/patches/patch-ab index ce00c84bee4..62afd5fec86 100644 --- a/sysutils/xcdroast/patches/patch-ab +++ b/sysutils/xcdroast/patches/patch-ab @@ -1,21 +1,13 @@ -$NetBSD: patch-ab,v 1.2 2002/09/26 12:29:56 jlam Exp $ +$NetBSD: patch-ab,v 1.3 2002/12/02 20:29:49 drochner Exp $ ---- xcdroast.h.orig Tue Jul 17 12:40:54 2001 -+++ xcdroast.h -@@ -89,14 +89,14 @@ - #define SAVEMASTERTRACK "mkisofs.out" - - /* default paths/configfile */ --#define PREFIX "/usr/local" -+#define PREFIX "@PREFIX@" - #define LIBDIR "lib/xcdroast-0.98" - #define CONFIGDIR "~/.xcdroast" - #define CONFFILE "xcdr098.cfg" - #define LOGFILE "xcdr098.log" - #define ISOOPTFILE "isoopt.cfg" - #define ISOHEADERFILE "isoheader.cfg" --#define ROOTCONFIG "/etc/xcdroast.conf" -+#define ROOTCONFIG "@PKG_SYSCONFDIR@/xcdroast.conf" - - /* language stuff*/ - #define MAXENTRIES 512 +--- src/xcdroast.h.orig Mon Dec 2 18:45:24 2002 ++++ src/xcdroast.h Mon Dec 2 18:50:33 2002 +@@ -83,7 +83,7 @@ + #define UNAME "/bin/uname -a" + #define UNAME2 "/usr/bin/uname -a" + #define CHOWN "/bin/chown" +-#define CHOWN2 "/usr/bin/chown" ++#define CHOWN2 "/usr/sbin/chown" + #define CHGRP "/bin/chgrp" + #define CHGRP2 "/usr/bin/chgrp" + #define CHMOD "/bin/chmod" diff --git a/sysutils/xcdroast/patches/patch-ac b/sysutils/xcdroast/patches/patch-ac index b510dfde93a..d7502e1e691 100644 --- a/sysutils/xcdroast/patches/patch-ac +++ b/sysutils/xcdroast/patches/patch-ac @@ -1,8 +1,8 @@ -$NetBSD: patch-ac,v 1.6 2002/10/27 21:46:12 martin Exp $ +$NetBSD: patch-ac,v 1.7 2002/12/02 20:29:49 drochner Exp $ ---- io.c.orig Tue Jul 17 12:39:11 2001 -+++ io.c -@@ -16,6 +16,14 @@ +--- src/io.c.orig Sun Nov 24 20:02:58 2002 ++++ src/io.c Mon Dec 2 20:21:20 2002 +@@ -19,6 +19,14 @@ #include <sys/wait.h> #include <signal.h> #include <time.h> @@ -17,12 +17,12 @@ $NetBSD: patch-ac,v 1.6 2002/10/27 21:46:12 martin Exp $ #if defined(linux) || defined(__FreeBSD__) # include <sys/soundcard.h> # include <sys/ioctl.h> -@@ -996,22 +1004,22 @@ GList *get_dsp_devices() { - GList *dsp; - GList *loop; +@@ -1200,22 +1208,22 @@ struct stat buf; --#ifdef sun -+#if defined(sun) || (defined(__NetBSD__) && !defined(HAVE_OSS)) + #endif + +-#if defined(sun) || defined(aix) || defined(__OpenBSD__) ++#if defined(sun) || defined(aix) || defined(__OpenBSD__) || (defined(__NetBSD__) && !defined(HAVE_OSS)) gchar *audiodev; #endif dsp = NULL; @@ -40,15 +40,15 @@ $NetBSD: patch-ac,v 1.6 2002/10/27 21:46:12 martin Exp $ dsp = g_list_append(dsp,"/dev/dsp1"); } #endif --#ifdef sun -+#if defined(sun) || (defined(__NetBSD__) && !defined(HAVE_OSS)) +-#if defined(sun) || defined(__OpenBSD__) ++#if defined(sun) || defined(__OpenBSD__) || (defined(__NetBSD__) && !defined(HAVE_OSS)) /* check if the user has any special audio-hardware running, which set the AUDIODEV-environment-variable */ audiodev = getenv("AUDIODEV"); -@@ -1066,15 +1074,15 @@ gchar *audiodev; - gchar *gen_mix_from_dspdev(gchar *dsp, gchar *ret) { - gchar tmp[MAXLINE]; +@@ -1297,15 +1305,15 @@ struct stat buf; + # endif + #endif -#if defined(linux) || defined(__FreeBSD__) +#if defined(linux) || defined(__FreeBSD__) || (defined(__NetBSD__) && defined(HAVE_OSS)) gchar tmp2[MAXLINE]; @@ -64,29 +64,29 @@ $NetBSD: patch-ac,v 1.6 2002/10/27 21:46:12 martin Exp $ strcpy(tmp,dsp+8); g_snprintf(tmp2,MAXLINE,"/dev/mixer%s",tmp); -@@ -1084,7 +1092,7 @@ gchar tmp2[MAXLINE]; +@@ -1315,7 +1323,7 @@ } } #endif --#ifdef sun -+#if defined(sun) || (defined(__NetBSD__) && !defined(HAVE_OSS)) +-#if defined(sun) || defined(__OpenBSD__) ++#if defined(sun) || defined(__OpenBSD__) || (defined(__NetBSD__) && !defined(HAVE_OSS)) g_snprintf(tmp,MAXLINE,"%s%s",dsp,"ctl"); -@@ -2362,10 +2370,10 @@ gint count; - - gint query_mixer() { +@@ -2795,10 +2803,10 @@ + #if !(defined(__MACH__) && defined(__APPLE__)) gint mix; + #endif -#if defined(linux) || defined(__FreeBSD__) +#if defined(linux) || defined(__FreeBSD__) || (defined(__NetBSD__) && defined(HAVE_OSS)) gint val; #endif --#ifdef sun -+#if defined(sun) || (defined(__NetBSD__) && !defined(HAVE_OSS)) +-#if defined(sun) || defined(__OpenBSD__) ++#if defined(sun) || defined(__OpenBSD__) || (defined(__NetBSD__) && !defined(HAVE_OSS)) audio_info_t ainfo; #endif #ifdef hpux -@@ -2380,7 +2388,7 @@ struct audio_gains again; +@@ -2813,7 +2821,7 @@ return -1; } @@ -95,25 +95,25 @@ $NetBSD: patch-ac,v 1.6 2002/10/27 21:46:12 martin Exp $ dodebug(10,"quering mixer %s\n", setupdata.mix_device); mix = open(setupdata.mix_device, O_RDWR); -@@ -2400,7 +2408,7 @@ struct audio_gains again; +@@ -2833,7 +2841,7 @@ return ((val & 0x7f) + ((val >> 8) & 0x7f))/2; #endif --#ifdef sun -+#if defined(sun) || (defined(__NetBSD__) && !defined(HAVE_OSS)) +-#if defined(sun) || defined(__OpenBSD__) ++#if defined(sun) || defined(__OpenBSD__) || (defined(__NetBSD__) && !defined(HAVE_OSS)) dodebug(10,"quering mixer %s\n", setupdata.mix_device); mix = open(setupdata.mix_device, O_RDONLY); -@@ -2450,7 +2458,7 @@ struct audio_gains again; - - gint set_mixer(gint val) { +@@ -2921,7 +2929,7 @@ + #if !(defined(__MACH__) && defined(__APPLE__)) gint mix; --#ifdef sun -+#if defined(sun) || (defined(__NetBSD__) && !defined(HAVE_OSS)) + #endif +-#if defined(sun) || defined(__OpenBSD__) ++#if defined(sun) || defined(__OpenBSD__) || (defined(__NetBSD__) && !defined(HAVE_OSS)) audio_info_t ainfo; #endif - #ifdef hpux -@@ -2464,7 +2472,7 @@ struct audio_gains again; + #ifdef aix +@@ -2939,7 +2947,7 @@ return -1; } @@ -122,22 +122,12 @@ $NetBSD: patch-ac,v 1.6 2002/10/27 21:46:12 martin Exp $ dodebug(10,"setting mixer %s to %d\n", setupdata.mix_device, val); mix = open(setupdata.mix_device, O_RDWR); -@@ -2482,7 +2490,7 @@ struct audio_gains again; +@@ -2957,7 +2965,7 @@ close(mix); #endif --#ifdef sun -+#if defined(sun) || (defined(__NetBSD__) && !defined(HAVE_OSS)) +-#if defined(sun) || defined(__OpenBSD__) ++#if defined(sun) || defined(__OpenBSD__) || (defined(__NetBSD__) && !defined(HAVE_OSS)) dodebug(10,"setting mixer %s to %d\n", setupdata.mix_device, val); mix = open(setupdata.mix_device, O_WRONLY); -@@ -3275,6 +3283,9 @@ gint ret,found; - /* got the message that no medium is present? - in this case, ignore return code */ - if (strstr(line,"medium not present")) { -+ found = 1; -+ } -+ if (strstr(line,"Device not ready")) { - found = 1; - } - } diff --git a/sysutils/xcdroast/patches/patch-ad b/sysutils/xcdroast/patches/patch-ad index fbcfb4f2a00..0afd3ab2c37 100644 --- a/sysutils/xcdroast/patches/patch-ad +++ b/sysutils/xcdroast/patches/patch-ad @@ -1,8 +1,8 @@ -$NetBSD: patch-ad,v 1.2 2002/09/26 12:29:56 jlam Exp $ +$NetBSD: patch-ad,v 1.3 2002/12/02 20:29:49 drochner Exp $ ---- wavplay.c.orig Tue Jul 17 12:39:14 2001 -+++ wavplay.c -@@ -14,6 +14,14 @@ +--- src/wavplay.c.orig Mon Dec 2 20:48:24 2002 ++++ src/wavplay.c Mon Dec 2 20:52:36 2002 +@@ -19,6 +19,14 @@ #include <unistd.h> #include <fcntl.h> #include <string.h> @@ -15,20 +15,11 @@ $NetBSD: patch-ad,v 1.2 2002/09/26 12:29:56 jlam Exp $ +# endif +#endif #if defined(linux) || defined(__CYGWIN32__) - #include <getopt.h> + # include <getopt.h> #endif -@@ -22,7 +30,7 @@ - #include <sys/soundcard.h> - #include <sys/ioctl.h> - #endif --#ifdef sun -+#if defined(sun) || (defined(__NetBSD__) && !defined(HAVE_OSS)) - #include <sys/audioio.h> - #endif - #ifdef hpux -@@ -48,8 +56,8 @@ guchar waveHdr[44]; +@@ -64,8 +72,8 @@ gint abuf_size; - gchar *audiobuf; + guchar *audiobuf; -#if defined(linux) || defined(__FreeBSD__) -#define DEFAULT_AUDIO_DEVICE "/dev/dsp" @@ -37,8 +28,8 @@ $NetBSD: patch-ad,v 1.2 2002/09/26 12:29:56 jlam Exp $ #elif defined (aix) #define DEFAULT_AUDIO_DEVICE "" #else -@@ -59,7 +67,7 @@ gchar *audiobuf; - #define DEFAULT_BUFFER_SIZE 32768 +@@ -299,7 +307,7 @@ + #endif -#if defined(linux) || defined(__FreeBSD__) @@ -46,35 +37,34 @@ $NetBSD: patch-ad,v 1.2 2002/09/26 12:29:56 jlam Exp $ /* open the sound-device of linux and set cd-quality */ -@@ -110,7 +118,7 @@ gint flags; +@@ -350,7 +358,7 @@ #endif --#ifdef sun -+#if defined(sun) || (defined(__NetBSD__) && !defined(HAVE_OSS)) +-#if defined(sun) || defined(__OpenBSD__) ++#if defined(sun) || defined(__OpenBSD__) || (defined(__NetBSD__) && !defined(HAVE_OSS)) /* open the sound-device of solaris and set cd-quality */ -@@ -137,7 +145,9 @@ gint flags; +@@ -377,7 +385,7 @@ info.play.precision = 16; info.play.encoding = AUDIO_ENCODING_LINEAR; info.play.buffer_size = abuf_size; -+#ifndef __NetBSD__ +-#ifndef __OpenBSD__ ++#if !defined(__OpenBSD__) && !defined(__NetBSD__) info.output_muted = 0; -+#endif + #endif + +@@ -678,10 +686,10 @@ - if (ioctl(audio, AUDIO_SETINFO, &info) == -1) { - g_warning("Unable to set audio parameters\n"); -@@ -332,10 +342,10 @@ gchar tmpswap; - } + /* the open sets also the global abuf_size-variable */ - /* this sets also the global abuf_size-variable */ -#if defined(linux) || defined(__FreeBSD__) +#if defined(linux) || defined(__FreeBSD__) || (defined(__NetBSD__) && defined(HAVE_OSS)) audio = open_linux_audio(audio_dev); #endif --#ifdef sun -+#if defined(sun) || (defined(__NetBSD__) && !defined(HAVE_OSS)) +-#if defined(sun) || defined(__OpenBSD__) ++#if defined(sun) || defined(__OpenBSD__) || (defined(__NetBSD__) && !defined(HAVE_OSS)) audio = open_solaris_audio(audio_dev); #endif - #ifdef hpux + #ifdef aix diff --git a/sysutils/xcdroast/patches/patch-ae b/sysutils/xcdroast/patches/patch-ae new file mode 100644 index 00000000000..5ea0194ca1d --- /dev/null +++ b/sysutils/xcdroast/patches/patch-ae @@ -0,0 +1,22 @@ +$NetBSD: patch-ae,v 1.1 2002/12/02 20:29:49 drochner Exp $ + +--- src/Makefile.in.orig Mon Dec 2 21:06:43 2002 ++++ src/Makefile.in Mon Dec 2 21:08:06 2002 +@@ -162,7 +162,7 @@ + + xcdroast_CFLAGS = $(GNUCFLAGS) $(GDK_PIXBUF_CFLAGS) $(EXTRA_CFLAGS) -DPRE_PREFIX="\"$(prefix)\"" -DPRE_LIBDIR="\"$(XCDRLIB_PREFIX)\"" -DCDRTOOLS_PREFIX="\"$(CDRTOOLS_PREFIX)\"" -DSYSCONFDIR="\"$(sysconfdir)\"" + xcdroast_LDFLAGS = $(GTK_LIBS) $(GDK_PIXBUF_LIBS) $(EXTRA_LDFLAGS) +-xcdroast_LDADD = @LIBINTL@ @ALLOCA@ ++xcdroast_LDADD = @LIBINTL@ @ALLOCA@ $(LIBOSSAUDIO) + + wavplay_SOURCES = wavplay.c wav_id.c tools.c largefile.h xcdroast.h + wavplay_CFLAGS = $(GNUCFLAGS) $(EXTRA_CFLAGS) +@@ -207,7 +207,7 @@ + am_wavplay_OBJECTS = wavplay-wavplay.$(OBJEXT) wavplay-wav_id.$(OBJEXT) \ + wavplay-tools.$(OBJEXT) + wavplay_OBJECTS = $(am_wavplay_OBJECTS) +-wavplay_LDADD = $(LDADD) ++wavplay_LDADD = $(LDADD) $(LIBOSSAUDIO) + wavplay_DEPENDENCIES = + am_xcdroast_OBJECTS = xcdroast-main.$(OBJEXT) xcdroast-init.$(OBJEXT) \ + xcdroast-tools.$(OBJEXT) xcdroast-xtools.$(OBJEXT) \ |