View | Details | Raw Unified | Return to bug 152393
Collapse All | Expand All

(-)Makefile (-31 / +17 lines)
Lines 6-16 Link Here
6
#
6
#
7
7
8
PORTNAME=	stonx
8
PORTNAME=	stonx
9
PORTVERSION=	0.6.7e
9
PORTVERSION=	0.6.7e.6
10
PORTREVISION=	1
11
CATEGORIES=	emulators
10
CATEGORIES=	emulators
12
MASTER_SITES=	ftp://ftp.complang.tuwien.ac.at/pub/nino/stonx-current/
11
MASTER_SITES=	SF/stonx/stonx/0.6.7.6
13
DISTNAME=	STonX-0.6.7-epsilon
12
DISTNAME=	STonX-0.6.7.6
14
13
15
MAINTAINER=	treif@mayn.de
14
MAINTAINER=	treif@mayn.de
16
COMMENT=	AtariST emulator
15
COMMENT=	AtariST emulator
Lines 36-85 Link Here
36
# Installing
35
# Installing
37
#
36
#
38
BINDIR=	${PREFIX}/bin
37
BINDIR=	${PREFIX}/bin
39
LIBDIR=	${PREFIX}/lib/X11/STonX
40
FNTDIR=	${PREFIX}/lib/X11/fonts/misc
38
FNTDIR=	${PREFIX}/lib/X11/fonts/misc
41
39
42
DATA=	tos.img cartridge.img Keysyms Keysyms.G atari/FLOPPY-4MB \
40
DATA=	atari/bench1.pas atari/bench1.prg
43
	atari/bench1.pas atari/bench1.prg atari/final.tos
41
ETCFILES=	keysyms-alternative keysyms-german keysyms-spanish
44
DOCS=	../COPYING DEBUGGING FONTS INSTALL PROGRAMS README RELEASE_NOTES \
42
DOCS=	../COPYING AUTHORS DEBUGGING INSTALL README RELEASE_NOTES \
45
	TOS-VERSIONS
43
	TOS-VERSIONS
46
FONTS=	System0-iso.pcf System0.pcf System1-iso.pcf System1.pcf \
44
FONTS=	System0-iso.pcf System0.pcf System1-iso.pcf System1.pcf \
47
	System2-iso.pcf System2.pcf
45
	System2-iso.pcf System2.pcf
48
46
49
pre-install:
47
post-install:
50
	@${ECHO_MSG} "#!/bin/sh" > ${WRKSRC}/stonx.script
48
.for f in ${ETCFILES}
51
	@${ECHO_MSG} "cd ${LIBDIR}" >> ${WRKSRC}/stonx.script
49
	${INSTALL_DATA} ${WRKSRC}/etc/$f ${ETCDIR}/
52
	@${ECHO_MSG} "${BINDIR}/stonx.bin -noaudio \
53
		-disk A:FLOPPY-4MB -fs C:." >> ${WRKSRC}/stonx.script
54
55
do-install:
56
	@${ECHO_MSG} "===> Installing programs"
57
	${INSTALL_SCRIPT} ${WRKSRC}/stonx.script ${BINDIR}/stonx
58
	${INSTALL_PROGRAM} ${WRKSRC}/stonx ${BINDIR}/stonx.bin
59
60
	@${ECHO_MSG} "===> Installing data"
61
	@${MKDIR} ${LIBDIR}
62
.for f in ${DATA}
63
	${INSTALL_DATA} ${WRKSRC}/$f ${LIBDIR}
64
.endfor
50
.endfor
65
66
	@${ECHO_MSG} "===> Installing fonts"
51
	@${ECHO_MSG} "===> Installing fonts"
67
.for f in ${FONTS}
52
.for f in ${FONTS}
68
	${INSTALL_DATA} ${WRKSRC}/data/$f ${FNTDIR}
53
	${INSTALL_DATA} ${WRKSRC}/data/$f ${FNTDIR}/
69
	@${GZIP_CMD} ${FNTDIR}/$f
54
	@${GZIP_CMD} ${FNTDIR}/$f
70
.endfor
55
.endfor
71
	@mkfontdir ${FNTDIR}
56
	@mkfontdir ${FNTDIR}
