summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRyan Phillips <rphillips@gentoo.org>2002-06-03 02:53:20 +0000
committerRyan Phillips <rphillips@gentoo.org>2002-06-03 02:53:20 +0000
commite6086baf08a56b8bc47632d7ac4203bd413d2ab5 (patch)
treebd0d30a582abc1dfaabbc8c3b4da4f714107902d /app-emulation/psemu-peopssoftgpu/psemu-peopssoftgpu-1.6.ebuild
parentdependency fix (diff)
downloadgentoo-2-e6086baf08a56b8bc47632d7ac4203bd413d2ab5.tar.gz
gentoo-2-e6086baf08a56b8bc47632d7ac4203bd413d2ab5.tar.bz2
gentoo-2-e6086baf08a56b8bc47632d7ac4203bd413d2ab5.zip
New package. Fixes #3266-#3274
Diffstat (limited to 'app-emulation/psemu-peopssoftgpu/psemu-peopssoftgpu-1.6.ebuild')
-rw-r--r--app-emulation/psemu-peopssoftgpu/psemu-peopssoftgpu-1.6.ebuild45
1 files changed, 45 insertions, 0 deletions
diff --git a/app-emulation/psemu-peopssoftgpu/psemu-peopssoftgpu-1.6.ebuild b/app-emulation/psemu-peopssoftgpu/psemu-peopssoftgpu-1.6.ebuild
new file mode 100644
index 000000000000..c85ddb3781a0
--- /dev/null
+++ b/app-emulation/psemu-peopssoftgpu/psemu-peopssoftgpu-1.6.ebuild
@@ -0,0 +1,45 @@
+# Copyright 1999-2002 Gentoo Technologies, Inc.
+# Distributed under the terms of the GNU General Public License v2
+# Author Per Wigren <wigren@home.se>
+# /space/gentoo/cvsroot/gentoo-x86/skel.ebuild,v 1.7 2002/05/18 17:25:12 agenkin Exp
+
+DESCRIPTION="P.E.Op.S Software GPU plugin"
+HOMEPAGE="http://peops.sourceforge.net"
+LICENSE="GPL-2"
+DEPEND="x11-libs/gtk+
+ dev-lang/nasm
+ sdl? ( media-libs/libsdl )"
+SRC_URI="http://telia.dl.sourceforge.net/sourceforge/peops/PeopsSoftGpu106.tar.gz"
+S=${WORKDIR}
+
+lowercase() {
+ for f in $*; do
+ mv "$f" "$(echo $f | tr A-Z a-z)"
+ done
+}
+
+src_compile() {
+ cd src
+ lowercase makes/mk.X11 Gpu.[ch] Stdafx.h Cfg.c Draw.c Key.c Menu.c \
+ Prim.c Soft.c
+ sed 's:CFLAGS =:CFLAGS +=:g' <makes/plg.mk >makes/plg.mk.tmp
+ mv -f makes/plg.mk.tmp makes/plg.mk
+
+ emake || die "Failed to make X11-version"
+
+ use sdl && (
+ sed 's:mk.x11:mk.fpse:g' <Makefile >Makefile.sdl
+ echo 'INCLUDE = `sdl-config --cflags`' >makes/mk.fpse.tmp
+ sed 's:-lSDL:`sdl-config --libs`:g' <makes/mk.fpse >>makes/mk.fpse.tmp
+ mv -f makes/mk.fpse.tmp makes/mk.fpse
+ make clean
+ emake -f Makefile.sdl || die "Failed to make SDL-version"
+ )
+}
+
+src_install () {
+ insinto /usr/lib/psemu/plugins/
+ doins src/libgpu*
+ dodoc readme_1_6.txt version_1_6.txt
+}
+