BasiliskII: Update to git snapshot 20190405 Use GTK2 instead of GTK1. Brings the package around 13 years forward. Should hopefully allow this to build again.diff -r1.39 -r1.40 pkgsrc/emulators/BasiliskII/Makefile
(nia)
@@ -1,37 +1,51 @@ | @@ -1,37 +1,51 @@ | |||
1 | # $NetBSD: Makefile,v 1.39 2018/07/18 00:06:14 joerg Exp $ | 1 | # $NetBSD: Makefile,v 1.40 2019/07/30 08:08:22 nia Exp $ | |
2 | 2 | |||
3 | DISTNAME= BasiliskII_src_01052006 | 3 | DISTNAME= BasiliskII-20190405 | |
4 | PKGNAME= BasiliskII-1.0.20060501 | |||
5 | PKGREVISION= 5 | |||
6 | CATEGORIES= emulators | 4 | CATEGORIES= emulators | |
7 | #MASTER_SITES= http://gwenole.beauchesne.info/projects/basilisk2/files/ | 5 | MASTER_SITES= ${MASTER_SITE_GITHUB:=cebix/} | |
8 | EXTRACT_SUFX= .tar.bz2 | 6 | GITHUB_PROJECT= macemu | |
7 | GITHUB_TAG= 01052ca89d22882c870b84c5498cd0ee9a843b6b | |||
9 | 8 | |||
10 | MAINTAINER= pkgsrc-users@NetBSD.org | 9 | MAINTAINER= pkgsrc-users@NetBSD.org | |
11 | #HOMEPAGE= http://gwenole.beauchesne.info/projects/basilisk2/ | 10 | HOMEPAGE= https://basilisk.cebix.net/ | |
12 | COMMENT= Open Source 68k Macintosh emulator | 11 | COMMENT= Open Source 68k Macintosh emulator | |
12 | LICENSE= gnu-gpl-v2 | |||
13 | ||||
14 | WRKSRC= ${WRKDIR}/${GITHUB_PROJECT}-${GITHUB_TAG}/BasiliskII | |||
15 | CONFIGURE_DIRS= src/Unix | |||
16 | BUILD_DIRS= src/Unix | |||
17 | ||||
18 | USE_LANGUAGES= c c++03 | |||
19 | USE_TOOLS+= aclocal autoheader autoconf automake | |||
20 | USE_TOOLS+= msgfmt msgmerge xgettext | |||
21 | USE_TOOLS+= pkg-config gmake | |||
13 | 22 | |||
14 | WRKSRC= ${WRKDIR}/BasiliskII-1.0 | |||
15 | USE_LANGUAGES= c c++03 | |||
16 | USE_TOOLS+= gmake | |||
17 | GNU_CONFIGURE= yes | 23 | GNU_CONFIGURE= yes | |
18 | CONFIGURE_DIRS= src/Unix | |||
19 | CONFIGURE_ARGS+= --disable-fbdev-dga | 24 | CONFIGURE_ARGS+= --disable-fbdev-dga | |
25 | CONFIGURE_ARGS+= --disable-xf86-dga | |||
26 | CONFIGURE_ARGS+= --disable-xf86-vidmode | |||
27 | ||||
20 | CONFIGURE_ARGS+= --enable-addressing=banks | 28 | CONFIGURE_ARGS+= --enable-addressing=banks | |
21 | CONFIGURE_ARGS+= --without-mon | 29 | CONFIGURE_ARGS+= --without-mon | |
22 | BUILD_DIRS= ${CONFIGURE_DIRS} | 30 | ||
31 | .include "../../mk/bsd.prefs.mk" | |||
32 | ||||
33 | .if ${OPSYS} == "Darwin" | |||
34 | CONFIGURE_ARGS+= --enable-macosx-gui | |||
35 | CONFIGURE_ARGS+= --enable-macosx-sound | |||
36 | .endif | |||
23 | 37 | |||
24 | .include "options.mk" | 38 | .include "options.mk" | |
25 | 39 | |||
26 | INSTALLATION_DIRS= share/doc/BasiliskII | 40 | INSTALLATION_DIRS= share/doc/BasiliskII | |
27 | 41 | |||
28 | post-extract: | 42 | pre-configure: | |
29 | ${MKDIR} ${WRKSRC}/src/Unix/obj | 43 | cd ${WRKSRC}/src/Unix && NO_CONFIGURE=x ./autogen.sh | |
30 | 44 | |||
31 | post-install: | 45 | post-install: | |
32 | ${INSTALL_DATA} ${WRKSRC}/README ${DESTDIR}${PREFIX}/share/doc/BasiliskII/ | 46 | ${INSTALL_DATA} ${WRKSRC}/README ${DESTDIR}${PREFIX}/share/doc/BasiliskII/ | |
33 | ${INSTALL_DATA} ${WRKSRC}/TECH ${DESTDIR}${PREFIX}/share/doc/BasiliskII/ | 47 | ${INSTALL_DATA} ${WRKSRC}/TECH ${DESTDIR}${PREFIX}/share/doc/BasiliskII/ | |
34 | ${INSTALL_DATA} ${WRKSRC}/TODO ${DESTDIR}${PREFIX}/share/doc/BasiliskII/ | 48 | ${INSTALL_DATA} ${WRKSRC}/TODO ${DESTDIR}${PREFIX}/share/doc/BasiliskII/ | |
35 | 49 | |||
36 | .include "../../converters/libiconv/buildlink3.mk" | 50 | .include "../../converters/libiconv/buildlink3.mk" | |
37 | .include "../../mk/bsd.pkg.mk" | 51 | .include "../../mk/bsd.pkg.mk" |
@@ -1,19 +1,7 @@ | @@ -1,19 +1,7 @@ | |||
1 | $NetBSD: distinfo,v 1.19 2015/11/03 20:30:54 agc Exp $ | 1 | $NetBSD: distinfo,v 1.20 2019/07/30 08:08:22 nia Exp $ | |
2 | 2 | |||
3 | SHA1 (BasiliskII_src_01052006.tar.bz2) = 6373b33adf6caec53c5d1ed46a00adcac89ad3bb | 3 | SHA1 (BasiliskII-20190405-01052ca89d22882c870b84c5498cd0ee9a843b6b.tar.gz) = b83f76e9b37318b6bc4e43e73db0d2ed00fc2981 | |
4 | RMD160 (BasiliskII_src_01052006.tar.bz2) = bb1a061c504bd7d28b869e0eec2806cf8a79cf8d | 4 | RMD160 (BasiliskII-20190405-01052ca89d22882c870b84c5498cd0ee9a843b6b.tar.gz) = 1c16c477fd1e2980ceb4e172d896fb2da4d9580b | |
5 | SHA512 (BasiliskII_src_01052006.tar.bz2) = cbe78f525e729aedafc98d8f469b4eaddc93e1088f2341fe4eef612d5ba1d076d7a9e3c7547392a1ddb80280a5bd48dbbcee6ff80d405954c60bd52f2cb28171 | 5 | SHA512 (BasiliskII-20190405-01052ca89d22882c870b84c5498cd0ee9a843b6b.tar.gz) = 82a7720c369489d8a27f175550973a72fa77c76553e38734fb2efef6ecf29a2a1c195797d4d487b1e6cca0f21f778a640d69c2686af6ae1687e3e8234dbf7245 | |
6 | Size (BasiliskII_src_01052006.tar.bz2) = 1310908 bytes | 6 | Size (BasiliskII-20190405-01052ca89d22882c870b84c5498cd0ee9a843b6b.tar.gz) = 2198906 bytes | |
7 | SHA1 (patch-aa) = 387f7a3f6edac21b99d81ba88a0eeed4591c75ef | 7 | SHA1 (patch-ad) = 1d8bc61f6386855c6d83ff4e5a13f55d5e22325a | |
8 | SHA1 (patch-ab) = 4ada93db64772e70e95c58b6a324019c1da6a72d | |||
9 | SHA1 (patch-ac) = ac4d313a8c60a807a5ea563dcca995e092be9c15 | |||
10 | SHA1 (patch-ad) = 6a215532e891848fe449ef5fe4307793c34bb9d6 | |||
11 | SHA1 (patch-ae) = dcac9287614535fa72fe9c8b0e3c516575e40887 | |||
12 | SHA1 (patch-af) = 285b46cc6e1b761e12498603579424b4f49689c1 | |||
13 | SHA1 (patch-ag) = 962620071eec777d22c49a35795b819432aa8974 | |||
14 | SHA1 (patch-ah) = 0f67eed6f59e6c381c1a6fbeb98261cad4697760 | |||
15 | SHA1 (patch-ai) = fc527be478576f157bffbd6a91eb1bdc85903fb1 | |||
16 | SHA1 (patch-aj) = c331aa7080b330cf58f58c72456b91b0e5a2156f | |||
17 | SHA1 (patch-ak) = 1dad263b22ae3257a6e34b90972ba264ada7b287 | |||
18 | SHA1 (patch-src-slirp-misc.c) = c9209ae4f3b142a506d42d296ed854974ec47117 | |||
19 | SHA1 (patch-src-slirp-slirp.h) = c0c93d01e5b8d5182ddeed87b1434a7b113175e0 |
@@ -1,36 +1,33 @@ | @@ -1,36 +1,33 @@ | |||
1 | # $NetBSD: options.mk,v 1.6 2012/10/23 10:24:03 wiz Exp $ | 1 | # $NetBSD: options.mk,v 1.7 2019/07/30 08:08:22 nia Exp $ | |
2 | 2 | |||
3 | PKG_OPTIONS_VAR= PKG_OPTIONS.BasiliskII | 3 | PKG_OPTIONS_VAR= PKG_OPTIONS.BasiliskII | |
4 | PKG_SUPPORTED_OPTIONS= esound gtk sdl | 4 | PKG_SUPPORTED_OPTIONS= esound gtk2 sdl | |
5 | PKG_OPTIONS_LEGACY_OPTS+= esd:esound | 5 | PKG_OPTIONS_LEGACY_OPTS+= esd:esound | |
6 | 6 | |||
7 | .include "../../mk/bsd.fast.prefs.mk" | |||
8 | ||||
9 | .if ${OPSYS} != "Darwin" | |||
10 | PKG_SUGGESTED_OPTIONS+= gtk2 sdl | |||
11 | .endif | |||
12 | ||||
7 | .include "../../mk/bsd.options.mk" | 13 | .include "../../mk/bsd.options.mk" | |
8 | 14 | |||
9 | .if !empty(PKG_OPTIONS:Mesound) | 15 | .if !empty(PKG_OPTIONS:Mesound) | |
10 | CONFIGURE_ARGS+= --with-esd | 16 | CONFIGURE_ARGS+= --with-esd | |
11 | .include "../../audio/esound/buildlink3.mk" | 17 | .include "../../audio/esound/buildlink3.mk" | |
12 | .else | 18 | .else | |
13 | CONFIGURE_ARGS+= --without-esd | 19 | CONFIGURE_ARGS+= --without-esd | |
14 | .endif | 20 | .endif | |
15 | 21 | |||
16 | .if !empty(PKG_OPTIONS:Mgtk) | 22 | .if !empty(PKG_OPTIONS:Mgtk2) | |
17 | CONFIGURE_ARGS+= --with-gtk | 23 | CONFIGURE_ARGS+= --with-gtk | |
18 | .include "../../x11/gtk/buildlink3.mk" | 24 | .include "../../x11/gtk2/buildlink3.mk" | |
19 | .else | 25 | .else | |
20 | CONFIGURE_ARGS+= --without-gtk | 26 | CONFIGURE_ARGS+= --without-gtk | |
21 | .endif | 27 | .endif | |
22 | 28 | |||
23 | .if !empty(PKG_OPTIONS:Msdl) | 29 | .if !empty(PKG_OPTIONS:Msdl) | |
24 | CONFIGURE_ARGS+= --enable-sdl-audio | 30 | CONFIGURE_ARGS+= --enable-sdl-audio | |
25 | CONFIGURE_ARGS+= --enable-sdl-video | 31 | CONFIGURE_ARGS+= --enable-sdl-video | |
26 | .include "../../devel/SDL/buildlink3.mk" | 32 | .include "../../devel/SDL/buildlink3.mk" | |
27 | .else | |||
28 | BUILDLINK_DEPMETHOD.libXt?= build | |||
29 | ||||
30 | .include "../../x11/libSM/buildlink3.mk" | |||
31 | .include "../../x11/libXext/buildlink3.mk" | |||
32 | .include "../../x11/libX11/buildlink3.mk" | |||
33 | .include "../../x11/libXt/buildlink3.mk" | |||
34 | .include "../../x11/libXxf86dga/buildlink3.mk" | |||
35 | .include "../../x11/libXxf86vm/buildlink3.mk" | |||
36 | .endif | 33 | .endif |
@@ -1,80 +1,15 @@ | @@ -1,80 +1,15 @@ | |||
1 | $NetBSD: patch-ad,v 1.4 2005/11/03 21:34:23 rillig Exp $ | 1 | $NetBSD: patch-ad,v 1.5 2019/07/30 08:08:22 nia Exp $ | |
2 | 2 | |||
3 | --- src/Unix/sshpty.c.orig 2003-08-17 10:20:22.000000000 +0000 | 3 | NetBSD does not have this pts ioctl. | |
4 | ||||
5 | --- src/Unix/sshpty.c.orig 2019-04-05 05:12:49.000000000 +0000 | |||
4 | +++ src/Unix/sshpty.c | 6 | +++ src/Unix/sshpty.c | |
5 | @@ -18,6 +18,7 @@ RCSID("$OpenBSD: sshpty.c,v 1.4 2001/12/ | 7 | @@ -182,7 +182,7 @@ pty_allocate(int *ptyfd, int *ttyfd, cha | |
6 | /* Selections from openssh's "includes.h" */ | |||
7 | #include "config.h" | |||
8 | ||||
9 | +#include <signal.h> | |||
10 | #include <stdio.h> | |||
11 | #include <ctype.h> | |||
12 | #include <errno.h> | |||
13 | @@ -145,19 +146,30 @@ pty_allocate(int *ptyfd, int *ttyfd, cha | |||
14 | */ | |||
15 | int ptm; | |||
16 | char *pts; | |||
17 | +#ifdef __sunos__ | |||
18 | mysig_t old_signal; | |||
19 | - | |||
20 | +#else | |||
21 | + sig_t old_signal; | |||
22 | +#endif | |||
23 | ptm = open("/dev/ptmx", O_RDWR | O_NOCTTY); | |||
24 | if (ptm < 0) { | |||
25 | error("/dev/ptmx: %.100s", strerror(errno)); | |||
26 | return 0; | |||
27 | } | |||
28 | +#ifdef __sunos__ | |||
29 | old_signal = mysignal(SIGCHLD, SIG_DFL); | |||
30 | +#else | |||
31 | + old_signal = signal(SIGCHLD, SIG_DFL); | |||
32 | +#endif | |||
33 | if (grantpt(ptm) < 0) { | |||
34 | error("grantpt: %.100s", strerror(errno)); | |||
35 | return 0; | |||
36 | } | |||
37 | +#ifdef __sunos__ | |||
38 | mysignal(SIGCHLD, old_signal); | |||
39 | +#else | |||
40 | + signal(SIGCHLD, old_signal); | |||
41 | +#endif | |||
42 | if (unlockpt(ptm) < 0) { | |||
43 | error("unlockpt: %.100s", strerror(errno)); | |||
44 | return 0; | |||
45 | @@ -175,7 +187,7 @@ pty_allocate(int *ptyfd, int *ttyfd, cha | |||
46 | close(*ptyfd); | 8 | close(*ptyfd); | |
47 | return 0; | 9 | return 0; | |
48 | } | 10 | } | |
49 | -#ifndef HAVE_CYGWIN | 11 | -#ifndef HAVE_CYGWIN | |
50 | +#if !defined(__NetBSD__) | 12 | +#if !defined(HAVE_CYGWIN) && !defined(__NetBSD__) | |
51 | /* | 13 | /* | |
52 | * Push the appropriate streams modules, as described in Solaris pts(7). | 14 | * Push the appropriate streams modules, as described in Solaris pts(7). | |
53 | * HP-UX pts(7) doesn't have ttcompat module. | 15 | * HP-UX pts(7) doesn't have ttcompat module. | |
54 | @@ -184,7 +196,7 @@ pty_allocate(int *ptyfd, int *ttyfd, cha | |||
55 | error("ioctl I_PUSH ptem: %.100s", strerror(errno)); | |||
56 | if (ioctl(*ttyfd, I_PUSH, "ldterm") < 0) | |||
57 | error("ioctl I_PUSH ldterm: %.100s", strerror(errno)); | |||
58 | -#ifndef __hpux | |||
59 | +#if !defined(__NetBSD__) | |||
60 | if (ioctl(*ttyfd, I_PUSH, "ttcompat") < 0) | |||
61 | error("ioctl I_PUSH ttcompat: %.100s", strerror(errno)); | |||
62 | #endif | |||
63 | @@ -277,7 +289,7 @@ pty_allocate(int *ptyfd, int *ttyfd, cha | |||
64 | } | |||
65 | /* set tty modes to a sane state for broken clients */ | |||
66 | if (tcgetattr(*ptyfd, &tio) < 0) | |||
67 | - log("Getting tty modes for pty failed: %.100s", strerror(errno)); | |||
68 | + error("Getting tty modes for pty failed: %.100s", strerror(errno)); | |||
69 | else { | |||
70 | tio.c_lflag |= (ECHO | ISIG | ICANON); | |||
71 | tio.c_oflag |= (OPOST | ONLCR); | |||
72 | @@ -285,7 +297,7 @@ pty_allocate(int *ptyfd, int *ttyfd, cha | |||
73 | ||||
74 | /* Set the new modes for the terminal. */ | |||
75 | if (tcsetattr(*ptyfd, TCSANOW, &tio) < 0) | |||
76 | - log("Setting tty modes for pty failed: %.100s", strerror(errno)); | |||
77 | + error("Setting tty modes for pty failed: %.100s", strerror(errno)); | |||
78 | } | |||
79 | ||||
80 | return 1; |