1 | # $Id: $ |
---|
2 | |
---|
3 | PortSystem 1.0 |
---|
4 | |
---|
5 | name crafty |
---|
6 | categories games |
---|
7 | version 20.13 |
---|
8 | platforms darwin |
---|
9 | maintainers pierre@queinnec.org |
---|
10 | description Crafty is a chess program, that can be interfaced with xboard. |
---|
11 | |
---|
12 | long_description \ |
---|
13 | Crafty is the derivative of Cray Blitz, a computer chess program. It is \ |
---|
14 | a very strong one, and its current peak ICC ratings are 3286 (bullet), \ |
---|
15 | 3388 (blitz) and 2792 (standard). It can be used with xboard just like \ |
---|
16 | gnuchess. |
---|
17 | |
---|
18 | homepage http://www.cis.uab.edu/hyatt/hyatt.html |
---|
19 | master_sites ftp://ftp.cis.uab.edu/pub/hyatt/source:src \ |
---|
20 | ftp://ftp.cis.uab.edu/pub/hyatt/documentation:doc \ |
---|
21 | ftp://ftp.cis.uab.edu/pub/hyatt/book:book |
---|
22 | |
---|
23 | set dist_srczip ${name}-${version}.zip |
---|
24 | set dist_book1 book.bin |
---|
25 | set dist_book2 bookc.bin |
---|
26 | set dist_book3 books.bin |
---|
27 | set dist_ascii ${name}.doc.ascii |
---|
28 | set dist_ps ${name}.doc.ps |
---|
29 | set dist_man ${name}.man |
---|
30 | |
---|
31 | distfiles ${dist_srczip}:src \ |
---|
32 | ${dist_book1}:book \ |
---|
33 | ${dist_book2}:book \ |
---|
34 | ${dist_book3}:book \ |
---|
35 | ${dist_ascii}:doc \ |
---|
36 | ${dist_ps}:doc \ |
---|
37 | ${dist_man}:doc |
---|
38 | |
---|
39 | checksums ${dist_srczip} md5 3b7c3e26f6501bb85bf9f86e4f16581a \ |
---|
40 | ${dist_book1} md5 75385ddfdc5469164e8ccaeca20210e1 \ |
---|
41 | ${dist_book2} md5 5c8cc8db3ea8a3abd762a7d4247221ad \ |
---|
42 | ${dist_book3} md5 7b3a55d563724701eff7b182c3714c6d \ |
---|
43 | ${dist_ascii} md5 5fd73027a1de1674763562e1987197ba \ |
---|
44 | ${dist_ps} md5 6cef69aa2f9ea1ceb74b6c14edc8291f \ |
---|
45 | ${dist_man} md5 26163f4048f3ca05a1f6a1a2fb64525f |
---|
46 | |
---|
47 | depends_build bin:unzip:unzip |
---|
48 | |
---|
49 | extract { |
---|
50 | file mkdir work |
---|
51 | |
---|
52 | # extract the src zip |
---|
53 | system "cd ${workpath} && unzip ${distpath}/${dist_srczip}" |
---|
54 | } |
---|
55 | |
---|
56 | use_configure no |
---|
57 | |
---|
58 | build.target darwin |
---|
59 | # in a next version, point crafty to the default location for books |
---|
60 | # for the moment use the classic bookpath switch when launching it |
---|
61 | # should you want to use endgame tables, put them into the TBDIR |
---|
62 | # build.args -DBOOKDIR=${prefix}/share/${name}/ \ |
---|
63 | # -DTBDIR=${prefix}/share/${name}/TB/ |
---|
64 | |
---|
65 | destroot { |
---|
66 | # copy the executable |
---|
67 | file copy ${worksrcpath}/${name} ${destroot}/${prefix}/bin/ |
---|
68 | |
---|
69 | # copy the book files |
---|
70 | file mkdir ${destroot}/${prefix}/share/${name} |
---|
71 | file copy ${distpath}/${dist_book1} \ |
---|
72 | ${distpath}/${dist_book2} \ |
---|
73 | ${distpath}/${dist_book3} \ |
---|
74 | ${destroot}/${prefix}/share/${name}/ |
---|
75 | |
---|
76 | # copy the docs |
---|
77 | file mkdir ${destroot}/${prefix}/share/doc/${name} |
---|
78 | file copy ${distpath}/${dist_ascii} \ |
---|
79 | ${distpath}/${dist_ps} \ |
---|
80 | ${destroot}/${prefix}/share/doc/${name} |
---|
81 | |
---|
82 | # copy the manpage, renaming the extension |
---|
83 | file copy ${distpath}/${dist_man} \ |
---|
84 | ${destroot}/${prefix}/share/man/man1/${name}.1 |
---|
85 | } |
---|