Ravenports generated: 28 May 2019 13:27
[ravenports.git] / bucket_A7 / aalib
1 # Buildsheet autogenerated by ravenadm tool -- Do not edit.
2
3 NAMEBASE=               aalib
4 VERSION=                1.4rc5
5 REVISION=               1
6 KEYWORDS=               graphics
7 VARIANTS=               standard
8 SDESC[standard]=        ASCII art library
9 HOMEPAGE=               http://aa-project.sourceforge.net/aalib/
10 CONTACT=                nobody
11
12 DOWNLOAD_GROUPS=        main
13 SITES[main]=            SF/aa-project/aa-lib/1.4rc5
14 DISTFILE[1]=            aalib-1.4rc5.tar.gz:main
15 DF_INDEX=               1
16 SPKGS[standard]=        single
17
18 OPTIONS_AVAILABLE=      none
19 OPTIONS_STANDARD=       none
20
21 USES=                   libtool ncurses makeinfo fbsd10fix
22
23 DISTNAME=               aalib-1.4.0
24
25 LICENSE=                GPLv2:single
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
30 LICENSE_SCHEME=         solo
31
32 INFO=                   single:aalib
33 FPC_EQUIVALENT=         graphics/aalib
34 INFO_SUBDIR=            .
35
36 MUST_CONFIGURE=         gnu
37 CONFIGURE_ARGS=         --with-x=no
38                         --with-ncurses={{LOCALBASE}}
39
40 INSTALL_TARGET=         install-strip
41
42 CFLAGS=                 -I{{NCURSESINC}}
43
44 post-patch:
45         ${RM} ${WRKSRC}/config.cache
46         ${REINPLACE_CMD} -e 's|/usr/local|${LOCALBASE}|g; \
47                 s|MAKEINFO=makeinfo|MAKEINFO="makeinfo --no-split"|g' \
48                 ${WRKSRC}/configure
49         ${REINPLACE_CMD} \
50                 -e 's|AC_DEFUN(AM_PATH_AALIB|AC_DEFUN([AM_PATH_AALIB]|g' \
51                 ${WRKSRC}/aalib.m4
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'
55
56 post-install:
57         ${STRIP_CMD} ${STAGEDIR}${PREFIX}/lib/libaa.so
58
59 post-extract:
60         ${RM} ${WRKSRC}/doc/aalib.info*
61
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.
67
68 The AA-lib API is designed to be similar to that of other graphics
69 libraries so learning its API should be simple.
70
71
72 [FILE:98:distinfo]
73 fbddda9230cf6ee2a4f5706b4b11e2190ae45f5eda1f0409dc4f99b35e0a70ee       391028 aalib-1.4rc5.tar.gz
74
75
76 [FILE:1408:manifests/plist.single]
77 bin/
78  aafire
79  aainfo
80  aalib-config
81  aasavefont
82  aatest
83 include/aalib.h
84 lib/
85  libaa.a
86  libaa.so
87  libaa.so.1
88  libaa.so.1.0.4
89 share/aclocal/aalib.m4
90 share/man/man1/aafire.1.gz
91 share/man/man3/
92  aa_attrs.3.gz
93  aa_autoinit.3.gz
94  aa_autoinitkbd.3.gz
95  aa_autoinitmouse.3.gz
96  aa_close.3.gz
97  aa_createedit.3.gz
98  aa_currentfont.3.gz
99  aa_defparams.3.gz
100  aa_defrenderparams.3.gz
101  aa_displayrecommended.3.gz
102  aa_dithernames.3.gz
103  aa_drivers.3.gz
104  aa_edit.3.gz
105  aa_editkey.3.gz
106  aa_fastrender.3.gz
107  aa_fonts.3.gz
108  aa_formats.3.gz
109  aa_getevent.3.gz
110  aa_getkey.3.gz
111  aa_getmouse.3.gz
112  aa_gotoxy.3.gz
113  aa_help.3.gz
114  aa_hidecursor.3.gz
115  aa_hidemouse.3.gz
116  aa_image.3.gz
117  aa_imgheight.3.gz
118  aa_imgwidth.3.gz
119  aa_init.3.gz
120  aa_initkbd.3.gz
121  aa_initmouse.3.gz
122  aa_kbddrivers.3.gz
123  aa_kbdrecommended.3.gz
124  aa_mmheight.3.gz
125  aa_mmwidth.3.gz
126  aa_mousedrivers.3.gz
127  aa_mouserecommended.3.gz
128  aa_parseoptions.3.gz
129  aa_printf.3.gz
130  aa_putpixel.3.gz
131  aa_puts.3.gz
132  aa_recommendhi.3.gz
133  aa_recommendhidisplay.3.gz
134  aa_recommendhikbd.3.gz
135  aa_recommendhimouse.3.gz
136  aa_recommendlow.3.gz
137  aa_recommendlowdisplay.3.gz
138  aa_recommendlowkbd.3.gz
139  aa_recommendlowmouse.3.gz
140  aa_registerfont.3.gz
141  aa_render.3.gz
142  aa_resize.3.gz
143  aa_resizehandler.3.gz
144  aa_scrheight.3.gz
145  aa_scrwidth.3.gz
146  aa_setfont.3.gz
147  aa_setsupported.3.gz
148  aa_showcursor.3.gz
149  aa_showmouse.3.gz
150  aa_text.3.gz
151  aa_uninitkbd.3.gz
152  aa_uninitmouse.3.gz
153  mem_d.3.gz
154  save_d.3.gz
155
156
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
160 @@ -29,11 +29,11 @@
161  
162  @titlepage
163  
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 
170  
171 -@author{Jan Hubi@v cka & Kamil Toman}
172 +@author Jan Hubi@v cka & Kamil Toman 
173  @tex
174  Dukelsk\'ych bojovn\'\i ku 1944 
175  @end tex
176 @@ -61,7 +61,8 @@
177  @end tex
178  @vskip 0pt plus 1filll
179  
180 -@copyright{} 1997 @tex Jan Hubi\v cka \& Kamil Toman
181 +@copyright{} 1997
182 +@tex Jan Hubi\v cka \& Kamil Toman
183  @end tex
184  
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.
189  
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:
194
195
196
197 [FILE:510:patches/patch-src_Makefile.in]
198 --- src/Makefile.in.orig        2001-04-26 15:33:09 UTC
199 +++ src/Makefile.in
200 @@ -254,6 +254,9 @@ maintainer-clean-libtool:
201  
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
207  
208  mostlyclean-binPROGRAMS:
209  
210
211
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
215 @@ -7,7 +7,7 @@
216    char buf[1025];
217    int i;
218    va_start(args,fmt);
219 -  i=vsprintf(buf,fmt,args);
220 +  i=vsnprintf(buf,sizeof(buf),fmt,args);
221    va_end(args);
222    aa_puts(c,x,y,attr,buf);
223    return i;
224
225
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
229 @@ -48,6 +48,7 @@
230  initialize (void)
231  {
232    int i;
233 +  srandomdev();
234    context = aa_autoinit (&aa_defparams);
235    if (context == NULL)
236      {
237 @@ -114,20 +115,20 @@
238    height++;
239    loop--;
240    if (loop < 0)
241 -    loop = rand () % 3, sloop++;;
242 +    loop = random () % 3, sloop++;;
243    i1 = 1;
244    i2 = 4 * XSIZ + 1;
245    for (p = (char *) bitmap + XSIZ * (YSIZ + 0);
246         p < ((unsigned char *) bitmap + XSIZ * (YSIZ + 1));
247         p++, i1 += 4, i2 -= 4)
248      {
249 -      last1 = rand () % min (i1, min (i2, height));
250 -      i = rand () % 6;
251 +      last1 = random () % min (i1, min (i2, height));
252 +      i = random () % 6;
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 +=
256 -         rand () % 6 - 2;
257 -      *(p + 2 * XSIZ) = last1, last1 += rand () % 6 - 2;
258 +       *p = last1, last1 += random () % 6 - 2, *(p + XSIZ) = last1, last1 +=
259 +         random () % 6 - 2;
260 +      *(p + 2 * XSIZ) = last1, last1 += random () % 6 - 2;
261      }
262    i = 0;
263    firemain ();
264
265
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
269 @@ -27,11 +27,11 @@
270      return (p);
271  }
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)
275  
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)
277  {
278 -    static int state;
279 +    static int rand_init = 0;
280      int x, y;
281      int val;
282      int wi = c->imgwidth;
283 @@ -47,6 +47,11 @@
284      int randomval = p->randomval;
285      int dither = p->dither;
286      aa_palette table;
287 +
288 +    if (!rand_init) {
289 +       srandomdev();
290 +       rand_init = 1;
291 +    }
292      if (x2 < 0 || y2 < 0 || x1 > aa_scrwidth(c) || y1 > aa_scrheight(c))
293         return;
294      if (x2 >= aa_scrwidth(c))
295
296
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
300 @@ -48,6 +48,7 @@
301  initialize (void)
302  {
303    int i;
304 +  srandomdev();
305    context = aa_autoinit (&aa_defparams);
306    if (context == NULL)
307      {
308 @@ -114,20 +115,20 @@
309    height++;
310    loop--;
311    if (loop < 0)
312 -    loop = rand () % 3, sloop++;;
313 +    loop = random () % 3, sloop++;;
314    i1 = 1;
315    i2 = 4 * XSIZ + 1;
316    for (p = (char *) bitmap + XSIZ * (YSIZ + 0);
317         p < ((unsigned char *) bitmap + XSIZ * (YSIZ + 1));
318         p++, i1 += 4, i2 -= 4)
319      {
320 -      last1 = rand () % min (i1, min (i2, height));
321 -      i = rand () % 6;
322 +      last1 = random () % min (i1, min (i2, height));
323 +      i = random () % 6;
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 +=
327 -         rand () % 6 - 2;
328 -      *(p + 2 * XSIZ) = last1, last1 += rand () % 6 - 2;
329 +       *p = last1, last1 += random () % 6 - 2, *(p + XSIZ) = last1, last1 +=
330 +         random () % 6 - 2;
331 +      *(p + 2 * XSIZ) = last1, last1 += random () % 6 - 2;
332      }
333    i = 0;
334    firemain ();
335
336
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
340 @@ -27,11 +27,11 @@
341      return (p);
342  }
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)
346  
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)
348  {
349 -    static int state;
350 +    static int rand_init = 0;
351      int x, y;
352      int val;
353      int wi = c->imgwidth;
354 @@ -47,6 +47,11 @@
355      int randomval = p->randomval;
356      int dither = p->dither;
357      aa_palette table;
358 +
359 +    if (!rand_init) {
360 +       srandomdev();
361 +       rand_init = 1;
362 +    }
363      if (x2 < 0 || y2 < 0 || x1 > aa_scrwidth(c) || y1 > aa_scrheight(c))
364         return;
365      if (x2 >= aa_scrwidth(c))
366