# Buildsheet autogenerated by ravenadm tool -- Do not edit. NAMEBASE= aalib VERSION= 1.4rc5 REVISION= 2 KEYWORDS= graphics VARIANTS= standard SDESC[standard]= ASCII art library HOMEPAGE= https://aa-project.sourceforge.net/aalib/ CONTACT= nobody DOWNLOAD_GROUPS= main SITES[main]= SF/aa-project/aa-lib/1.4rc5 DISTFILE[1]= aalib-1.4rc5.tar.gz:main DF_INDEX= 1 SPKGS[standard]= single OPTIONS_AVAILABLE= none OPTIONS_STANDARD= none USES= libtool ncurses makeinfo fbsd10fix DISTNAME= aalib-1.4.0 LICENSE= GPLv2:single LICENSE_TERMS= single:{{WRKDIR}}/TERMS LICENSE_FILE= GPLv2:{{WRKSRC}}/COPYING LICENSE_AWK= TERMS:"^\#ifndef" LICENSE_SOURCE= TERMS:{{WRKSRC}}/src/aalib.h LICENSE_SCHEME= solo INFO= single:aalib FPC_EQUIVALENT= graphics/aalib INFO_SUBDIR= . MUST_CONFIGURE= gnu CONFIGURE_ARGS= --with-x=no --with-ncurses={{LOCALBASE}} INSTALL_TARGET= install-strip CFLAGS= -I{{NCURSESINC}} post-install: ${STRIP_CMD} ${STAGEDIR}${PREFIX}/lib/libaa.so pre-configure: ${RM} ${WRKSRC}/config.cache ${REINPLACE_CMD} -e 's|/usr/local|${LOCALBASE}|g; \ s|MAKEINFO=makeinfo|MAKEINFO="makeinfo --no-split"|g; \ /LIBS=.*withval.*lncurses/ s|lncurses|lncurses -ltinfo|' \ ${WRKSRC}/configure ${REINPLACE_CMD} \ -e 's|AC_DEFUN(AM_PATH_AALIB|AC_DEFUN([AM_PATH_AALIB]|g' \ ${WRKSRC}/aalib.m4 ${FIND} ${WRKSRC} \( -name '*.[ch]' \! -name acconfig.h \) \ | ${XARGS} ${GREP} -l '' \ | ${XARGS} ${REINPLACE_CMD} -e 's|||g' ${REINPLACE_CMD} -e 's|version_type=sunos|version_type=freebsd-elf|' \ ${WRKSRC}/ltconfig post-extract: ${RM} ${WRKSRC}/doc/aalib.info* [FILE:406:descriptions/desc.single] AA-lib is a low-level graphics library similar to many other libraries except for the fact that AA-lib does not require a graphics device! In fact, no "graphical" output is possible. AA-lib uses a modern, high-tech ascii-art renderer in place of outmoded and cumbersome graphical output. The AA-lib API is designed to be similar to that of other graphics libraries so learning its API should be simple. [FILE:98:distinfo] fbddda9230cf6ee2a4f5706b4b11e2190ae45f5eda1f0409dc4f99b35e0a70ee 391028 aalib-1.4rc5.tar.gz [FILE:1408:manifests/plist.single] bin/ aafire aainfo aalib-config aasavefont aatest include/aalib.h lib/ libaa.a libaa.so libaa.so.1 libaa.so.1.0.4 share/aclocal/aalib.m4 share/man/man1/aafire.1.gz share/man/man3/ aa_attrs.3.gz aa_autoinit.3.gz aa_autoinitkbd.3.gz aa_autoinitmouse.3.gz aa_close.3.gz aa_createedit.3.gz aa_currentfont.3.gz aa_defparams.3.gz aa_defrenderparams.3.gz aa_displayrecommended.3.gz aa_dithernames.3.gz aa_drivers.3.gz aa_edit.3.gz aa_editkey.3.gz aa_fastrender.3.gz aa_fonts.3.gz aa_formats.3.gz aa_getevent.3.gz aa_getkey.3.gz aa_getmouse.3.gz aa_gotoxy.3.gz aa_help.3.gz aa_hidecursor.3.gz aa_hidemouse.3.gz aa_image.3.gz aa_imgheight.3.gz aa_imgwidth.3.gz aa_init.3.gz aa_initkbd.3.gz aa_initmouse.3.gz aa_kbddrivers.3.gz aa_kbdrecommended.3.gz aa_mmheight.3.gz aa_mmwidth.3.gz aa_mousedrivers.3.gz aa_mouserecommended.3.gz aa_parseoptions.3.gz aa_printf.3.gz aa_putpixel.3.gz aa_puts.3.gz aa_recommendhi.3.gz aa_recommendhidisplay.3.gz aa_recommendhikbd.3.gz aa_recommendhimouse.3.gz aa_recommendlow.3.gz aa_recommendlowdisplay.3.gz aa_recommendlowkbd.3.gz aa_recommendlowmouse.3.gz aa_registerfont.3.gz aa_render.3.gz aa_resize.3.gz aa_resizehandler.3.gz aa_scrheight.3.gz aa_scrwidth.3.gz aa_setfont.3.gz aa_setsupported.3.gz aa_showcursor.3.gz aa_showmouse.3.gz aa_text.3.gz aa_uninitkbd.3.gz aa_uninitmouse.3.gz mem_d.3.gz save_d.3.gz [FILE:253:patches/patch-configure] --- configure.orig 2001-04-26 14:44:54 UTC +++ configure @@ -4302,7 +4302,7 @@ case "$target" in *-*-bsdi*) ARCH=bsdi ;; - *-*-freebsd*) + *-*-freebsd*|*-*-dragonfly*|*-*-midnightbsd*) ARCH=freebsd ;; *-*-solaris*) [FILE:1070:patches/patch-doc_aalib.texinfo] --- doc/aalib.texinfo.orig 2014-02-11 19:55:03.000000000 +0100 +++ doc/aalib.texinfo 2014-02-11 19:56:56.000000000 +0100 @@ -29,11 +29,11 @@ @titlepage -@title{AA-lib @value{VERSION}} -@subtitle{An ascii-art library} -@subtitle{API-DESCRIPTION} +@title AA-lib @value{VERSION} +@subtitle An ascii-art library +@subtitle API-DESCRIPTION -@author{Jan Hubi@v cka & Kamil Toman} +@author Jan Hubi@v cka & Kamil Toman @tex Dukelsk\'ych bojovn\'\i ku 1944 @end tex @@ -61,7 +61,8 @@ @end tex @vskip 0pt plus 1filll -@copyright{} 1997 @tex Jan Hubi\v cka \& Kamil Toman +@copyright{} 1997 +@tex Jan Hubi\v cka \& Kamil Toman @end tex Permission is granted to make and distribute verbatim @@ -1318,7 +1319,7 @@ functions (like initialization, drawing to screen etc...) and register it in the driver registry. There is separate drivers for screen, mouse and keyboard. -@subsection Display driver +@section Display driver Display driver is the most significant driver (of course) so it is recomended to implement it first. Its structure is as follows: [FILE:597:patches/patch-ltconfig] --- ltconfig.intermediate 2001-04-26 14:37:31 UTC +++ ltconfig @@ -1360,7 +1360,7 @@ else ;; # FreeBSD 3 and greater uses gcc -shared to do shared libraries. - freebsd*) + freebsd*|dragonfly*|midnight*) archive_cmds='$CC -shared -o $lib $libobjs $deplibs $linkopts' hardcode_libdir_flag_spec='-R$libdir' hardcode_direct=yes @@ -1886,7 +1886,7 @@ freebsd1*) dynamic_linker=no ;; -freebsd*) +freebsd*|dragonfly*|midnight*) objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout` version_type=freebsd-$objformat case "$version_type" in [FILE:510:patches/patch-src_Makefile.in] --- src/Makefile.in.orig 2001-04-26 15:33:09 UTC +++ src/Makefile.in @@ -254,6 +254,9 @@ maintainer-clean-libtool: libaa.la: $(libaa_la_OBJECTS) $(libaa_la_DEPENDENCIES) $(LINK) -rpath $(libdir) $(libaa_la_LDFLAGS) $(libaa_la_OBJECTS) $(libaa_la_LIBADD) $(LIBS) + # relink shared library because libtool won't pass rpath to la files + rm .libs/libaa.so.1.0.4 + $(CC) -shared $(CFLAGS) $(LDFLAGS) $(libaa_la_OBJECTS) $(LIBS) -Wl,-soname -Wl,libaa.so.1 -o .libs/libaa.so.1.0.4 mostlyclean-binPROGRAMS: [FILE:290:patches/patch-src_aaprintf.c] --- src/aaprintf.c.orig Thu Apr 26 23:37:31 2001 +++ src/aaprintf.c Sat Mar 2 22:54:56 2002 @@ -7,7 +7,7 @@ char buf[1025]; int i; va_start(args,fmt); - i=vsprintf(buf,fmt,args); + i=vsnprintf(buf,sizeof(buf),fmt,args); va_end(args); aa_puts(c,x,y,attr,buf); return i; [FILE:1146:dragonfly/patch-src_aafire.c] --- src/aafire.c.orig Fri Apr 27 00:30:03 2001 +++ src/aafire.c Sat Mar 2 22:51:46 2002 @@ -48,6 +48,7 @@ initialize (void) { int i; + srandomdev(); context = aa_autoinit (&aa_defparams); if (context == NULL) { @@ -114,20 +115,20 @@ height++; loop--; if (loop < 0) - loop = rand () % 3, sloop++;; + loop = random () % 3, sloop++;; i1 = 1; i2 = 4 * XSIZ + 1; for (p = (char *) bitmap + XSIZ * (YSIZ + 0); p < ((unsigned char *) bitmap + XSIZ * (YSIZ + 1)); p++, i1 += 4, i2 -= 4) { - last1 = rand () % min (i1, min (i2, height)); - i = rand () % 6; + last1 = random () % min (i1, min (i2, height)); + i = random () % 6; for (; p < (unsigned char *) bitmap + XSIZ * (YSIZ + 1) && i != 0; p++, i--, i1 += 4, i2 -= 4) - *p = last1, last1 += rand () % 6 - 2, *(p + XSIZ) = last1, last1 += - rand () % 6 - 2; - *(p + 2 * XSIZ) = last1, last1 += rand () % 6 - 2; + *p = last1, last1 += random () % 6 - 2, *(p + XSIZ) = last1, last1 += + random () % 6 - 2; + *(p + 2 * XSIZ) = last1, last1 += random () % 6 - 2; } i = 0; firemain (); [FILE:859:dragonfly/patch-src_aarender.c] --- src/aarender.c.orig Thu Apr 26 23:37:31 2001 +++ src/aarender.c Sat Mar 2 23:02:04 2002 @@ -27,11 +27,11 @@ return (p); } #define MYLONG_MAX 0xffffffffU /*this is enought for me. */ -#define myrand() (state = ((state * 1103515245) + 12345) & MYLONG_MAX) +#define myrand() (random() & MYLONG_MAX) void aa_renderpalette(aa_context * c, __AA_CONST aa_palette palette, __AA_CONST aa_renderparams * p, int x1, int y1, int x2, int y2) { - static int state; + static int rand_init = 0; int x, y; int val; int wi = c->imgwidth; @@ -47,6 +47,11 @@ int randomval = p->randomval; int dither = p->dither; aa_palette table; + + if (!rand_init) { + srandomdev(); + rand_init = 1; + } if (x2 < 0 || y2 < 0 || x1 > aa_scrwidth(c) || y1 > aa_scrheight(c)) return; if (x2 >= aa_scrwidth(c)) [FILE:1146:freebsd/patch-src_aafire.c] --- src/aafire.c.orig Fri Apr 27 00:30:03 2001 +++ src/aafire.c Sat Mar 2 22:51:46 2002 @@ -48,6 +48,7 @@ initialize (void) { int i; + srandomdev(); context = aa_autoinit (&aa_defparams); if (context == NULL) { @@ -114,20 +115,20 @@ height++; loop--; if (loop < 0) - loop = rand () % 3, sloop++;; + loop = random () % 3, sloop++;; i1 = 1; i2 = 4 * XSIZ + 1; for (p = (char *) bitmap + XSIZ * (YSIZ + 0); p < ((unsigned char *) bitmap + XSIZ * (YSIZ + 1)); p++, i1 += 4, i2 -= 4) { - last1 = rand () % min (i1, min (i2, height)); - i = rand () % 6; + last1 = random () % min (i1, min (i2, height)); + i = random () % 6; for (; p < (unsigned char *) bitmap + XSIZ * (YSIZ + 1) && i != 0; p++, i--, i1 += 4, i2 -= 4) - *p = last1, last1 += rand () % 6 - 2, *(p + XSIZ) = last1, last1 += - rand () % 6 - 2; - *(p + 2 * XSIZ) = last1, last1 += rand () % 6 - 2; + *p = last1, last1 += random () % 6 - 2, *(p + XSIZ) = last1, last1 += + random () % 6 - 2; + *(p + 2 * XSIZ) = last1, last1 += random () % 6 - 2; } i = 0; firemain (); [FILE:859:freebsd/patch-src_aarender.c] --- src/aarender.c.orig Thu Apr 26 23:37:31 2001 +++ src/aarender.c Sat Mar 2 23:02:04 2002 @@ -27,11 +27,11 @@ return (p); } #define MYLONG_MAX 0xffffffffU /*this is enought for me. */ -#define myrand() (state = ((state * 1103515245) + 12345) & MYLONG_MAX) +#define myrand() (random() & MYLONG_MAX) void aa_renderpalette(aa_context * c, __AA_CONST aa_palette palette, __AA_CONST aa_renderparams * p, int x1, int y1, int x2, int y2) { - static int state; + static int rand_init = 0; int x, y; int val; int wi = c->imgwidth; @@ -47,6 +47,11 @@ int randomval = p->randomval; int dither = p->dither; aa_palette table; + + if (!rand_init) { + srandomdev(); + rand_init = 1; + } if (x2 < 0 || y2 < 0 || x1 > aa_scrwidth(c) || y1 > aa_scrheight(c)) return; if (x2 >= aa_scrwidth(c)) [FILE:1146:midnightbsd/patch-src_aafire.c] --- src/aafire.c.orig Fri Apr 27 00:30:03 2001 +++ src/aafire.c Sat Mar 2 22:51:46 2002 @@ -48,6 +48,7 @@ initialize (void) { int i; + srandomdev(); context = aa_autoinit (&aa_defparams); if (context == NULL) { @@ -114,20 +115,20 @@ height++; loop--; if (loop < 0) - loop = rand () % 3, sloop++;; + loop = random () % 3, sloop++;; i1 = 1; i2 = 4 * XSIZ + 1; for (p = (char *) bitmap + XSIZ * (YSIZ + 0); p < ((unsigned char *) bitmap + XSIZ * (YSIZ + 1)); p++, i1 += 4, i2 -= 4) { - last1 = rand () % min (i1, min (i2, height)); - i = rand () % 6; + last1 = random () % min (i1, min (i2, height)); + i = random () % 6; for (; p < (unsigned char *) bitmap + XSIZ * (YSIZ + 1) && i != 0; p++, i--, i1 += 4, i2 -= 4) - *p = last1, last1 += rand () % 6 - 2, *(p + XSIZ) = last1, last1 += - rand () % 6 - 2; - *(p + 2 * XSIZ) = last1, last1 += rand () % 6 - 2; + *p = last1, last1 += random () % 6 - 2, *(p + XSIZ) = last1, last1 += + random () % 6 - 2; + *(p + 2 * XSIZ) = last1, last1 += random () % 6 - 2; } i = 0; firemain (); [FILE:859:midnightbsd/patch-src_aarender.c] --- src/aarender.c.orig Thu Apr 26 23:37:31 2001 +++ src/aarender.c Sat Mar 2 23:02:04 2002 @@ -27,11 +27,11 @@ return (p); } #define MYLONG_MAX 0xffffffffU /*this is enought for me. */ -#define myrand() (state = ((state * 1103515245) + 12345) & MYLONG_MAX) +#define myrand() (random() & MYLONG_MAX) void aa_renderpalette(aa_context * c, __AA_CONST aa_palette palette, __AA_CONST aa_renderparams * p, int x1, int y1, int x2, int y2) { - static int state; + static int rand_init = 0; int x, y; int val; int wi = c->imgwidth; @@ -47,6 +47,11 @@ int randomval = p->randomval; int dither = p->dither; aa_palette table; + + if (!rand_init) { + srandomdev(); + rand_init = 1; + } if (x2 < 0 || y2 < 0 || x1 > aa_scrwidth(c) || y1 > aa_scrheight(c)) return; if (x2 >= aa_scrwidth(c))