Magellan Linux

Annotation of /trunk/deprecated/pearpc/pearpc-0.4.0-r2.smage2

Parent Directory Parent Directory | Revision Log Revision Log


Revision 871 - (hide annotations) (download)
Sat Dec 27 18:52:17 2008 UTC (15 years, 5 months ago) by niro
File size: 1796 byte(s)
-moved to 'deprecated'
1 niro 2 # $Header: /magellan-cvs/smage/pearpc/pearpc-0.4.0-r2.smage2,v 1.2 2008/02/07 14:23:52 niro Exp $
2    
3     PNAME="pearpc"
4     PVER="0.4.0"
5     PBUILD="r2"
6    
7     PCATEGORIE="app-emulation"
8     STATE="testing"
9    
10     DESCRIPTION="PearPC, a ppc emulator for ex. MacOS X."
11     HOMEPAGE="http://pearpc.sourceforge.net"
12    
13     DEPEND=">= virtual/glibc
14     >= x11-libs/libX11-1
15     >= net-misc/iptables-1.3
16     >= net-misc/bridge-utils-1.2"
17    
18     SDEPEND=">= dev-lang/nasm-0.98.38
19     >= sys-dev/flex-2.5
20     >= sys-apps/sed-4"
21    
22     SRCFILE="${PNAME}-${PVER:0:3}.tar.bz2"
23     SRCDIR="${BUILDDIR}/${PNAME}-${PVER:0:3}"
24    
25     sminclude mtools
26    
27     SRC_URI=(
28     sourceforge://${PNAME}/${SRCFILE}
29     mirror://${PNAME}/${SRCFILE}
30     )
31    
32     src_prepare()
33     {
34     munpack ${SRCFILE} || die
35     cd ${SRCDIR}
36    
37     # fix some locations in the ppccfg.example
38     local OLD NEW
39     OLD='prom_driver_graphic = "video.x"'
40     NEW='prom_driver_graphic = "/usr/lib/pearpc/video.x"'
41     sed -i "s:${OLD}:${NEW}:g" ppccfg.example || die
42     }
43    
44     src_compile()
45     {
46     cd ${SRCDIR}
47    
48     # we are only on x86 and have x11 (may we use sdl ?)
49     mconfigure --enable-ui=x11 --enable-cpu=jitc_x86 || die
50     mmake || die
51     }
52    
53     src_install()
54     {
55     cd ${SRCDIR}
56    
57     # needed directories
58     minstalldir /etc/pearpc || die
59     minstalldir /usr/bin || die
60     minstalldir /usr/lib/pearpc || die
61    
62     # bin
63     minstallexec src/ppc /usr/bin || die
64    
65     # man-pages
66     minstallman doc/ppc.1 || die
67    
68     # docs
69     minstalldocs AUTHORS COPYING ChangeLog README TODO || die
70    
71     # default configs
72     minstallfile ppccfg.example /etc/pearpc || die
73     minstallfile ppccfg.example /etc/pearpc/ppccfg || die
74     minstallfile video.x /usr/lib/pearpc || die
75     }
76    
77     postinstall()
78     {
79     echo
80     echo "Edit /etc/pearpc/ppccfg to your needs."
81     echo
82     echo "You can create hdd images with:"
83     echo "dd if=/dev/zero of=myharddisk.img bs=516096 seek=6241 count=0"
84     echo
85     echo "Note: the filesize must be multiple of 516096 !"
86     echo
87     }

Properties

Name Value
svn:keywords Id