Import of ascd-0.13.2 (from freebsd-ports)

ascd is a CD player that can be "docked" on the Afterstep Wharf or the
Window Maker dock.

ok naddy@
This commit is contained in:
wilfried 2001-02-06 11:52:43 +00:00
parent 437a12bbe3
commit f4429914ec
10 changed files with 448 additions and 0 deletions

42
audio/ascd/Makefile Normal file
View File

@ -0,0 +1,42 @@
# $OpenBSD: Makefile,v 1.1.1.1 2001/02/06 11:52:43 wilfried Exp $
# $FreeBSD: ports/audio/ascd/Makefile,v 1.17 2000/09/25 12:21:17 asami Exp $
DISTNAME= ascd-0.13.2
CATEGORIES= audio x11 x11/windowmaker
NEED_VERSION= 1.340
HOMEPAGE= http://worldserver.oleane.com/rsn/ascd-en.html
MASTER_SITES= http://worldserver.oleane.com/rsn/Archives/
DISTFILES= ${DISTNAME}-src.tgz ${DATAFILES}
DATAFILES= ascd-0.13pr6-themes.tgz
THEMESDIR= ascd-0.13pr6-themes
MAINTAINER= Peter Stromberg <wilfried@openbsd.org>
PERMIT_PACKAGE_CDROM= Yes
PERMIT_PACKAGE_FTP= Yes
PERMIT_DISTFILES_CDROM= Yes
PERMIT_DISTFILES_FTP= Yes
LIB_DEPENDS= workman.1::audio/libworkman
CONFIGURE_STYLE= imake
USE_X11= Yes
post-extract:
@rm -rf ${WRKSRC}/workman
post-patch:
@sed -e "s:%%PREFIX%%:${PREFIX}:g" \
${WRKSRC}/misc/config.h.default > ${WRKSRC}/config.h
@sed -e "s:%%PREFIX%%:${PREFIX}:g" \
${WRKSRC}/misc/dirs.h.default > ${WRKSRC}/dirs.h
@cat ${WRKSRC}/version.h >> ${WRKSRC}/config.h
post-install:
${INSTALL_DATA_DIR} ${PREFIX}/share/AScd
tar xfC ${WRKSRC}/themes/default.tar ${PREFIX}/share/AScd/
tar xfC ${WRKSRC}/themes/themes.tar ${PREFIX}/share/AScd/
tar xfC ${WRKDIR}/ascd-0.13pr6-themes/themes.tar ${PREFIX}/share/AScd/Themes
.include <bsd.port.mk>

6
audio/ascd/files/md5 Normal file
View File

@ -0,0 +1,6 @@
MD5 (ascd-0.13.2-src.tgz) = 675853848d96990df9316f50c7c9b9a3
MD5 (ascd-0.13pr6-themes.tgz) = 2e87d244f6f93682830e6930cba980a2
RMD160 (ascd-0.13.2-src.tgz) = a46d29cf7db6eada938a86f3377e34f4fdeb6322
RMD160 (ascd-0.13pr6-themes.tgz) = 6ed7937f3e9bb616e68d697b22c7bba542430a1e
SHA1 (ascd-0.13.2-src.tgz) = 788b6cfef92042ffda455a78ed5e70db9dc872dc
SHA1 (ascd-0.13pr6-themes.tgz) = 14918f1fcb8db37171e61cf33c68aa8260d960f8

View File

