diff options
Diffstat (limited to 'misc/par')
-rw-r--r-- | misc/par/DESCR | 12 | ||||
-rw-r--r-- | misc/par/Makefile | 74 | ||||
-rw-r--r-- | misc/par/PLIST | 6 | ||||
-rw-r--r-- | misc/par/distinfo | 14 | ||||
-rw-r--r-- | misc/par/patches/patch-aa | 12 | ||||
-rw-r--r-- | misc/par/patches/patch-ab | 72 | ||||
-rw-r--r-- | misc/par/patches/patch-ac | 23 | ||||
-rw-r--r-- | misc/par/patches/patch-ad | 76 | ||||
-rw-r--r-- | misc/par/patches/patch-ae | 47 | ||||
-rw-r--r-- | misc/par/patches/patch-af | 19 | ||||
-rw-r--r-- | misc/par/patches/patch-ag | 123 | ||||
-rw-r--r-- | misc/par/patches/patch-ah | 15 | ||||
-rw-r--r-- | misc/par/patches/patch-ai | 15 | ||||
-rw-r--r-- | misc/par/patches/patch-aj | 26 |
14 files changed, 534 insertions, 0 deletions
diff --git a/misc/par/DESCR b/misc/par/DESCR new file mode 100644 index 00000000000..fa5420c2930 --- /dev/null +++ b/misc/par/DESCR @@ -0,0 +1,12 @@ +Arena was the testbed browser for HTML 3.0 created by the W3C +(www.w3.org). It is now being maintained and improved by Yggdrasil +Computing (www.yggdrasil.com). + +The original description from the W3C: + +Arena's primary purpose is to be a testbed for new features of the web. In +the past, we have implemented HTML3 features including tables and math. +Currently, style sheets are in focus along with new graphics formats such +as PNG. Also, Arena is a testing tool for the W3C Reference Library. The +library provides a common platform which will ensure future compatibility +on the web. If you are a browser vendor, it will save you time. diff --git a/misc/par/Makefile b/misc/par/Makefile new file mode 100644 index 00000000000..1e3912e5614 --- /dev/null +++ b/misc/par/Makefile @@ -0,0 +1,74 @@ +# $NetBSD: Makefile,v 1.1.1.1 2002/01/04 19:53:04 fredb Exp $ + +DISTNAME= arena-0.3.62 +PKGNAME= arena-0.3.62nb1 +WRKSRC= ${WRKDIR}/Arena-0.3.62 +CATEGORIES= www +MASTER_SITES= ftp://ftp.yggdrasil.com/pub/dist/web/arena/ + +MAINTAINER= tv@netbsd.org +HOMEPAGE= http://www.yggdrasil.com/Products/Arena/ +COMMENT= Experimental HTML 3 browser, supports math and style sheets + +BUILD_DEPENDS+= autoconf>=2.13:../../devel/autoconf +DEPENDS+= jpeg-6b:../../graphics/jpeg +DEPENDS+= libwww>=5.3.2nb1:../../www/libwww +DEPENDS+= png>=1.0.11:../../graphics/png + +BUILD_USES_MSGFMT= YES +GNU_CONFIGURE= YES +USE_GMAKE= YES +USE_LIBINTL= YES +USE_X11= YES +USE_XPM= YES + +# Comment out the following to build in the debugging symbols. +CONFIGURE_ARGS+= --without-debug + +CONFIGURE_ARGS+= --with-arenarc-dir=${LOCALBASE}/etc +CONFIGURE_ARGS+= --with-libwww-config-h-dir=${WRKDIR} +CONFIGURE_ARGS+= --with-libwww-include=${LOCALBASE}/include/w3c-libwww +CONFIGURE_ARGS+= --with-libwww-libdir=${LOCALBASE}/lib + +CPPFLAGS+= -I${LOCALBASE}/include -I${X11BASE}/include +MAKEFILE= makefile + +# Arena requires libwww's "config.h" header - it is installed as "wwwconf.h", +# so make a symlink in ${WRKSRC} +pre-configure: + for c in ${LOCALBASE}/include/w3c-libwww/wwwconf.h \ + ${LOCALBASE}/include/wwwconf.h; do \ + if [ -f $$c ]; then \ + ${LN} -sf $$c ${WRKSRC}/config.h; \ + fi; \ + done + cd ${WRKSRC} && ${LOCALBASE}/bin/autoconf + +do-install: + ${INSTALL_PROGRAM} \ + ${WRKSRC}/Arena/${MACHINE_GNU_PLATFORM:C/.*-.*-//}/arena \ + ${PREFIX}/bin/ + ${INSTALL_DATA} ${WRKSRC}/Arena/Source/arenarc ${PREFIX}/share/examples/ + if [ ! -f ${LOCALBASE}/etc/arenarc ]; then \ + ${CP} ${PREFIX}/share/examples/arenarc ${LOCALBASE}/etc/; \ + fi + ${INSTALL_DATA_DIR} ${PREFIX}/share/locale/en/LC_MESSAGES + msgfmt --output-file=${WRKDIR}/Arena.gmo \ + ${WRKSRC}/Arena/LC_MESSAGES/en/Arena.po + ${INSTALL_DATA} ${WRKDIR}/Arena.gmo \ + ${PREFIX}/share/locale/en/LC_MESSAGES/ + ${INSTALL_DATA} ${WRKSRC}/Arena/doc/arena.man ${PREFIX}/man/man1/arena.1 + +.include "../../mk/bsd.prefs.mk" + +.if defined(EXTRACT_USING_PAX) +GLOBAL_EXCLUDE_ARG= -c +.else +EXCLUDE_ARG= --exclude +.endif +EXTRACT_ELEMENTS= ${GLOBAL_EXCLUDE_ARG} +.for DONT_EXTRACT_SUBDIR in jpeg-* libpng-* zlib-* +EXTRACT_ELEMENTS+= ${EXCLUDE_ARG} Arena-*/Auxiliary/${DONT_EXTRACT_SUBDIR} +.endfor + +.include "../../mk/bsd.pkg.mk" diff --git a/misc/par/PLIST b/misc/par/PLIST new file mode 100644 index 00000000000..57ce2c37918 --- /dev/null +++ b/misc/par/PLIST @@ -0,0 +1,6 @@ +@comment $NetBSD: PLIST,v 1.1.1.1 2002/01/04 19:53:07 fredb Exp $ +bin/arena +share/examples/arenarc +@exec if [ ! -f ${LOCALBASE}/etc/arenarc ]; then cp %D/share/examples/arenarc ${LOCALBASE}/etc/; fi +man/man1/arena.1 +share/locale/en/LC_MESSAGES/Arena.gmo diff --git a/misc/par/distinfo b/misc/par/distinfo new file mode 100644 index 00000000000..e4b33249937 --- /dev/null +++ b/misc/par/distinfo @@ -0,0 +1,14 @@ +$NetBSD: distinfo,v 1.1.1.1 2002/01/04 19:53:07 fredb Exp $ + +SHA1 (arena-0.3.62.tar.gz) = 21a28049c519630f7a2c0a759568316102f07410 +Size (arena-0.3.62.tar.gz) = 1277043 bytes +SHA1 (patch-aa) = 43382f6bf4444bbbdae50d0d204fadf3ca392292 +SHA1 (patch-ab) = 48eef083cdaf34b3570986efc61e577cbf392b1f +SHA1 (patch-ac) = 7a5fa61c05725af16be886a4da6faab394253fd2 +SHA1 (patch-ad) = 39e04521500752798c452c60c7aa66c603438414 +SHA1 (patch-ae) = 48969e4e577902369801a419165bc6cc36c6f094 +SHA1 (patch-af) = 77a7c46de8cd7c15eced442fa44081163920dd00 +SHA1 (patch-ag) = 8d9b6181ca38c37c60124ddece89c26a64fe1737 +SHA1 (patch-ah) = 1e7907dc79a394f3f3adf138d0721a8fb67c8d66 +SHA1 (patch-ai) = 8e943f47afd8dbd268e34e52e854f8028ec028c5 +SHA1 (patch-aj) = 6c4f011abfb08d5e0b84aa8dbc3d4d3941eb81c1 diff --git a/misc/par/patches/patch-aa b/misc/par/patches/patch-aa new file mode 100644 index 00000000000..8a0b1154270 --- /dev/null +++ b/misc/par/patches/patch-aa @@ -0,0 +1,12 @@ +$NetBSD: patch-aa,v 1.1.1.1 2002/01/04 19:53:07 fredb Exp $ + +--- Arena/Source/spawn.c.orig Tue Jul 14 19:15:17 1998 ++++ Arena/Source/spawn.c Tue Jul 14 19:15:28 1998 +@@ -8,7 +8,6 @@ + #include <limits.h> + #include <signal.h> + #include <stdarg.h> +-#include <waitflags.h> + + #include "arena.h" + #ifdef ARENA_DEBUG diff --git a/misc/par/patches/patch-ab b/misc/par/patches/patch-ab new file mode 100644 index 00000000000..98f242e2b9a --- /dev/null +++ b/misc/par/patches/patch-ab @@ -0,0 +1,72 @@ +$NetBSD: patch-ab,v 1.1.1.1 2002/01/04 19:53:07 fredb Exp $ + +--- configure.in.orig Wed Nov 25 05:20:37 1998 ++++ configure.in Sun Oct 31 00:59:09 1999 +@@ -333,13 +333,13 @@ + ) + AC_ARG_WITH(libwww_libdir, + [ --with-libwww-libdir=DIR +- Specify directory where the libwww.a resides.], ++ Specify directory where the libwww modules reside.], + [ + if test "${with_libwww_libdir+set}" = "set" ; + then + if test "${with_libwww_libdir}" = "no" ; + then +- AC_MSG_WARN(Without libwww.a library? =O) ++ AC_MSG_WARN(Without libwww modules? =O) + else + libwww_library_dir="${with_libwww_libdir}" + if test -d ${libwww_library_dir} ; +@@ -395,7 +395,7 @@ + ] + ) + +-libwww="libwww" ++libwww="libwwwinit" + + # + if test "${libwww_include+set}" = "set" && \ +@@ -474,7 +474,7 @@ + fi + fi + # +- libwww_dep="$libwww" ++ libwww_dep="$libwwwinit" + # + # Aren't all the necessary symbols already defined? + # +@@ -531,7 +531,7 @@ + # + for ac_dir in $LibWWWPATH ; + do +- if test -f ${ac_dir}/libwww.a && \ ++ if test -f ${ac_dir}/libwwwinit.a && \ + test -f ${ac_dir}/include/WWWLib.h && \ + test -f ${ac_dir}/config.h ; + then +@@ -566,7 +566,7 @@ + test -f ${ac_dir}/config.h.in ; + then + ac_dir_f="`cd $ac_dir ; $BINPWD`" +- libwww_dep="libwww" ++ libwww_dep="libwwwinit" + : ${libwww_dir:="$ac_dir_f"} + libwww_version="5" + libwww_distribution="source" +@@ -897,6 +897,15 @@ + + AC_CHECK_FUNCS(snprintf vsnprintf strerror strncpy strndup strdup strstr) + ++if test "${ac_cv_header_sys_time_h}" = "yes" ; ++ then ++ AC_CHECK_FUNCS(setitimer) ++ if test "${ac_cv_func_setitimer}" = "yes" ; ++ then ++dnl XXX Need to actually test for itimerval in sys/time.h! ++ AC_DEFINE(SETITIMER_USES_TIMEVAL) ++ fi ++fi + + # + # Check if we want to use index or strchr diff --git a/misc/par/patches/patch-ac b/misc/par/patches/patch-ac new file mode 100644 index 00000000000..495dabbaa8c --- /dev/null +++ b/misc/par/patches/patch-ac @@ -0,0 +1,23 @@ +$NetBSD: patch-ac,v 1.1.1.1 2002/01/04 19:53:08 fredb Exp $ + +--- Arena/Source/toolbar.c.orig Wed Nov 25 05:26:52 1998 ++++ Arena/Source/toolbar.c Mon Oct 4 01:47:53 1999 +@@ -1010,14 +1010,15 @@ + * and proceed if looks valid + */ + if (Printer != NULL) ++ { + argv = SpawnStringToRagged(Printer, &argc); +- +- if (Printer == NULL || argv == NULL || argc == 0) ++ if (argv == NULL || argc == 0) return; ++ } ++ else + { + Announce(_("No printer specified")); + XUndefineCursor(display, win); + XFlush(display); +- SpawnFreeRagged(&argc, &argv); + SpawnUnBlock(&PrintBlocker); + return; + } diff --git a/misc/par/patches/patch-ad b/misc/par/patches/patch-ad new file mode 100644 index 00000000000..f8b2ef30500 --- /dev/null +++ b/misc/par/patches/patch-ad @@ -0,0 +1,76 @@ +$NetBSD: patch-ad,v 1.1.1.1 2002/01/04 19:53:08 fredb Exp $ + +--- makefile.in.orig Mon Mar 23 17:16:21 1998 ++++ makefile.in Mon Oct 11 05:36:40 1999 +@@ -138,8 +138,8 @@ + MSGFMT = @MSGFMT@ + XGETTEXT= @XGETTEXT@ + INSTALL = @INSTALL@ +-INSTALL_data = $(INSTALL) -o root -g root -m 644 +-INSTALL_binary = $(INSTALL) -o root -g root -m 755 ++INSTALL_data = $(INSTALL) -m 644 ++INSTALL_binary = $(INSTALL) -m 755 + + # + # If we need to force debug stuff inclusion. +@@ -262,15 +262,18 @@ + # + + # W3C reference library (libwww). +-libwww = @libwww@ +-libwww_dep = @libwww_dep@ ++libwww = libwwwapp libwwwcache libwwwcore libwwwdir libwwwfile libwwwftp \ ++ libwwwgopher libwwwhtml libwwwhttp libwwwinit libwwwmime libwwwmux \ ++ libwwwnews libwwwstream libwwwtelnet libwwwtrans libwwwutils libwwwxml \ ++ libwwwzip libxmltok libxmlparse ++libwww_dep = + libwww_dir = @libwww_dir@ + libwww_version = @libwww_version@ + libwww_include = @libwww_include@ + libwww_config_h_dir = @libwww_config_h_dir@ + libwww_library = @libwww_library@ + libwww_make_dir = @libwww_make_dir@ +-libwww_make_target = @libwww_make_target@ ++libwww_make_target = + # + + +@@ -384,9 +387,9 @@ + $(sort Library library LibWWW libwww $(libwww) $(libwww_dep)): $(libwww_library) + + $(libwww_library): +- @$(ECHO) +- @$(ECHO) "You should build the W3C WWW reference library first!" +- @$(ECHO) ++# @$(ECHO) ++# @$(ECHO) "You should build the W3C WWW reference library first!" ++# @$(ECHO) + + endif + +@@ -484,11 +487,11 @@ + install: $(ArenaBinary) $(ArenaIntlDir)/en/Arena.gmo + $(INSTALL_binary) $(ArenaBinary) $(ArenaBinaryINSTALLDir)/$(Arena) + $(INSTALL_data) $(ArenaSourceDir)/arenarc $(arenarc_dir) +-ifneq ($(strip $(XGETTEXT)),) +- ifneq ($(strip $(MSGFMT)),) +- $(INSTALL_data) $(ArenaIntlDir)/en/Arena_debug.gmo $(locale_dir)/en/LC_MESSAGES/Arena.mo +- endif +-endif ++#ifneq ($(strip $(XGETTEXT)),) ++# ifneq ($(strip $(MSGFMT)),) ++# $(INSTALL_data) $(ArenaIntlDir)/en/Arena_debug.gmo $(locale_dir)/en/LC_MESSAGES/Arena.mo ++# endif ++#endif + + uninstall: + $(RM) $(ArenaBinaryINSTALLDir)/$(Arena) +@@ -708,7 +711,7 @@ + # + # Flags for $(LD) + # ~~~~~~~~~~~~~~~ +-Libraries = libwww libjpeg libpng libz ++Libraries = $(libwww) libjpeg libpng libz + LibraryDirs = $(foreach lib, $(Libraries), $(dir $($(lib)_library))) + ArenaLibraryDirsLDFLAGS = $(foreach libdir, $(LibraryDirs), -L$(libdir)) + L = $(foreach lib, $(Libraries), -l$(basename $(notdir $(lib))-)) diff --git a/misc/par/patches/patch-ae b/misc/par/patches/patch-ae new file mode 100644 index 00000000000..663cd566693 --- /dev/null +++ b/misc/par/patches/patch-ae @@ -0,0 +1,47 @@ +$NetBSD: patch-ae,v 1.1.1.1 2002/01/04 19:53:07 fredb Exp $ + +--- arena.h.in.orig Sun Mar 8 11:35:06 1998 ++++ arena.h.in Thu Feb 10 05:20:53 2000 +@@ -62,6 +64,9 @@ + # define LIBWWW_TRACE_MASK SHOW_ALL_TRACE + #endif + ++ /* Needed to unset HTDEBUG in HTUtils.h */ ++# define NODEBUG 1 ++ + /* Persistent cache location. + * If defined as "" (i.e. null), then NO Caching will be done... + * Then the defaults will be taken from Xdefaults or ARENA_DEFAULT_CACHE_ROOT +@@ -267,9 +272,9 @@ + # define ARENA_FLYBY_HINT 1 + # define ARENA_FLYBY_TERSE 2 + # define ARENA_FLYBY_VERBOSE 3 +-# define ARENA_FLYBY_HOW_MUCH ARENA_FLYBY_HINT ++# define ARENA_FLYBY_HOW_MUCH ARENA_FLYBY_VERBOSE + +-# define ARENA_FLYBY_TIMER_INCREMENT 2 ++# define ARENA_FLYBY_TIMER_INCREMENT 0 + #endif + + +@@ -445,6 +450,20 @@ + */ + #ifndef HAVE_STRSTR + # undef HAVE_STRSTR ++#endif ++ ++/* Define the HAVE_SETITIMER preprocessor variable, ++ * if you have setitimer(). ++ */ ++#ifndef HAVE_SETITIMER ++# undef HAVE_SETITIMER ++#endif ++ ++/* Define the SETITIMER_USES_TIMEVAL preprocessor variable, ++ * if your setitimer() uses timevals (uS resolution). ++ */ ++#ifndef SETITIMER_USES_TIMEVAL ++# undef SETITIMER_USES_TIMEVAL + #endif + + diff --git a/misc/par/patches/patch-af b/misc/par/patches/patch-af new file mode 100644 index 00000000000..6d9b792d725 --- /dev/null +++ b/misc/par/patches/patch-af @@ -0,0 +1,19 @@ +$NetBSD: patch-af,v 1.1.1.1 2002/01/04 19:53:08 fredb Exp $ + +--- Arena/Source/bridge.c.orig Mon Mar 23 20:29:54 1998 ++++ Arena/Source/bridge.c Sun Oct 10 14:00:48 1999 +@@ -227,14 +227,6 @@ + } + break; + +- case HT_PROG_WAIT: +- Announce(_("Waiting for free socket...")); +- break; +- +- case HT_PROG_GC: +- Announce(_("Collecting cache garbage...")); +- break; +- + default: + Announce(_("UNKNOWN PROGRESS STATE")); + break; diff --git a/misc/par/patches/patch-ag b/misc/par/patches/patch-ag new file mode 100644 index 00000000000..5ff8c20dd5b --- /dev/null +++ b/misc/par/patches/patch-ag @@ -0,0 +1,123 @@ +$NetBSD: patch-ag,v 1.1.1.1 2002/01/04 19:53:23 fredb Exp $ + +--- Arena/Source/main.c.orig Sun Mar 8 11:22:20 1998 ++++ Arena/Source/main.c Sat Oct 30 09:42:10 1999 +@@ -80,7 +80,31 @@ + static int FlyByStoredX = -2; + static int FlyByStoredY = -2; + static int FlyByShowing = 0; ++#if defined(HAVE_SETITIMER) ++/* ++ * Actual time to activate the "fly by" roll-overs is at least twice the value ++ * set in TIMER_ON, i.e. 2*180000uS = 0.36 seconds. SET_TIMER and DISABLE_TIMER ++ * are fashioned as macros to make it easier to add code to allow for ++ * implementation differences. ++ * ++ * Enabling this completely disables the misbegotten FlyByTimerIncrement. ++ * It would not be difficult to fix it, and it could even benefit from ++ * the smaller timeval/timespec increments, but to me, it's just not worth ++ * the trouble. ++ * ++ * October 30, 1999 -- Frederick Bruckman <fredb@netbsd.org> ++ */ ++#if defined(SETITIMER_USES_TIMEVAL) ++const struct itimerval TIMER_ON = {{0, 0}, {0, 180000}}; ++#else /* assume timespec */ ++const struct itimerval TIMER_ON = {{0, 0}, {0, 180000000}}; ++#endif /* SETITIMER_USES_TIMEVAL */ ++const struct itimerval TIMER_OFF = {{0, 0}, {0, 0}}; ++#define SET_TIMER setitimer(ITIMER_REAL, &TIMER_ON, 0); ++#define DISABLE_TIMER setitimer(ITIMER_REAL, &TIMER_OFF, 0); ++#else + static int FlyByAlarm = 0; ++#endif /* HAVE_SETITIMER */ + static Window FlyByWindow; + static GC FlyByGC; + static XFontStruct *FlyByFont = NULL; +@@ -702,8 +726,12 @@ + static int Lx, Ly; + + ++#if defined(HAVE_SETITIMER) ++ DISABLE_TIMER ++#else + FlyByAlarm = 0; + alarm(FlyByAlarm); ++#endif + signal(SIGALRM, SIG_DFL); + if (FlyByHints == ARENA_FLYBY_NONE) return; + +@@ -720,7 +748,9 @@ + char *text = ToolBarFlyByText(i); + FlyByCreate(FlyByStoredX, FlyByStoredY+20, text ? text :"(null)"); + FlyByShowing = i; ++#if !defined(HAVE_SETITIMER) + FlyByData[i-1].displayed_times += FlyByTimerIncrement; ++#endif + } + else + { +@@ -728,12 +758,16 @@ + * and it's the same, we'll diplay it then! Use "last" timer + * delay... but NOT zero! + */ +- FlyByAlarm = 1; + signal(SIGALRM, ArenaSIGALRMHandler); + ++#if defined(HAVE_SETITIMER) ++ SET_TIMER ++#else ++ FlyByAlarm = 1; + if (FlyByData[i-1].displayed_times == 0) + FlyByData[i-1].displayed_times = 1; + alarm(FlyByData[i-1].displayed_times); ++#endif + } + } + } +@@ -820,8 +854,8 @@ + h = SPACING(FlyByFont) * nline; + + /* decide whether x and y are ok or need to be modified */ +- x = (x + w > display_width ? display_width - w - 1 : x); +- y = (y + h > display_height ? display_height - h - 1 : y); ++ x = (x + w > win_width ? win_width - w - 20 : x); ++ y = (y + h > win_height ? win_height - h - 20 : y); + + /* create window */ + FlyByWindow = XCreateSimpleWindow(display, win, x, y, w, h, 1, +@@ -879,6 +913,11 @@ + */ + void FlyByDestroy(void) + { ++#if defined(HAVE_SETITIMER) ++ DISABLE_TIMER ++ signal(SIGALRM, SIG_DFL); ++ FlyByStoredX = FlyByStoredY = -1; ++#else + if (FlyByAlarm != 0) + { + FlyByAlarm = 0; +@@ -886,6 +926,7 @@ + FlyByStoredX = FlyByStoredY = -1; + signal(SIGALRM, SIG_DFL); + } ++#endif + + if (FlyByShowing) + { +@@ -1286,9 +1326,13 @@ + int i = ToolBarWhichButton(FlyByStoredX, FlyByStoredY); + if (i > 0) + { +- FlyByAlarm = 1; + signal(SIGALRM, ArenaSIGALRMHandler); ++#if defined(HAVE_SETITIMER) ++ SET_TIMER ++#else ++ FlyByAlarm = 1; + alarm(FlyByAlarm); ++#endif + } + } + } diff --git a/misc/par/patches/patch-ah b/misc/par/patches/patch-ah new file mode 100644 index 00000000000..4adc834c2a8 --- /dev/null +++ b/misc/par/patches/patch-ah @@ -0,0 +1,15 @@ +$NetBSD: patch-ah,v 1.1.1.1 2002/01/04 19:53:23 fredb Exp $ + +--- Arena/Source/image.c.orig Tue Mar 3 14:27:02 1998 ++++ Arena/Source/image.c Tue Feb 8 16:55:47 2000 +@@ -969,8 +969,8 @@ + + GetColour(r, g, b, &ulp); + +- *p++ = ((char*)&ulp)[0]; /* LSB first! */ +- *p++ = ((char*)&ulp)[1]; ++ *p++ = (ulp ) & 0xFF; /* LSB first! */ ++ *p++ = (ulp >> 8) & 0xFF; + } + } + diff --git a/misc/par/patches/patch-ai b/misc/par/patches/patch-ai new file mode 100644 index 00000000000..9e92ae35f8a --- /dev/null +++ b/misc/par/patches/patch-ai @@ -0,0 +1,15 @@ +$NetBSD: patch-ai,v 1.1.1.1 2002/01/04 19:53:23 fredb Exp $ + +--- Arena/Source/gif.c.orig Sun Feb 15 10:09:16 1998 ++++ Arena/Source/gif.c Tue Feb 8 18:31:08 2000 +@@ -1121,8 +1121,8 @@ + + if (bpp == 2) + { +- *pp++ = ((char*)&ulp)[0]; /* LSB first! */ +- *pp++ = ((char*)&ulp)[1]; ++ *pp++ = (ulp ) & 0xff; /* LSB first! */ ++ *pp++ = (ulp >> 8) & 0xff; + } + else + { diff --git a/misc/par/patches/patch-aj b/misc/par/patches/patch-aj new file mode 100644 index 00000000000..83422a30f5d --- /dev/null +++ b/misc/par/patches/patch-aj @@ -0,0 +1,26 @@ +$NetBSD: patch-aj,v 1.1.1.1 2002/01/04 19:53:23 fredb Exp $ + +--- Arena/Source/jpeg.c.orig Thu Feb 19 09:57:26 1998 ++++ Arena/Source/jpeg.c Tue Feb 8 18:33:17 2000 +@@ -531,8 +531,8 @@ + case 1: + cr = cg = cb = scan_buffer[xpos]; + GetColour(cr, cg, cb, &ulp); +- *dp++ = ((char*)&ulp)[0]; /* LSB first! */ +- *dp++ = ((char*)&ulp)[1]; ++ *dp++ = (ulp ) & 0xFF; /* LSB first! */ ++ *dp++ = (ulp >> 8) & 0xFF; + break; + + case 3: +@@ -540,8 +540,8 @@ + cg = scan_buffer[1+(xpos * 3)]; + cb = scan_buffer[2+(xpos * 3)]; + GetColour(cr, cg, cb, &ulp); +- *dp++ = ((char*)&ulp)[0]; /* LSB first! */ +- *dp++ = ((char*)&ulp)[1]; ++ *dp++ = (ulp ) & 0xFF; /* LSB first! */ ++ *dp++ = (ulp >> 8) & 0xFF; + break; + + default: |