/[gentoo-x86]/games-emulation/psemu-peopssoftgpu/psemu-peopssoftgpu-1.17.ebuild
Gentoo

Contents of /games-emulation/psemu-peopssoftgpu/psemu-peopssoftgpu-1.17.ebuild

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.9 - (show annotations) (download)
Fri May 4 04:38:38 2012 UTC (12 months, 2 weeks ago) by jdhore
Branch: MAIN
CVS Tags: HEAD
Changes since 1.8: +3 -3 lines
dev-util/pkgconfig -> virtual/pkgconfig

(Portage version: 2.2.0_alpha101/cvs/Linux i686)

1 # Copyright 1999-2012 Gentoo Foundation
2 # Distributed under the terms of the GNU General Public License v2
3 # $Header: /var/cvsroot/gentoo-x86/games-emulation/psemu-peopssoftgpu/psemu-peopssoftgpu-1.17.ebuild,v 1.8 2008/12/23 23:41:39 flameeyes Exp $
4
5 inherit eutils games
6
7 DESCRIPTION="P.E.Op.S Software GPU plugin"
8 HOMEPAGE="http://sourceforge.net/projects/peops/"
9 SRC_URI="mirror://sourceforge/peops/PeopsSoftGpu${PV//./}.tar.gz"
10
11 LICENSE="GPL-2"
12 SLOT="0"
13 KEYWORDS="~ppc x86"
14 IUSE="sdl"
15
16 RDEPEND="=x11-libs/gtk+-1*
17 x11-libs/libXxf86vm
18 sdl? ( media-libs/libsdl )"
19 DEPEND="${RDEPEND}
20 virtual/pkgconfig
21 x86? ( dev-lang/nasm )
22 x11-proto/xf86dgaproto
23 x11-proto/xf86vidmodeproto"
24
25 S=${WORKDIR}
26
27 src_unpack() {
28 unpack ${A}
29 cd "${S}"
30 edos2unix src/makes/mk.fpse
31 epatch \
32 "${FILESDIR}"/${P}-makefile-cflags.patch \
33 "${FILESDIR}"/${P}-fix-noxf86vm.patch \
34 "${FILESDIR}"/${P}-gcc41.patch
35
36 if [[ ${ARCH} != "x86" ]] ; then
37 sed -i \
38 -e "s/^CPU = i386/CPU = ${ARCH}/g" \
39 -e '/^XF86VM =/s:TRUE:FALSE:' "${S}"/src/makes/mk.x11 \
40 || die "sed non-x86 failed"
41 if use sdl ; then
42 sed -i \
43 -e "s/OBJECTS.*i386.o//g" \
44 -e "s/-D__i386__//g" "${S}"/src/makes/mk.fpse \
45 || die "sed sdl failed"
46 fi
47 fi
48 # bug #185428
49 sed -i \
50 -e 's:/X11R6::' \
51 "${S}"/src/makes/mk.x11 \
52 || die "sed failed"
53 }
54
55 src_compile() {
56 cd src
57 emake OPTFLAGS="${CFLAGS}" || die "x11 build failed"
58
59 # FIXME: this breaks if src_compile is called twice
60 if use sdl ; then
61 sed -i \
62 -e 's:mk.x11:mk.fpse:g' Makefile \
63 || die "sed failed"
64 emake clean || die "emake clean failed"
65 emake OPTFLAGS="${CFLAGS}" || die "sdl build failed"
66 fi
67 }
68
69 src_install() {
70 dodoc *.txt
71 insinto "$(games_get_libdir)"/psemu/cfg
72 doins gpuPeopsSoftX.cfg || die "doins failed"
73 exeinto "$(games_get_libdir)"/psemu/plugins
74 doexe src/libgpuPeops* || die "doexe failed"
75 exeinto "$(games_get_libdir)"/psemu/cfg
76 doexe src/cfgPeopsSoft || die "doexe failed"
77 prepgamesdirs
78 }

  ViewVC Help
Powered by ViewVC 1.1.13