@ -0,0 +1,30 @@
$OpenBSD: patch-Imakefile,v 1.1.1.1 2001/02/06 11:52:44 wilfried Exp $
--- Imakefile.orig Sun Sep 5 01:24:23 1999
+++ Imakefile Sat Feb 3 16:27:57 2001
@@ -5,11 +5,9 @@ NAME = ascd
BINDIR = CBINDIR
MANDIR = CMANDIR
THEMESDIR = CTHDIR
-MOREFLAGS = -I/usr/local/include -I/usr/X11R6/include -I.
-CCOPTIONS = $(MOREFLAGS)
SYS_LIBRARIES = $(XLIB) -lXpm
-LOCAL_LIBRARIES = -L../libworkman -lworkman -L/usr/local/lib
+LOCAL_LIBRARIES = -lworkman
SRCS_OPT1 =
SRCS_OPT2 =
@@ -51,13 +49,3 @@ NormalProgramTarget($(NAME),$(OBJS),Null
InstallProgram($(NAME),$(BINDIR))
InstallManPage($(NAME),$(MANDIR))
InstallMultiple(themes/themes-manual.ps.gz,$(THEMESDIR))
-
-install::
- @echo "Installing themes..."
- @cp themes/themes.tar $(THEMESDIR)
- @cp themes/default.tar $(THEMESDIR)
- @cd $(THEMESDIR) ; tar xf themes.tar
- @cd $(THEMESDIR) ; tar xf default.tar
- @cd $(THEMESDIR) ; rm themes.tar
- @cd $(THEMESDIR) ; rm default.tar
- @echo "Done."

View File

@ -0,0 +1,33 @@
$OpenBSD: patch-ascd_c,v 1.1.1.1 2001/02/06 11:52:44 wilfried Exp $
--- ascd.c.orig Mon Jul 5 18:58:51 1999
+++ ascd.c Mon Feb 5 15:07:49 2001
@@ -572,7 +572,8 @@ void main_loop()
if (autoplay || autoprobe) {
dodo = RDTIME2;
- wm_cd_status();
+ if(wm_cd_status() < 1)
+ goto quick_and_dirty;
}
if (cur_cdmode != WM_CDM_EJECTED) no_disk = 0;
@@ -606,7 +607,7 @@ void main_loop()
if ((slow_down == 1) || (slow_down == 6)) {
if ((show_db) && (cur_cdmode == WM_CDM_PLAYING)) show_db_f();
}
-
+quick_and_dirty:
/* Check events */
while (XPending(Disp))
@@ -635,8 +636,8 @@ void main_loop()
case ButtonPress:
- wm_cd_status();
- mouse_events(Event);
+ if(wm_cd_status() > 0)
+ mouse_events(Event);
break;
/* ------------------------ Destroy Window ------------------- */

View File

@ -0,0 +1,15 @@
$OpenBSD: patch-faktory_c,v 1.1.1.1 2001/02/06 11:52:44 wilfried Exp $
--- faktory.c.orig Mon Jul 5 18:52:38 1999
+++ faktory.c Sat Feb 3 16:20:44 2001
@@ -58,9 +58,9 @@ int fak_parse_line(char *ligne, char *ke
unsigned int pos = 0;
if ((strlen(ligne) > 0) && (ligne[0] != '#')) {
- while ((ligne[pos] != ' ') && (ligne[pos] != 9)) pos++;
+ while (ligne[pos] && (ligne[pos] != ' ') && (ligne[pos] != '\t')) pos++;
tes_sncpy(key, ligne, pos);
- while (((ligne[pos] == ' ') || (ligne[pos] == 9)) && (pos < strlen(ligne))) pos++;
+ while (ligne[pos] && ((ligne[pos] == ' ') || (ligne[pos] == '\t'))) pos++;
if (pos < strlen(ligne)) strcpy(arguments, ligne + pos);
else strcpy(arguments, "");
if (debug > 2) fprintf(stderr,"++ input: [%s]\n key: [%s]\n args: [%s]\n", ligne, key, arguments);

View File

@ -0,0 +1,11 @@
$OpenBSD: patch-misc_config_h_default,v 1.1.1.1 2001/02/06 11:52:44 wilfried Exp $
--- misc/config.h.default.orig Mon Apr 19 19:25:01 1999
+++ misc/config.h.default Sat Feb 3 16:16:19 2001
@@ -1,5 +1,5 @@
#define PACKAGE "ascd"
#define DEFAULT_COLOR "#2FAFAF"
#define DEFAULT_BGCOLOR "#000000"
-#define DEFAULTDEVICE "/dev/cdrom"
-#define THDIR "/usr/local/share/AScd"
+#define DEFAULTDEVICE "/dev/cd0c"
+#define THDIR "%%PREFIX%%/share/AScd"

View File

@ -0,0 +1,10 @@
$OpenBSD: patch-misc_dirs_h_default,v 1.1.1.1 2001/02/06 11:52:44 wilfried Exp $
--- misc/dirs.h.default.orig Mon Apr 19 19:24:12 1999
+++ misc/dirs.h.default Sat Feb 3 16:16:50 2001
@@ -1,3 +1,3 @@
-#define CBINDIR /usr/local/bin
-#define CMANDIR /usr/local/man/man1
-#define CTHDIR /usr/local/share/AScd
+#define CBINDIR %%PREFIX%%/bin
+#define CMANDIR %%PREFIX%%/man/man1
+#define CTHDIR %%PREFIX%%/share/AScd

1
audio/ascd/pkg/COMMENT Normal file
View File

@ -0,0 +1 @@
cd player for Afterstep or Window Maker

19
audio/ascd/pkg/DESCR Normal file
View File

@ -0,0 +1,19 @@
ascd is a CD player that can be "docked" on the Afterstep Wharf or the
Window Maker dock.
* installation for AfterStep
--------------------------
Add a line in your ~/.steprc file:
*Wharf - - Swallow "ascd" /usr/local/bin/ascd -device /dev/cd0c &
(customized to your system settings of course!)
* installation for Window Maker
-----------------------------
Launch ascd with the "+w" option.
Dock ascd by dragging it to the dock.
WWW: ${HOMEPAGE}

281
audio/ascd/pkg/PLIST Normal file
View File

@ -0,0 +1,281 @@
@comment $OpenBSD: PLIST,v 1.1.1.1 2001/02/06 11:52:44 wilfried Exp $
bin/ascd
man/man1/ascd.0
share/AScd/Default/back.xpm
share/AScd/Default/back_bar.xpm
share/AScd/Default/back_counter.xpm
share/AScd/Default/back_msg.xpm
share/AScd/Default/back_track.xpm
share/AScd/Default/bar.xpm
share/AScd/Default/cross.xpm
share/AScd/Default/digits.xpm
share/AScd/Default/digits2.xpm
share/AScd/Default/help.xpm
share/AScd/Default/panel.xpm
share/AScd/Themes/big/Theme
share/AScd/Themes/big/ascd.xpm
share/AScd/Themes/big/autoplay.xpm
share/AScd/Themes/big/autoplay_on.xpm
share/AScd/Themes/big/autorepeat.xpm
share/AScd/Themes/big/autorepeat_on.xpm
share/AScd/Themes/big/back.xpm
share/AScd/Themes/big/back_bar.xpm
share/AScd/Themes/big/back_bar2.xpm
share/AScd/Themes/big/back_buttons.xpm
share/AScd/Themes/big/back_counter.xpm
share/AScd/Themes/big/back_msg.xpm
share/AScd/Themes/big/back_track.xpm
share/AScd/Themes/big/bar.xpm
share/AScd/Themes/big/bar2.xpm
share/AScd/Themes/big/cross.xpm
share/AScd/Themes/big/disp.xpm
share/AScd/Themes/big/eject.xpm
share/AScd/Themes/big/fade.xpm
share/AScd/Themes/big/fwd.xpm
share/AScd/Themes/big/intro.xpm
share/AScd/Themes/big/intro_on.xpm
share/AScd/Themes/big/lend.xpm
share/AScd/Themes/big/lgo.xpm
share/AScd/Themes/big/lgo_on.xpm
share/AScd/Themes/big/lstart.xpm
share/AScd/Themes/big/options.xpm
share/AScd/Themes/big/options_on.xpm
share/AScd/Themes/big/panel.xpm
share/AScd/Themes/big/pause.xpm
share/AScd/Themes/big/pause_on.xpm
share/AScd/Themes/big/play.xpm
share/AScd/Themes/big/play_on.xpm
share/AScd/Themes/big/rew.xpm
share/AScd/Themes/big/small_play.xpm
share/AScd/Themes/big/stop.xpm
share/AScd/Themes/big/stop_on.xpm
share/AScd/Themes/big/theme.xpm
share/AScd/Themes/big/theme_on.xpm
share/AScd/Themes/big/upper.xpm
share/AScd/Themes/big/upper_on.xpm
share/AScd/Themes/big/wings.xpm
share/AScd/Themes/classic/Theme
share/AScd/Themes/classic/back.xpm
share/AScd/Themes/classic/back_counter.xpm
share/AScd/Themes/classic/back_track.xpm
share/AScd/Themes/classic/down.xpm
share/AScd/Themes/classic/eject.xpm
share/AScd/Themes/classic/pause.xpm
share/AScd/Themes/classic/play.xpm
share/AScd/Themes/classic/stop.xpm
share/AScd/Themes/classic/up.xpm
share/AScd/Themes/clean/Theme
share/AScd/Themes/clean/background.xpm
share/AScd/Themes/clean/bar.xpm
share/AScd/Themes/clean/digits.xpm
share/AScd/Themes/clean/digits2.xpm
share/AScd/Themes/clean/eject.xpm
share/AScd/Themes/clean/fade.xpm
share/AScd/Themes/clean/fwd.xpm
share/AScd/Themes/clean/intro.xpm
share/AScd/Themes/clean/intro_on.xpm
share/AScd/Themes/clean/lend.xpm
share/AScd/Themes/clean/lgo.xpm
share/AScd/Themes/clean/lgo_on.xpm
share/AScd/Themes/clean/lstart.xpm
share/AScd/Themes/clean/pause.xpm
share/AScd/Themes/clean/pause_on.xpm
share/AScd/Themes/clean/play.xpm
share/AScd/Themes/clean/play_on.xpm
share/AScd/Themes/clean/quit.xpm
share/AScd/Themes/clean/rdigits.xpm
share/AScd/Themes/clean/rew.xpm
share/AScd/Themes/clean/stop.xpm
share/AScd/Themes/default/Theme
share/AScd/Themes/default/autoplay.xpm
share/AScd/Themes/default/autoplay_on.xpm
share/AScd/Themes/default/autorepeat.xpm
share/AScd/Themes/default/autorepeat_on.xpm
share/AScd/Themes/default/eject.xpm
share/AScd/Themes/default/fade.xpm
share/AScd/Themes/default/fwd.xpm
share/AScd/Themes/default/intro.xpm
share/AScd/Themes/default/intro_on.xpm
share/AScd/Themes/default/lend.xpm
share/AScd/Themes/default/lgo.xpm
share/AScd/Themes/default/lgo_on.xpm
share/AScd/Themes/default/lstart.xpm
share/AScd/Themes/default/mixer2_back.xpm
share/AScd/Themes/default/mixer2_bar.xpm
share/AScd/Themes/default/mixer2_panel.xpm
share/AScd/Themes/default/mixer_back.xpm
share/AScd/Themes/default/mixer_bar.xpm
share/AScd/Themes/default/mixer_panel.xpm
share/AScd/Themes/default/options.xpm
share/AScd/Themes/default/options_on.xpm
share/AScd/Themes/default/pause.xpm
share/AScd/Themes/default/pause_on.xpm
share/AScd/Themes/default/play.xpm
share/AScd/Themes/default/play_on.xpm
share/AScd/Themes/default/quick/quick1.gif
share/AScd/Themes/default/quick/quick2.gif
share/AScd/Themes/default/rew.xpm
share/AScd/Themes/default/stop.xpm
share/AScd/Themes/default/stop_on.xpm
share/AScd/Themes/default/theme.xpm
share/AScd/Themes/default/theme_on.xpm
share/AScd/Themes/default/upper.xpm
share/AScd/Themes/default/upper_on.xpm
share/AScd/Themes/default/wings.xpm
share/AScd/Themes/orb/Theme
share/AScd/Themes/orb/back.xpm
share/AScd/Themes/orb/back_counter.xpm
share/AScd/Themes/orb/back_track.xpm
share/AScd/Themes/orb/digits.xpm
share/AScd/Themes/orb/down.xpm
share/AScd/Themes/orb/play.xpm
share/AScd/Themes/orb/play_on.xpm
share/AScd/Themes/orb/stop.xpm
share/AScd/Themes/orb/up.xpm
share/AScd/Themes/sands/Theme
share/AScd/Themes/sands/background.xpm
share/AScd/Themes/sands/bar.xpm
share/AScd/Themes/sands/digits.xpm
share/AScd/Themes/sands/digits2.xpm
share/AScd/Themes/sands/eject.xpm
share/AScd/Themes/sands/fade.xpm
share/AScd/Themes/sands/fwd.xpm
share/AScd/Themes/sands/intro.xpm
share/AScd/Themes/sands/intro_on.xpm
share/AScd/Themes/sands/lend.xpm
share/AScd/Themes/sands/lgo.xpm
share/AScd/Themes/sands/lgo_on.xpm
share/AScd/Themes/sands/lstart.xpm
share/AScd/Themes/sands/pause.xpm
share/AScd/Themes/sands/pause_on.xpm
share/AScd/Themes/sands/play.xpm
share/AScd/Themes/sands/play_on.xpm
share/AScd/Themes/sands/quit.xpm
share/AScd/Themes/sands/rew.xpm
share/AScd/Themes/sands/stop.xpm
share/AScd/Themes/tortured/Theme
share/AScd/Themes/tortured/ascd.xpm
share/AScd/Themes/tortured/back.xpm
share/AScd/Themes/tortured/back_counter.xpm
share/AScd/Themes/tortured/back_msg.xpm
share/AScd/Themes/tortured/back_track.xpm
share/AScd/Themes/tortured/bar.xpm
share/AScd/Themes/tortured/eject.xpm
share/AScd/Themes/tortured/eject_on.xpm
share/AScd/Themes/tortured/extension.xpm
share/AScd/Themes/tortured/extension3.xpm
share/AScd/Themes/tortured/loop.xpm
share/AScd/Themes/tortured/loop_end.xpm
share/AScd/Themes/tortured/loop_on.xpm
share/AScd/Themes/tortured/loop_start.xpm
share/AScd/Themes/tortured/mute.xpm
share/AScd/Themes/tortured/mute_on.xpm
share/AScd/Themes/tortured/next.xpm
share/AScd/Themes/tortured/panel.xpm
share/AScd/Themes/tortured/pause.xpm
share/AScd/Themes/tortured/pause_on.xpm
share/AScd/Themes/tortured/play.xpm
share/AScd/Themes/tortured/play_on.xpm
share/AScd/Themes/tortured/previous.xpm
share/AScd/Themes/tortured/stop.xpm
share/AScd/Themes/tortured/stop_on.xpm
share/AScd/Themes/tortured/volume.xpm
share/AScd/Themes/tortured/volume_back.xpm
share/AScd/Themes/vintage/Theme
share/AScd/Themes/vintage/back.xpm
share/AScd/Themes/vintage/bar.xpm
share/AScd/Themes/vintage/eject.xpm
share/AScd/Themes/vintage/fade.xpm
share/AScd/Themes/vintage/fwd.xpm
share/AScd/Themes/vintage/intro.xpm
share/AScd/Themes/vintage/intro_on.xpm
share/AScd/Themes/vintage/lend.xpm
share/AScd/Themes/vintage/lgo.xpm
share/AScd/Themes/vintage/lgo_on.xpm
share/AScd/Themes/vintage/lstart.xpm
share/AScd/Themes/vintage/pause.xpm
share/AScd/Themes/vintage/pause_on.xpm
share/AScd/Themes/vintage/play.xpm
share/AScd/Themes/vintage/play_on.xpm
share/AScd/Themes/vintage/quit.xpm
share/AScd/Themes/vintage/rew.xpm
share/AScd/Themes/vintage/stop.xpm
share/AScd/Themes/vintage/zob/digits.xpm
share/AScd/Themes/vintage/zob/digits2.xpm
share/AScd/Themes/wmcdplay/Theme
share/AScd/Themes/wmcdplay/back.xpm
share/AScd/Themes/wmcdplay/back_counter.xpm
share/AScd/Themes/wmcdplay/back_msg.xpm
share/AScd/Themes/wmcdplay/back_symbol.xpm
share/AScd/Themes/wmcdplay/back_track.xpm
share/AScd/Themes/wmcdplay/eject.xpm
share/AScd/Themes/wmcdplay/fwd.xpm
share/AScd/Themes/wmcdplay/next.xpm
share/AScd/Themes/wmcdplay/no_repeat.xpm
share/AScd/Themes/wmcdplay/pause.xpm
share/AScd/Themes/wmcdplay/play.xpm
share/AScd/Themes/wmcdplay/previous.xpm
share/AScd/Themes/wmcdplay/repeat.xpm
share/AScd/Themes/wmcdplay/rew.xpm
share/AScd/Themes/wmcdplay/stop.xpm
share/AScd/Themes/zinamp/Theme
share/AScd/Themes/zinamp/ascd.xpm
share/AScd/Themes/zinamp/autoplay.xpm
share/AScd/Themes/zinamp/autoplay_on.xpm
share/AScd/Themes/zinamp/autorepeat.xpm
share/AScd/Themes/zinamp/autorepeat_on.xpm
share/AScd/Themes/zinamp/back.xpm
share/AScd/Themes/zinamp/back_bar.xpm
share/AScd/Themes/zinamp/back_counter.xpm
share/AScd/Themes/zinamp/back_db.xpm
share/AScd/Themes/zinamp/back_icon_center.xpm
share/AScd/Themes/zinamp/back_icon_counter.xpm
share/AScd/Themes/zinamp/back_message.xpm
share/AScd/Themes/zinamp/back_track.xpm
share/AScd/Themes/zinamp/back_volume.xpm
share/AScd/Themes/zinamp/bar.xpm
share/AScd/Themes/zinamp/digits.xpm
share/AScd/Themes/zinamp/down.xpm
share/AScd/Themes/zinamp/eject.xpm
share/AScd/Themes/zinamp/intro.xpm
share/AScd/Themes/zinamp/intro_on.xpm
share/AScd/Themes/zinamp/l_end.xpm
share/AScd/Themes/zinamp/l_start.xpm
share/AScd/Themes/zinamp/loop.xpm
share/AScd/Themes/zinamp/loop_on.xpm
share/AScd/Themes/zinamp/mini_down.xpm
share/AScd/Themes/zinamp/mini_eject.xpm
share/AScd/Themes/zinamp/mini_pause.xpm
share/AScd/Themes/zinamp/mini_pause_on.xpm
share/AScd/Themes/zinamp/mini_play.xpm
share/AScd/Themes/zinamp/mini_play_on.xpm
share/AScd/Themes/zinamp/mini_stop.xpm
share/AScd/Themes/zinamp/mini_up.xpm
share/AScd/Themes/zinamp/mute.xpm
share/AScd/Themes/zinamp/mute_on.xpm
share/AScd/Themes/zinamp/next.xpm
share/AScd/Themes/zinamp/pause.xpm
share/AScd/Themes/zinamp/pause_on.xpm
share/AScd/Themes/zinamp/play.xpm
share/AScd/Themes/zinamp/play_on.xpm
share/AScd/Themes/zinamp/quit.xpm
share/AScd/Themes/zinamp/stop.xpm
share/AScd/Themes/zinamp/stop_on.xpm
share/AScd/Themes/zinamp/volume.xpm
share/AScd/Themes/zinamp/zob.gif
share/AScd/themes-manual.ps.gz
@dirrm share/AScd/Themes/zinamp
@dirrm share/AScd/Themes/wmcdplay
@dirrm share/AScd/Themes/vintage/zob
@dirrm share/AScd/Themes/vintage
@dirrm share/AScd/Themes/tortured
@dirrm share/AScd/Themes/sands
@dirrm share/AScd/Themes/orb
@dirrm share/AScd/Themes/default/quick
@dirrm share/AScd/Themes/default
@dirrm share/AScd/Themes/clean
@dirrm share/AScd/Themes/classic
@dirrm share/AScd/Themes/big
@dirrm share/AScd/Themes
@dirrm share/AScd/Default
@dirrm share/AScd