OpenPKG CVS Repository
http://cvs.openpkg.org/
____________________________________________________________________________
Server: cvs.openpkg.org Name: Ralf S. Engelschall
Root: /e/openpkg/cvs Email: [EMAIL PROTECTED]
Module: openpkg-src Date: 24-Jul-2004 09:57:55
Branch: HEAD Handle: 2004072408575400
Added files:
openpkg-src/pearpc pearpc.patch pearpc.spec
Log:
new package: pearpc 0.2.0 (PowerPC Emulator)
Summary:
Revision Changes Path
1.1 +25 -0 openpkg-src/pearpc/pearpc.patch
1.1 +129 -0 openpkg-src/pearpc/pearpc.spec
____________________________________________________________________________
patch -p0 <<'@@ .'
Index: openpkg-src/pearpc/pearpc.patch
============================================================================
$ cvs diff -u -r0 -r1.1 pearpc.patch
--- /dev/null 2004-07-24 09:57:54 +0200
+++ pearpc.patch 2004-07-24 09:57:54 +0200
@@ -0,0 +1,25 @@
+Index: src/system/posix/types.h
+--- src/system/posix/types.h.orig 2004-05-17 01:52:48 +0200
++++ src/system/posix/types.h 2004-07-24 09:40:05 +0200
+@@ -22,7 +22,9 @@
+ #ifndef __POSIX_TYPES_H__
+ #define __POSIX_TYPES_H__
+
++#ifdef HAVE_STDINT_H
+ #include <stdint.h>
++#endif
+ #include <sys/types.h>
+
+ typedef uint8_t uint8;
+Index: src/io/prom/fs/hfsplus/unicode.c
+--- src/io/prom/fs/hfsplus/unicode.c.orig 2004-05-06 16:45:32 +0200
++++ src/io/prom/fs/hfsplus/unicode.c 2004-07-24 09:49:49 +0200
+@@ -18,7 +18,7 @@
+ #ifndef WIN32
+ #define __USE_GNU
+ /* need wcsrtomb */
+-#include <wchar.h>
++#include <utf8/wchar.h>
+ #else
+ #define WIN32_LEAN_AND_MEAN
+ #include <windows.h>
@@ .
patch -p0 <<'@@ .'
Index: openpkg-src/pearpc/pearpc.spec
============================================================================
$ cvs diff -u -r0 -r1.1 pearpc.spec
--- /dev/null 2004-07-24 09:57:54 +0200
+++ pearpc.spec 2004-07-24 09:57:54 +0200
@@ -0,0 +1,129 @@
+##
+## pearpc.spec -- OpenPKG RPM Specification
+## Copyright (c) 2000-2004 The OpenPKG Project <http://www.openpkg.org/>
+## Copyright (c) 2000-2004 Ralf S. Engelschall <[EMAIL PROTECTED]>
+## Copyright (c) 2000-2004 Cable & Wireless <http://www.cw.com/>
+##
+## Permission to use, copy, modify, and distribute this software for
+## any purpose with or without fee is hereby granted, provided that
+## the above copyright notice and this permission notice appear in all
+## copies.
+##
+## THIS SOFTWARE IS PROVIDED ``AS IS'' AND ANY EXPRESSED OR IMPLIED
+## WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
+## MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
+## IN NO EVENT SHALL THE AUTHORS AND COPYRIGHT HOLDERS AND THEIR
+## CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
+## SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
+## LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF
+## USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
+## ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
+## OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT
+## OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
+## SUCH DAMAGE.
+##
+
+# package information
+Name: pearpc
+Summary: PowerPC Emulator
+URL: http://pearpc.sourceforge.net/
+Vendor: S. Biallas & S. Weyergraf
+Packager: The OpenPKG Project
+Distribution: OpenPKG
+Class: EVAL
+Group: Misc
+License: GPL
+Version: 0.2.0
+Release: 20040724
+
+# package options
+%option with_x11 yes
+
+# list of sources
+Source0: http://unc.dl.sourceforge.net/pearpc/pearpc-%{version}.tar.bz2
+Patch0: pearpc.patch
+
+# build information
+Prefix: %{l_prefix}
+BuildRoot: %{l_buildroot}
+BuildPreReq: OpenPKG, openpkg >= 20040130, gcc, nasm
+PreReq: OpenPKG, openpkg >= 20040130
+%if "%{with_x11}" == "yes"
+BuildPreReq: X11, qt, libutf8
+PreReq: X11, qt, libutf8
+%endif
+AutoReq: no
+AutoReqProv: no
+
+%description
+ PearPC is an architecture-independent PowerPC platform emulator
+ capable of running most PowerPC operating systems, including
+ Darwin/PPC, MacOS X and Mandrake-Linux/PPC.
+
+%track
+ prog pearpc = {
+ version = %{version}
+ url = http://prdownloads.sourceforge.net/pearpc/
+ regex = pearpc-(__VER__)\.tar\.bz2
+ }
+
+%prep
+ %setup -q
+ %patch -p0
+
+%build
+ # configure program
+%if "%{with_x11}" == "yes"
+ gui=qt
+%else
+ gui=nogui
+%endif
+ cpu=generic
+ case "%{l_platform -p}" in
+ ix86-* ) cpu="jitc_x86" ;;
+ esac
+ CC="%{l_cc}" \
+ CXX="%{l_cxx}" \
+ CFLAGS="%{l_cflags -O}" \
+ CXXFLAGS="%{l_cxxflags -O}" \
+ CPPFLAGS="%{l_cppflags qt .}" \
+ LDFLAGS="%{l_ldflags}" \
+ LIBS="`/openpkg-dev/bin/pkg-config --libs qt-mt` -lutf8" \
+ QTDIR="%{l_prefix}" \
+ ./configure \
+ --prefix=%{l_prefix} \
+ --with-x \
+ --x-includes=`%{l_prefix}/etc/rc --query x11_incdir` \
+ --x-libraries=`%{l_prefix}/etc/rc --query x11_libdir` \
+ --enable-gui=$gui \
+ --enable-cpu=$cpu \
+ --enable-release \
+ --disable-debug
+
+ # build program
+ %{l_make} %{l_mflags -O}
+
+%install
+ # install program
+ rm -rf $RPM_BUILD_ROOT
+ %{l_make} %{l_mflags} install AM_MAKEFLAGS="DESTDIR=$RPM_BUILD_ROOT"
+
+ # strip down installation
+ strip $RPM_BUILD_ROOT%{l_prefix}/bin/* >/dev/null 2>&1 || true
+
+ # install default configuration
+ %{l_shtool} mkdir -f -p -m 755 \
+ $RPM_BUILD_ROOT%{l_prefix}/etc/pearpc
+ %{l_shtool} install -c -m 644 \
+ ppccfg.example $RPM_BUILD_ROOT%{l_prefix}/etc/pearpc/ppc.cfg
+
+ # determine installation files
+ %{l_rpmtool} files -v -ofiles -r$RPM_BUILD_ROOT \
+ %{l_files_std} \
+ '%config %{l_prefix}/etc/pearpc/*'
+
+%files -f files
+
+%clean
+ rm -rf $RPM_BUILD_ROOT
+
@@ .
______________________________________________________________________
The OpenPKG Project www.openpkg.org
CVS Repository Commit List [EMAIL PROTECTED]