1 | # $Id: Portfile 126 2011-12-02 22:08:19Z mapo $ |
---|
2 | |
---|
3 | PortSystem 1.0 |
---|
4 | |
---|
5 | name x48 |
---|
6 | version 0.6.4 |
---|
7 | description HP48 calculator emulator |
---|
8 | categories emulators math |
---|
9 | maintainers de.shuttle.lb.puffin:michael.klein openmaintainer |
---|
10 | long_description \ |
---|
11 | This emulator is capable of providing a faithful \ |
---|
12 | replication of the HP48. It also has a debugger for the \ |
---|
13 | saturn processor. |
---|
14 | |
---|
15 | homepage http://${name}.berlios.de/ |
---|
16 | platforms darwin |
---|
17 | master_sites http://download.berlios.de/${name} \ |
---|
18 | http://download2.berlios.de/${name} |
---|
19 | use_bzip2 yes |
---|
20 | |
---|
21 | extract.only ${distname}${extract.suffix} |
---|
22 | |
---|
23 | checksums ${distname}${extract.suffix} \ |
---|
24 | sha1 dfc82fe84f0c793a5f7b8024127e16d341ad2899 \ |
---|
25 | rmd160 a5d7ddb4eb47426c639941d8cf53926bd3451ef5 |
---|
26 | |
---|
27 | livecheck.type regex |
---|
28 | livecheck.url http://developer.berlios.de/project/showfiles.php?group_id=3335 |
---|
29 | livecheck.regex {x48-(\d+\.\d+\.\d+)\.tar\.bz2} |
---|
30 | |
---|
31 | depends_build port:autoconf port:automake |
---|
32 | depends_lib port:xorg-libXext port:readline |
---|
33 | |
---|
34 | worksrcdir . |
---|
35 | |
---|
36 | set gxrom gxrom-r |
---|
37 | set sxrom sxrom-j |
---|
38 | |
---|
39 | set docdir ${prefix}/share/doc/${name} |
---|
40 | set romdir ${prefix}/share/${name} |
---|
41 | |
---|
42 | default_variants +roms |
---|
43 | |
---|
44 | variant roms description "download and install ROM images" { |
---|
45 | distfiles-append ${gxrom}.bz2 |
---|
46 | checksums-append ${gxrom}.bz2 \ |
---|
47 | sha1 c60a83cd57681c3cb359f0cd2505ede686fdb4c8 \ |
---|
48 | rmd160 1dafce5902310161cb60f3dde401941565fd031c |
---|
49 | |
---|
50 | distfiles-append ${sxrom}.bz2 |
---|
51 | checksums-append ${sxrom}.bz2 \ |
---|
52 | sha1 660252ec34357bf0e3c4f2ba78eab3409f1c6fe8 \ |
---|
53 | rmd160 8fb5f6f1284fb2dc15aa5d7603bbe3bfb8f30638 |
---|
54 | |
---|
55 | post-destroot { |
---|
56 | xinstall -d ${destroot}${romdir} |
---|
57 | system "bzcat ${distpath}/${gxrom}.bz2 > ${destroot}${romdir}/${gxrom}" |
---|
58 | system "bzcat ${distpath}/${sxrom}.bz2 > ${destroot}${romdir}/${sxrom}" |
---|
59 | } |
---|
60 | } |
---|
61 | |
---|
62 | pre-configure { |
---|
63 | system "cd ${worksrcpath} && ./autogen.sh" |
---|
64 | } |
---|
65 | |
---|
66 | post-destroot { |
---|
67 | xinstall -d ${destroot}${docdir} |
---|
68 | copy ${worksrcpath}/README ${destroot}${docdir} |
---|
69 | } |
---|
70 | |
---|
71 | if {[variant_isset roms]} { |
---|
72 | notes "############################################################################ |
---|
73 | # Calculator ROMS have been installed to ${romdir} |
---|
74 | # Execute one of the commands below to initialize the emulator: |
---|
75 | # |
---|
76 | # x48 -initialize -rom ${romdir}/${gxrom} |
---|
77 | # x48 -initialize -rom ${romdir}/${sxrom} |
---|
78 | ############################################################################" |
---|
79 | } else { |
---|
80 | notes "############################################################################ |
---|
81 | # No calculator ROMS have been installed. To use this emulator you need to |
---|
82 | # obtain a ROM dump first. |
---|
83 | # |
---|
84 | # Check ${docdir}/README for details |
---|
85 | ############################################################################" |
---|
86 | } |
---|