diff options
author | David Holm <dholm@gentoo.org> | 2004-03-11 12:28:50 +0000 |
---|---|---|
committer | David Holm <dholm@gentoo.org> | 2004-03-11 12:28:50 +0000 |
commit | 57806e297c9085228fbc4083cb410337417010da (patch) | |
tree | 9092c8af761a4bbf991106ac24dc62bacdac9421 /games-strategy | |
parent | Fixing up ebuild to use complete paths and ${S}. Closing bug #44327. (diff) | |
download | historical-57806e297c9085228fbc4083cb410337417010da.tar.gz historical-57806e297c9085228fbc4083cb410337417010da.tar.bz2 historical-57806e297c9085228fbc4083cb410337417010da.zip |
Added ppc support
Diffstat (limited to 'games-strategy')
-rw-r--r-- | games-strategy/ufo-ai/ChangeLog | 6 | ||||
-rw-r--r-- | games-strategy/ufo-ai/Manifest | 6 | ||||
-rw-r--r-- | games-strategy/ufo-ai/files/0.10.040218-Makefile.patch | 36 | ||||
-rw-r--r-- | games-strategy/ufo-ai/ufo-ai-0.10.040218.ebuild | 27 |
4 files changed, 51 insertions, 24 deletions
diff --git a/games-strategy/ufo-ai/ChangeLog b/games-strategy/ufo-ai/ChangeLog index 0293d648c77c..0a65d8a40455 100644 --- a/games-strategy/ufo-ai/ChangeLog +++ b/games-strategy/ufo-ai/ChangeLog @@ -1,6 +1,10 @@ # ChangeLog for games-strategy/ufo-ai # Copyright 2000-2004 Gentoo Technologies, Inc.; Distributed under the GPL v2 -# $Header: /var/cvsroot/gentoo-x86/games-strategy/ufo-ai/ChangeLog,v 1.2 2004/03/11 12:14:23 wolf31o2 Exp $ +# $Header: /var/cvsroot/gentoo-x86/games-strategy/ufo-ai/ChangeLog,v 1.3 2004/03/11 12:28:50 dholm Exp $ + + 11 Mar 2004; David Holm <dholm@gentoo.org> ufo-ai-0.10.040218.ebuild, + files/0.10.040218-Makefile.patch: + Added ppc support. 11 Mar 2004; Chris Gianelloni <wolf31o2@gentoo.org> ufo-ai-0.10.040218.ebuild: diff --git a/games-strategy/ufo-ai/Manifest b/games-strategy/ufo-ai/Manifest index 4259372b7db2..15e235a060aa 100644 --- a/games-strategy/ufo-ai/Manifest +++ b/games-strategy/ufo-ai/Manifest @@ -1,5 +1,5 @@ -MD5 2d02eb0c6e6ca0697115245f8012c755 ufo-ai-0.10.040218.ebuild 1465 -MD5 184c44d86bcd1bca5d5e87368f7ee4e1 ChangeLog 620 +MD5 3c8ba04f22774703390ec18a544c9fc7 ChangeLog 747 MD5 f17b9b8fa07a38914fe1c03268f51678 metadata.xml 158 +MD5 1a96bd282d76af9bffcfc1a46e220e2a ufo-ai-0.10.040218.ebuild 1189 +MD5 6ca39990b18a4bf10c112bb43983024e files/0.10.040218-Makefile.patch 1759 MD5 741c23ff1ac99c9aaf9ffead77cf26c4 files/digest-ufo-ai-0.10.040218 135 -MD5 1d3e244409fa8c09b2b88c4a9ee455bd files/0.10.040218-Makefile.patch 1221 diff --git a/games-strategy/ufo-ai/files/0.10.040218-Makefile.patch b/games-strategy/ufo-ai/files/0.10.040218-Makefile.patch index bb0b47492da3..38d713b2a3ea 100644 --- a/games-strategy/ufo-ai/files/0.10.040218-Makefile.patch +++ b/games-strategy/ufo-ai/files/0.10.040218-Makefile.patch @@ -1,6 +1,21 @@ ---- Makefile.orig 2004-02-18 16:37:38.000000000 -0500 -+++ Makefile 2004-03-07 00:56:10.980247752 -0500 -@@ -54,8 +54,8 @@ +--- Makefile.orig 2004-03-11 13:22:44.000000000 +0100 ++++ Makefile 2004-03-11 13:25:04.000000000 +0100 +@@ -20,9 +20,14 @@ + ARCH=axp + RPMARCH=alpha + else ++ifneq (,$(findstring ppc,$(shell uname -m))) ++ARCH=ppc ++RPMARCH=ppc ++else + ARCH=i386 + RPMARCH=i386 + endif ++endif + NOARCH=noarch + + MOUNT_DIR=.. +@@ -54,8 +59,8 @@ RELEASE_CFLAGS=$(BASE_CFLAGS) -O6 -ffast-math -funroll-loops \ -fomit-frame-pointer -fexpensive-optimizations else @@ -11,7 +26,7 @@ endif DEBUG_CFLAGS=$(BASE_CFLAGS) -g -@@ -64,9 +64,9 @@ +@@ -64,9 +69,9 @@ XLDFLAGS=-L/usr/X11R6/lib -lX11 -lXext -lXxf86dga XCFLAGS= @@ -24,7 +39,7 @@ SHLIBEXT=so -@@ -100,6 +100,8 @@ +@@ -100,6 +105,8 @@ $(BUILDDIR)/ref_gl.$(SHLIBEXT) endif @@ -33,3 +48,14 @@ build_debug: @-mkdir $(BUILD_DEBUG_DIR) \ $(BUILD_DEBUG_DIR)/client \ +--- sys_linux.c.orig 2004-03-11 13:22:48.000000000 +0100 ++++ sys_linux.c 2004-03-11 13:22:53.000000000 +0100 +@@ -223,6 +223,8 @@ + const char *gamename = "gamei386.so";
+ #elif defined __alpha__
+ const char *gamename = "gameaxp.so";
++#elif defined __powerpc__
++ const char *gamename = "gameppc.so";
+ #else
+ #error Unknown arch
+ #endif
diff --git a/games-strategy/ufo-ai/ufo-ai-0.10.040218.ebuild b/games-strategy/ufo-ai/ufo-ai-0.10.040218.ebuild index 782e8f25c736..bf3d5bb1cbd7 100644 --- a/games-strategy/ufo-ai/ufo-ai-0.10.040218.ebuild +++ b/games-strategy/ufo-ai/ufo-ai-0.10.040218.ebuild @@ -1,15 +1,16 @@ # Copyright 1999-2004 Gentoo Technologies, Inc. # Distributed under the terms of the GNU General Public License v2 -# $Header: /var/cvsroot/gentoo-x86/games-strategy/ufo-ai/ufo-ai-0.10.040218.ebuild,v 1.2 2004/03/11 12:14:23 wolf31o2 Exp $ +# $Header: /var/cvsroot/gentoo-x86/games-strategy/ufo-ai/ufo-ai-0.10.040218.ebuild,v 1.3 2004/03/11 12:28:50 dholm Exp $ inherit games +S=${WORKDIR} DESCRIPTION="UFO: Alien Invasion - X-COM inspired strategy game" SRC_URI="http://n.ethz.ch/student/dbeyeler/download/ufoai_source_040218.zip http://people.ee.ethz.ch/~baepeter/linux_ufoaidemo.zip" HOMEPAGE="http://ufo.myexp.de/" -KEYWORDS="~x86" +KEYWORDS="~x86 ~ppc" SLOT="0" LICENSE="GPL-2" IUSE="" @@ -21,32 +22,28 @@ DEPEND="virtual/glibc media-libs/libogg" src_unpack() { - unpack ${A} || die "unpack failed" - cd ${S}/source/linux || die "change dir" - epatch ${FILESDIR}/${PV}-Makefile.patch || die "patching" + unpack ${A} + cd source/linux + epatch ${FILESDIR}/${PV}-Makefile.patch } src_compile() { - cd ${S}/source/linux || die "change dir" + cd source/linux make build_release \ OPTCFLAGS="${CFLAGS}" \ || die "make failed" + cd ../.. } src_install() { dodir ${GAMES_DATADIR}/${PN} - cp -rf ${S}/ufo/* ${D}${GAMES_DATADIR}/${PN} || die "copy data" - cd ${S}/source/linux/releasei386-glibc || die "change dir" + cp -rf ufo/* ${D}${GAMES_DATADIR}/${PN} + cd source/linux/release${ARCH}-glibc exeinto ${GAMES_DATADIR}/${PN} - doexe ${S}/source/linux/releasei386-glibc/{ref_gl.so,ref_glx.so,ufo} \ - || die "doexe ufo" + doexe ref_gl.so ref_glx.so ufo exeinto ${GAMES_DATADIR}/${PN}/base - doexe ${S}/source/linux/releasei386-glibc/gamei386.so \ - || die "doexe gamei386.so" + doexe game${ARCH}.so games_make_wrapper ufo-ai ./ufo ${GAMES_DATADIR}/${PN} prepgamesdirs } -pkg_postinst() { - games_pkg_postinst -} |