]> git.draconx.ca Git - gentoo-draconx.git/commitdiff
Add onscripter-en ebuild.
authorNick Bowler <nbowler@draconx.ca>
Tue, 28 Apr 2015 04:27:17 +0000 (00:27 -0400)
committerNick Bowler <nbowler@draconx.ca>
Tue, 28 Apr 2015 05:31:00 +0000 (01:31 -0400)
Piles-o-hacks because SDL_ttf-2.0.11 doesn't work with this program.

games-engines/onscripter-en/Manifest [new file with mode: 0644]
games-engines/onscripter-en/files/onscripter-en-20110930-fix-configure.patch [new file with mode: 0644]
games-engines/onscripter-en/files/onscripter-en-respect-CXXFLAGS.patch [new file with mode: 0644]
games-engines/onscripter-en/onscripter-en-20110930.ebuild [new file with mode: 0644]

diff --git a/games-engines/onscripter-en/Manifest b/games-engines/onscripter-en/Manifest
new file mode 100644 (file)
index 0000000..0547b5b
--- /dev/null
@@ -0,0 +1,5 @@
+AUX onscripter-en-20110930-fix-configure.patch 1747 SHA256 8c4fb058b7aca988f4c2f7edd8295d120c82ae7fec512f636f70a2b051141edf SHA512 d76f4096725be1342410bcb462641202532a1674f5cc2d116318fbc1be71f01cfea3432051f483e2e3605e13c71324b602952acfd70ef85290ba9b6e62de98eb WHIRLPOOL 79919515bb33b268c80af78320b96435d856834e70c25e11ba4e04dcc37d592d87cf528cd43ff1e2059a52882c244bfb794f8b1e5603232363c24d88a11d7885
+AUX onscripter-en-respect-CXXFLAGS.patch 962 SHA256 1ca988be4cbc9cff81327f310eabb6635139c29544d792c917c9afb71a0a7ae1 SHA512 55334a76cf5380d566c481f03ff2c8767205d422cf2b98bc423c04fcf8df2c57a89c2b8c7901d4ba33f527f3ad548266e72d2a450e02435a429572a1a6f4769a WHIRLPOOL d75e736b226cd866e3029406acc1e4daf29971815858600bb215bf7ff53a36d29c7d95a73f39b975a9956e192b1146d454a88252f898f844a60cac5947359a66
+DIST SDL_ttf-2.0.10.tar.gz 1326737 SHA256 7d38704bcc7c34029c2dcb73b2d4857e8ad76341c6e0faed279eb9f743c66c6a SHA512 85a90ab17977388fc7058c19de0c964fb8b65ad49012eabe3d5610122a9b24dd82139ed89ddc201db24ca6f9c270f2bca6808951debf6b3321c58d8d768c1715 WHIRLPOOL 9ddc77837675aba134b09096f0445b1a8c7cd9cece17457fc82599fcacfc01c207761c2ecfc1f1607f454221c1d89275394f49974fe7c55abca2ccd0857492c5
+DIST onscripter-en-20110930-src.tar.bz2 885072 SHA256 a62af713185e849f7337280337cdd2e063ace6e80334c8e7831130925033f5cf SHA512 81ad58a47c38dcd9368e85aa057409e459852abc87da90c33226c5b2c3856b988f42f431d6acee7172689e073588533bec5491da0202b77b1a8fb215ec79cd5f WHIRLPOOL 152e38f81f3a79137cf86b3bdd762d3d8d6d54d92d3a699a468ed24045fe33823febb6dd33c189853d2d91270189e8c22faf15e5a91481d951dca4fdaf867d49
+EBUILD onscripter-en-20110930.ebuild 1456 SHA256 716c6ec1dd522b268ab11fdfcf9d47d59ce4ba7ec36fae102c32648cc157cdb9 SHA512 63f9a08fb1582e82a51fe665e45055c8c9f276efa0521111b3423a36b7cedde56a530289e463583607ff8cc7879488461aa862a82cb7646e35620f0ab7a97a0a WHIRLPOOL 6411a865e0256fc25e4c96923f06229ba830bd218a24491a5b0ea13976154476ea40ac10a0f96e075cb3e2d28e4be74b033ec1117dab5a0c1a88a82401ac5f88
diff --git a/games-engines/onscripter-en/files/onscripter-en-20110930-fix-configure.patch b/games-engines/onscripter-en/files/onscripter-en-20110930-fix-configure.patch
new file mode 100644 (file)
index 0000000..5e4a16c
--- /dev/null
@@ -0,0 +1,55 @@
+From f48d0f8375a54e51a6e2ec8df41588e1243ce9b6 Mon Sep 17 00:00:00 2001
+From: Mion <UncleMion@gmail.com>
+Date: Thu, 16 Feb 2012 19:47:15 -0700
+Subject: [PATCH] fix to configure, removing default -Werror (based on a patch
+ submitted by hex)
+
+---
+ configure | 10 +++++++---
+ 1 file changed, 7 insertions(+), 3 deletions(-)
+
+diff --git a/configure b/configure
+index c58bf4332322..95779ab326a2 100755
+--- a/configure
++++ b/configure
+@@ -31,7 +31,7 @@ USE_CPU_GFX=true
+ VECTORIZE=false
+ VECTORIZE_LEVEL=0
+ FASTMATH=-ffast-math
+-WERROR="-Werror"
++WERROR=
+ CXXSTD="-std=c++98"
+ STRICT=
+ INTERNAL_LIBS=false
+@@ -100,6 +100,9 @@ do
+       --no-werror | -no-werror)
+         WERROR=""
+         ;;
++      --with-werror | -with-werror)
++        WERROR="-Werror"
++        ;;
+       --unsupported-compiler | -unsupported-compiler)
+         UNSUPPORTED_COMPILER=true ;;
+       --unsupported-compiler=* | -unsupported-compiler=*)
+@@ -237,7 +240,8 @@ do
+                                  (note: g++ already uses -Wall)
+         --pedantic               compile with -pedantic
+         --unsupported-compiler   don't check for known compilers
+-        --no-werror              don't compile with -Werror
++        --no-werror              don't compile with -Werror (default)
++        --with-werror            compile with -Werror
+         --no-cpu-gfx             don't compile with custom intrinsic graphics
+                                  routines (usually compiled for x86/PPC if GCC 4.3+)
+         --vectorize              try to use compiler vectorization (requires GCC 4+)
+@@ -950,7 +954,7 @@ genlink() {
+     then
+         eval "LINK$2=\"\\\$(EXTLIB)/lib/lib$2\\\$(LIBSUFFIX)\""
+     else
+-        eval "LINK$2=-l$2.dll"
++        eval "LINK$2=-l$2"
+     fi
+ }
+ genlink $INTERNAL_LIBPNG    z
+-- 
+2.2.2
+
diff --git a/games-engines/onscripter-en/files/onscripter-en-respect-CXXFLAGS.patch b/games-engines/onscripter-en/files/onscripter-en-respect-CXXFLAGS.patch
new file mode 100644 (file)
index 0000000..2f45f8f
--- /dev/null
@@ -0,0 +1,35 @@
+From b4b9bda38cc0d909228445affc0c0122df16d3de Mon Sep 17 00:00:00 2001
+From: Nick Bowler <nbowler@draconx.ca>
+Date: Mon, 27 Apr 2015 23:37:59 -0400
+Subject: [PATCH] Respect CFLAGS.
+
+---
+ configure | 12 +-----------
+ 1 file changed, 1 insertion(+), 11 deletions(-)
+
+diff --git a/configure b/configure
+index 95779ab326a2..0358c0e24adc 100755
+--- a/configure
++++ b/configure
+@@ -1206,17 +1206,7 @@ cat >> Makefile <<_EOF
+ .SUFFIXES:
+ .SUFFIXES: $OBJ .cpp .h .c
+-ifdef DEBUG
+-OSCFLAGS = -O0 -g -pg -ggdb -pipe -Wpointer-arith $WERROR $STRICT \$(OSCFLAGSEXTRA)
+-export LDFLAGS  := -pg \$(LDFLAGS)
+-else
+-  ifdef PROF
+-  OSCFLAGS = -O3 -pg -pipe -Wpointer-arith $WERROR $STRICT \$(OSCFLAGSEXTRA)
+-  export LDFLAGS  := -pg \$(LDFLAGS)
+-  else
+-  OSCFLAGS = -O3 -fomit-frame-pointer -pipe -Wpointer-arith $WERROR $STRICT \$(OSCFLAGSEXTRA)
+-  endif
+-endif
++OSCFLAGS = \$(CFLAGS) -Wpointer-arith $WERROR $STRICT \$(OSCFLAGSEXTRA)
+ TARGET ?= onscripter-en
+-- 
+2.2.2
+
diff --git a/games-engines/onscripter-en/onscripter-en-20110930.ebuild b/games-engines/onscripter-en/onscripter-en-20110930.ebuild
new file mode 100644 (file)
index 0000000..2c0bcf2
--- /dev/null
@@ -0,0 +1,64 @@
+# Copyright © 2015 Nick Bowler
+# License GPLv3+: GNU General Public License version 3 or later.
+# There is NO WARRANTY, to the extent permitted by law.
+
+EAPI=5
+
+inherit base games
+
+DESCRIPTION="English-language fork of ONScripter: a free clone of NScripter"
+HOMEPAGE="http://unclemion.com/dev/projects/onscripter-en"
+
+# This package has a hard dep on SDL_ttf-2.0.10, fonts do not work with
+# 2.0.11.  Download that release specifically.
+SRC_URI="http://unclemion.com/dev/attachments/download/36/$P-src.tar.bz2
+       https://www.libsdl.org/projects/SDL_ttf/release/SDL_ttf-2.0.10.tar.gz
+       "
+
+LICENSE="GPL-2+ ZLIB"
+SLOT="0"
+KEYWORDS="~amd64"
+
+DEPEND="app-arch/bzip2
+       media-libs/libsdl
+       media-libs/sdl-mixer[vorbis]
+       media-libs/sdl-image
+       media-libs/smpeg
+       media-libs/freetype:2
+       x11-libs/libXt
+       "
+RDEPEND=$DEPEND
+
+PATCHES=(
+       "$FILESDIR/$P-fix-configure.patch"
+       "$FILESDIR/$PN-respect-CXXFLAGS.patch"
+       )
+
+src_configure() {
+       einfo "Configuring SDL_ttf"
+       cd "$WORKDIR/SDL_ttf-2.0.10" || die
+       econf --prefix="$S/onscrlib" --libdir='${prefix}/lib' \
+               --enable-static --disable-shared || die
+
+       einfo "Configuring $PN"
+       cd "$S" || die
+       econf --unsupported-compiler \
+               --onscrlib-path="$S" --with-internal-sdl-ttf
+}
+
+src_compile() {
+       einfo "Building SDL_ttf"
+       cd "$WORKDIR/SDL_ttf-2.0.10" || die
+       emake noinst_PROGRAMS= install || die
+
+       einfo "Building $PN"
+       cd "$S" || die
+       base_src_compile
+}
+
+src_install() {
+       dodoc README
+
+       dogamesbin onscripter-en
+       prepgamesdirs
+}