1 # Buildsheet autogenerated by ravenadm tool -- Do not edit.
8 SDESC[standard]= ASCII art library
9 HOMEPAGE= http://aa-project.sourceforge.net/aalib/
13 SITES[main]= SF/aa-project/aa-lib/1.4rc5
14 DISTFILE[1]= aalib-1.4rc5.tar.gz:main
16 SPKGS[standard]= single
18 OPTIONS_AVAILABLE= none
19 OPTIONS_STANDARD= none
21 USES= libtool ncurses makeinfo fbsd10fix
26 LICENSE_TERMS= single:{{WRKDIR}}/TERMS
27 LICENSE_FILE= GPLv2:{{WRKSRC}}/COPYING
28 LICENSE_AWK= TERMS:"^\#ifndef"
29 LICENSE_SOURCE= TERMS:{{WRKSRC}}/src/aalib.h
33 FPC_EQUIVALENT= graphics/aalib
37 CONFIGURE_ARGS= --with-x=no
38 --with-ncurses={{LOCALBASE}}
40 INSTALL_TARGET= install-strip
42 CFLAGS= -I{{NCURSESINC}}
45 ${RM} ${WRKSRC}/config.cache
46 ${REINPLACE_CMD} -e 's|/usr/local|${LOCALBASE}|g; \
47 s|MAKEINFO=makeinfo|MAKEINFO="makeinfo --no-split"|g' \
50 -e 's|AC_DEFUN(AM_PATH_AALIB|AC_DEFUN([AM_PATH_AALIB]|g' \
52 ${FIND} ${WRKSRC} \( -name '*.[ch]' \! -name acconfig.h \) \
53 | ${XARGS} ${GREP} -l '<malloc.h>' \
54 | ${XARGS} ${REINPLACE_CMD} -e 's|<malloc.h>|<stdlib.h>|g'
57 ${STRIP_CMD} ${STAGEDIR}${PREFIX}/lib/libaa.so
60 ${RM} ${WRKSRC}/doc/aalib.info*
62 [FILE:406:descriptions/desc.single]
63 AA-lib is a low-level graphics library similar to many other libraries
64 except for the fact that AA-lib does not require a graphics device! In
65 fact, no "graphical" output is possible. AA-lib uses a modern, high-tech
66 ascii-art renderer in place of outmoded and cumbersome graphical output.
68 The AA-lib API is designed to be similar to that of other graphics
69 libraries so learning its API should be simple.
73 fbddda9230cf6ee2a4f5706b4b11e2190ae45f5eda1f0409dc4f99b35e0a70ee 391028 aalib-1.4rc5.tar.gz
76 [FILE:1408:manifests/plist.single]
89 share/aclocal/aalib.m4
90 share/man/man1/aafire.1.gz
100 aa_defrenderparams.3.gz
101 aa_displayrecommended.3.gz
123 aa_kbdrecommended.3.gz
127 aa_mouserecommended.3.gz
133 aa_recommendhidisplay.3.gz
134 aa_recommendhikbd.3.gz
135 aa_recommendhimouse.3.gz
137 aa_recommendlowdisplay.3.gz
138 aa_recommendlowkbd.3.gz
139 aa_recommendlowmouse.3.gz
143 aa_resizehandler.3.gz
157 [FILE:1070:patches/patch-doc_aalib.texinfo]
158 --- doc/aalib.texinfo.orig 2014-02-11 19:55:03.000000000 +0100
159 +++ doc/aalib.texinfo 2014-02-11 19:56:56.000000000 +0100
164 -@title{AA-lib @value{VERSION}}
165 -@subtitle{An ascii-art library}
166 -@subtitle{API-DESCRIPTION}
167 +@title AA-lib @value{VERSION}
168 +@subtitle An ascii-art library
169 +@subtitle API-DESCRIPTION
171 -@author{Jan Hubi@v cka & Kamil Toman}
172 +@author Jan Hubi@v cka & Kamil Toman
174 Dukelsk\'ych bojovn\'\i ku 1944
178 @vskip 0pt plus 1filll
180 -@copyright{} 1997 @tex Jan Hubi\v cka \& Kamil Toman
182 +@tex Jan Hubi\v cka \& Kamil Toman
185 Permission is granted to make and distribute verbatim
186 @@ -1318,7 +1319,7 @@
187 functions (like initialization, drawing to screen etc...) and register it in
188 the driver registry. There is separate drivers for screen, mouse and keyboard.
190 -@subsection Display driver
191 +@section Display driver
192 Display driver is the most significant driver (of course) so it is recomended
193 to implement it first. Its structure is as follows:
197 [FILE:510:patches/patch-src_Makefile.in]
198 --- src/Makefile.in.orig 2001-04-26 15:33:09 UTC
200 @@ -254,6 +254,9 @@ maintainer-clean-libtool:
202 libaa.la: $(libaa_la_OBJECTS) $(libaa_la_DEPENDENCIES)
203 $(LINK) -rpath $(libdir) $(libaa_la_LDFLAGS) $(libaa_la_OBJECTS) $(libaa_la_LIBADD) $(LIBS)
204 + # relink shared library because libtool won't pass rpath to la files
205 + rm .libs/libaa.so.1.0.4
206 + $(CC) -shared $(CFLAGS) $(LDFLAGS) $(libaa_la_OBJECTS) $(LIBS) -Wl,-soname -Wl,libaa.so.1 -o .libs/libaa.so.1.0.4
208 mostlyclean-binPROGRAMS:
212 [FILE:290:patches/patch-src_aaprintf.c]
213 --- src/aaprintf.c.orig Thu Apr 26 23:37:31 2001
214 +++ src/aaprintf.c Sat Mar 2 22:54:56 2002
219 - i=vsprintf(buf,fmt,args);
220 + i=vsnprintf(buf,sizeof(buf),fmt,args);
222 aa_puts(c,x,y,attr,buf);
226 [FILE:1146:dragonfly/patch-src_aafire.c]
227 --- src/aafire.c.orig Fri Apr 27 00:30:03 2001
228 +++ src/aafire.c Sat Mar 2 22:51:46 2002
234 context = aa_autoinit (&aa_defparams);
237 @@ -114,20 +115,20 @@
241 - loop = rand () % 3, sloop++;;
242 + loop = random () % 3, sloop++;;
245 for (p = (char *) bitmap + XSIZ * (YSIZ + 0);
246 p < ((unsigned char *) bitmap + XSIZ * (YSIZ + 1));
247 p++, i1 += 4, i2 -= 4)
249 - last1 = rand () % min (i1, min (i2, height));
251 + last1 = random () % min (i1, min (i2, height));
253 for (; p < (unsigned char *) bitmap + XSIZ * (YSIZ + 1) && i != 0;
254 p++, i--, i1 += 4, i2 -= 4)
255 - *p = last1, last1 += rand () % 6 - 2, *(p + XSIZ) = last1, last1 +=
257 - *(p + 2 * XSIZ) = last1, last1 += rand () % 6 - 2;
258 + *p = last1, last1 += random () % 6 - 2, *(p + XSIZ) = last1, last1 +=
260 + *(p + 2 * XSIZ) = last1, last1 += random () % 6 - 2;
266 [FILE:859:dragonfly/patch-src_aarender.c]
267 --- src/aarender.c.orig Thu Apr 26 23:37:31 2001
268 +++ src/aarender.c Sat Mar 2 23:02:04 2002
272 #define MYLONG_MAX 0xffffffffU /*this is enought for me. */
273 -#define myrand() (state = ((state * 1103515245) + 12345) & MYLONG_MAX)
274 +#define myrand() (random() & MYLONG_MAX)
276 void aa_renderpalette(aa_context * c, __AA_CONST aa_palette palette, __AA_CONST aa_renderparams * p, int x1, int y1, int x2, int y2)
279 + static int rand_init = 0;
282 int wi = c->imgwidth;
284 int randomval = p->randomval;
285 int dither = p->dither;
292 if (x2 < 0 || y2 < 0 || x1 > aa_scrwidth(c) || y1 > aa_scrheight(c))
294 if (x2 >= aa_scrwidth(c))
297 [FILE:1146:freebsd/patch-src_aafire.c]
298 --- src/aafire.c.orig Fri Apr 27 00:30:03 2001
299 +++ src/aafire.c Sat Mar 2 22:51:46 2002
305 context = aa_autoinit (&aa_defparams);
308 @@ -114,20 +115,20 @@
312 - loop = rand () % 3, sloop++;;
313 + loop = random () % 3, sloop++;;
316 for (p = (char *) bitmap + XSIZ * (YSIZ + 0);
317 p < ((unsigned char *) bitmap + XSIZ * (YSIZ + 1));
318 p++, i1 += 4, i2 -= 4)
320 - last1 = rand () % min (i1, min (i2, height));
322 + last1 = random () % min (i1, min (i2, height));
324 for (; p < (unsigned char *) bitmap + XSIZ * (YSIZ + 1) && i != 0;
325 p++, i--, i1 += 4, i2 -= 4)
326 - *p = last1, last1 += rand () % 6 - 2, *(p + XSIZ) = last1, last1 +=
328 - *(p + 2 * XSIZ) = last1, last1 += rand () % 6 - 2;
329 + *p = last1, last1 += random () % 6 - 2, *(p + XSIZ) = last1, last1 +=
331 + *(p + 2 * XSIZ) = last1, last1 += random () % 6 - 2;
337 [FILE:859:freebsd/patch-src_aarender.c]
338 --- src/aarender.c.orig Thu Apr 26 23:37:31 2001
339 +++ src/aarender.c Sat Mar 2 23:02:04 2002
343 #define MYLONG_MAX 0xffffffffU /*this is enought for me. */
344 -#define myrand() (state = ((state * 1103515245) + 12345) & MYLONG_MAX)
345 +#define myrand() (random() & MYLONG_MAX)
347 void aa_renderpalette(aa_context * c, __AA_CONST aa_palette palette, __AA_CONST aa_renderparams * p, int x1, int y1, int x2, int y2)
350 + static int rand_init = 0;
353 int wi = c->imgwidth;
355 int randomval = p->randomval;
356 int dither = p->dither;
363 if (x2 < 0 || y2 < 0 || x1 > aa_scrwidth(c) || y1 > aa_scrheight(c))
365 if (x2 >= aa_scrwidth(c))