72
73
.if !defined(NOPORTDOCS)
57
.if !defined(NOPORTDOCS)
74
	@${ECHO_MSG} "===> Installing docs"
58
	@${ECHO_MSG} "===> Installing docs"
75
	@${MKDIR} ${LIBDIR}/docs
59
	@${MKDIR} ${DOCSDIR}
76
.for f in ${DOCS}
60
.for f in ${DOCS}
77
	${INSTALL_DATA} ${WRKSRC}/docs/$f ${LIBDIR}/docs
61
	${INSTALL_DATA} ${WRKSRC}/docs/$f ${DOCSDIR}/
62
.endfor
63
	@${MKDIR} ${EXAMPLESDIR}
64
.for f in ${DATA}
65
	${INSTALL_DATA} ${WRKSRC}/$f ${EXAMPLESDIR}/
78
.endfor
66
.endfor
79
.endif
67
.endif
80
81
.if (defined(DISPLAY) && ${DISPLAY} != "")
68
.if (defined(DISPLAY) && ${DISPLAY} != "")
82
post-install:
83
	@xset fp+ ${FNTDIR}
69
	@xset fp+ ${FNTDIR}
84
	@xset fp rehash
70
	@xset fp rehash
85
.endif
71
.endif
Lines 88-94 Link Here
88
74
89
.if !exists(${DISTDIR}/${TOSIMG})
75
.if !exists(${DISTDIR}/${TOSIMG})
90
IGNORE="Please get a ROM dump from your AtariST and save it as"\
76
IGNORE="Please get a ROM dump from your AtariST and save it as"\
91
"\"${TOSIMG}\" in \"${DISTDIR}\" manually, and then make install again"
77
"\"${TOSIMG}\" in \"${DISTDIR}\" manually, and then make again"
92
.endif
78
.endif
93
79
94
BUILD_DEPENDS+=		${LOCALBASE}/lib/X11/fonts/misc/10x20-ISO8859-1.pcf.gz:${PORTSDIR}/x11-fonts/font-misc-misc
80
BUILD_DEPENDS+=		${LOCALBASE}/lib/X11/fonts/misc/10x20-ISO8859-1.pcf.gz:${PORTSDIR}/x11-fonts/font-misc-misc
(-)distinfo (-5 / +3 lines)
Lines 1-5 Link Here
1
MD5 (STonX-0.6.7-epsilon.tar.gz) = c8a5a3bbf6a7c13c1c1e6176c6e6d93a
1
MD5 (STonX-0.6.7.6.tar.gz) = 77f356c428666b31318190b2d28a049a
2
SHA256 (STonX-0.6.7-epsilon.tar.gz) = 814b0a3978c4dc1b233ca5696e6979adc4a84a19d43a7a26eb8e3f469db773b6
2
SHA256 (STonX-0.6.7.6.tar.gz) = 664df47df3be34be852dff24d4a43f507bf0a1d4d137e8016128a23486aafbd8
3
SIZE (STonX-0.6.7-epsilon.tar.gz) = 192149
3
SIZE (STonX-0.6.7.6.tar.gz) = 379738
4
MD5 (tos.img) = IGNORE
5
SHA256 (tos.img) = IGNORE
(-)pkg-plist (-19 / +25 lines)
Lines 1-29 Link Here
1
bin/stonx
1
bin/stonx
2
bin/stonx.bin
2
%%ETCDIR%%/keysyms
3
lib/X11/STonX/FLOPPY-4MB
3
%%ETCDIR%%/keysyms-alternative
4
lib/X11/STonX/Keysyms
4
%%ETCDIR%%/keysyms-german
5
lib/X11/STonX/Keysyms.G
5
%%ETCDIR%%/keysyms-spanish
6
lib/X11/STonX/bench1.pas
6
%%ETCDIR%%/stonxrc
7
lib/X11/STonX/bench1.prg
7
%%DATADIR%%/cartridge.img
8
lib/X11/STonX/cartridge.img
8
%%DATADIR%%/gemdos_c/bench1.prg
9
lib/X11/STonX/final.tos
9
%%DATADIR%%/gemdos_c/final.tos
10
lib/X11/STonX/tos.img
10
%%DATADIR%%/gemdos_c/mint/stonx.xfs
11
%%DATADIR%%/tos.img
11
lib/X11/fonts/misc/System0-iso.pcf.gz
12
lib/X11/fonts/misc/System0-iso.pcf.gz
12
lib/X11/fonts/misc/System0.pcf.gz
13
lib/X11/fonts/misc/System0.pcf.gz
13
lib/X11/fonts/misc/System1-iso.pcf.gz
14
lib/X11/fonts/misc/System1-iso.pcf.gz
14
lib/X11/fonts/misc/System1.pcf.gz
15
lib/X11/fonts/misc/System1.pcf.gz
15
lib/X11/fonts/misc/System2-iso.pcf.gz
16
lib/X11/fonts/misc/System2-iso.pcf.gz
16
lib/X11/fonts/misc/System2.pcf.gz
17
lib/X11/fonts/misc/System2.pcf.gz
17
lib/X11/STonX/docs/COPYING
18
%%PORTDOCS%%%%DOCSDIR%%/AUTHORS
18
lib/X11/STonX/docs/DEBUGGING
19
%%PORTDOCS%%%%DOCSDIR%%/COPYING
19
lib/X11/STonX/docs/FONTS
20
%%PORTDOCS%%%%DOCSDIR%%/DEBUGGING
20
lib/X11/STonX/docs/INSTALL
21
%%PORTDOCS%%%%DOCSDIR%%/INSTALL
21
lib/X11/STonX/docs/PROGRAMS
22
%%PORTDOCS%%%%DOCSDIR%%/README
22
lib/X11/STonX/docs/README
23
%%PORTDOCS%%%%DOCSDIR%%/RELEASE_NOTES
23
lib/X11/STonX/docs/RELEASE_NOTES
24
%%PORTDOCS%%%%DOCSDIR%%/TOS-VERSIONS
24
lib/X11/STonX/docs/TOS-VERSIONS
25
%%PORTDOCS%%%%EXAMPLESDIR%%/bench1.pas
25
@dirrm lib/X11/STonX/docs
26
%%PORTDOCS%%%%EXAMPLESDIR%%/bench1.prg
26
@dirrm lib/X11/STonX
27
%%PORTDOCS%%@dirrm %%EXAMPLESDIR%%
28
%%PORTDOCS%%@dirrm %%DOCSDIR%%
29
@dirrm %%DATADIR%%/gemdos_c/mint
30
@dirrm %%DATADIR%%/gemdos_c
31
@dirrm %%DATADIR%%
32
@dirrmtry %%ETCDIR%%
27
@exec mkfontdir %D/lib/X11/fonts/misc
33
@exec mkfontdir %D/lib/X11/fonts/misc
28
@exec xset fp+ %D/lib/X11/fonts/misc
34
@exec xset fp+ %D/lib/X11/fonts/misc
29
@exec xset fp rehash
35
@exec xset fp rehash
(-)files/patch-audio.c (-8 / +9 lines)
Lines 1-11 Link Here
1
--- audio.c.orig	Mon May  5 03:07:05 1997
1
--- audio.c.orig	2004-08-15 16:07:55.000000000 +0200
2
+++ audio.c	Wed Oct 25 19:33:27 2006
2
+++ audio.c	2010-04-03 09:44:58.000000000 +0200
3
@@ -36,7 +36,7 @@
3
@@ -45,6 +45,9 @@
4
 #include <linux/sched.h>
4
 #include <linux/unistd.h>
5
 #include <linux/unistd.h>
5
 #endif
6
 #endif
6
 #else /* FreeBSD? */
7
+#elif defined(__FreeBSD__)
7
-#include <machine/soundcard.h>
8
+#include <sys/soundcard.h>
8
+#include <sys/soundcard.h>
9
 #endif
9
+#define SOUND_DEVICE "/dev/dsp"
10
 #include <unistd.h>
10
 #elif defined(__NetBSD__) || defined(__OpenBSD__)
11
 #define LINUX_DEFAULT_FREQ (22050)
11
 /* NetBSD's Linux API emulation, require -lossaudio too */
12
 #include <soundcard.h>

Return to bug 152393