summaryrefslogtreecommitdiff
path: root/games-util/wit
diff options
context:
space:
mode:
authorV3n3RiX <venerix@redcorelinux.org>2020-11-25 22:39:15 +0000
committerV3n3RiX <venerix@redcorelinux.org>2020-11-25 22:39:15 +0000
commitd934827bf44b7cfcf6711964418148fa60877668 (patch)
tree0625f358789b5e015e49db139cc1dbc9be00428f /games-util/wit
parent2e34d110f164bf74d55fced27fe0000201b3eec5 (diff)
gentoo resync : 25.11.2020
Diffstat (limited to 'games-util/wit')
-rw-r--r--games-util/wit/Manifest7
-rw-r--r--games-util/wit/files/wit-3.02a-fno-common.patch11
-rw-r--r--games-util/wit/files/wit-3.02a-makefile.patch113
-rw-r--r--games-util/wit/files/wit-3.02a-no-exec-stack.patch (renamed from games-util/wit/files/wit-2.30a-no-exec-stack.patch)0
-rw-r--r--games-util/wit/wit-3.02a.ebuild25
5 files changed, 133 insertions, 23 deletions
diff --git a/games-util/wit/Manifest b/games-util/wit/Manifest
index 8c823969108b..1ab37b118bc8 100644
--- a/games-util/wit/Manifest
+++ b/games-util/wit/Manifest
@@ -1,5 +1,6 @@
-AUX wit-2.30a-no-exec-stack.patch 232 BLAKE2B 2af2bfe707d22b95f40f2f0e5675fef3e5a153615c327c1638e55651f1fa4cf61b2b868ff86ac899c64f1526f1093e044f32ca853ad0c11c5f505924ee8f1d4d SHA512 958f1fbeda1f29ad704d2eeb3c2a1281f71957fbbb07a7258e6e69af1552e13d135ed61864ef92b9a1334b91990f79366b5b235a8865c424414e46a9305762b0
-AUX wit-3.02a-makefile.patch 5701 BLAKE2B a943a39146fbd90e69ef743c591c053eedf64dad4abf42a36911070aa897679cf9470f5ec5d2b7a1b42f8f951b57821a13b69e6ca8eb01cc6b58c632deb32af3 SHA512 9dd7e293db40b6a3783aef289bce6f0dbf244fca6df8b18b465ab8424989ba60f32bfbda907bdf54e5dc3bac9f82b3bfd5e1866447880fd4299e0df270ee2d7f
+AUX wit-3.02a-fno-common.patch 398 BLAKE2B b76eb5f5c5dcfff35006bcb5d9d2b56192600c5c443e4699e0ddbad3568ae6ac778638486bdec4cb5304cb79a279b5fd4c3b438a369210739267741082aa1e01 SHA512 e1ac2cee2a39f4f462d8399f79965daf7c08e5a24fb1821add9d1f5e8e66728df5289d16df4abc66ae8b26285b1fd1c78f13f3b3f3f86c24f12a49b58de5d158
+AUX wit-3.02a-makefile.patch 7803 BLAKE2B 1912c974b8e7f6a1e06d0cc14b56470db3422433888012b7bf212f32a3cc941b882cef55c5a85e8186d60c4bde705f5cbf023eb5be2264e31f56528fc99ffa4f SHA512 66f3c09416fe0a86648aef4cf76955d525c2c15bb0eea68e1d381eb578113a77a7446ca9e3c804e1734ca28e25e816e06995d1d2628142359ac9a4be79bff39e
+AUX wit-3.02a-no-exec-stack.patch 232 BLAKE2B 2af2bfe707d22b95f40f2f0e5675fef3e5a153615c327c1638e55651f1fa4cf61b2b868ff86ac899c64f1526f1093e044f32ca853ad0c11c5f505924ee8f1d4d SHA512 958f1fbeda1f29ad704d2eeb3c2a1281f71957fbbb07a7258e6e69af1552e13d135ed61864ef92b9a1334b91990f79366b5b235a8865c424414e46a9305762b0
DIST wiimms-iso-tools.source-3.02a.tar.bz2 1645416 BLAKE2B 3ce99b779069d7b845bcf799ee481d63764ba36576adf4c28759e8eb9db9239c158457f84c8e34169b493de94d3c5e3324dc3c2cbd9a9a171ed1b57d2863eb78 SHA512 9bc8c8e078b2932d74a785732ec786ed5b6af86fa951f606a23052c31445e0b1637065858148fb050137f6252ae4ef77676877263513ef3bda33edb42bfed632
-EBUILD wit-3.02a.ebuild 856 BLAKE2B cb28fefd3e1d39dd288c0f23f0c345fe6eff6979808de685b8bc50f39d24d5ec27426155912443b6ee065fe6d8ecd0f933b854f0ae6c07d00653255583ebcfe5 SHA512 23c7596788d4dadeaca9228909157045112280bc3fe0cbc418d1fea46de825243a94ae386073d721fb718f995e2db4d871029223cb5a377722315008b7f81326
+EBUILD wit-3.02a.ebuild 944 BLAKE2B 7db45b804b2e7a3b02598fa11258c338ad6d2e65275a0ba6aa928b187e1b744f4f949be582705c938e8119c47fcb04be77fba71af2cc4ff70984ff294218dce0 SHA512 95097ba2502879e321e92e20db812ac4996b2b8c25cbe97aa723d51335529286dcd1fa418f20cf0e1d2e4e7f3adf9a7fead691e77beeace5bb71e9183fbe4f37
MISC metadata.xml 245 BLAKE2B aaa2ff40dc902a24a65d078bf0805049ba2f934fd668dd39f8bb57192976a37d3bfcdb068e04fac61a8e5f9ea31ddd5e913cbd27613f4945c022dcaec3352568 SHA512 1945d9e75b65266a6b60a5595ae5c381f2ab74c3deffa98480644b922a0d7de02df8dfc7d4716368271b4683c2699cf531ac2e9d4d6993ce31d5a82cf6dc4472
diff --git a/games-util/wit/files/wit-3.02a-fno-common.patch b/games-util/wit/files/wit-3.02a-fno-common.patch
new file mode 100644
index 000000000000..b930213f1567
--- /dev/null
+++ b/games-util/wit/files/wit-3.02a-fno-common.patch
@@ -0,0 +1,11 @@
+--- a/dclib/dclib-color.h
++++ b/dclib/dclib-color.h
+@@ -535,7 +535,7 @@
+ /////////////// color helpers ///////////////
+ ///////////////////////////////////////////////////////////////////////////////
+
+-u32 ColorTab_M0_M15[16]; // first 16 colors of "\e[m"
++extern u32 ColorTab_M0_M15[16]; // first 16 colors of "\e[m"
+
+ // return a m256 index
+ u8 ConvertColorRGB3ToM256 ( u8 r, u8 g, u8 b );
diff --git a/games-util/wit/files/wit-3.02a-makefile.patch b/games-util/wit/files/wit-3.02a-makefile.patch
index a0dea1405a6e..a0172d50f0f7 100644
--- a/games-util/wit/files/wit-3.02a-makefile.patch
+++ b/games-util/wit/files/wit-3.02a-makefile.patch
@@ -1,9 +1,21 @@
Don't link libdl into wfuse as it's unnecessary, use system bzip2, respect user
CFLAGS, use pkgconfig to determine ncurses libs, and use verbose build output.
---- wiimms-iso-tools.source-3.02a/Makefile
-+++ wiimms-iso-tools.source-3.02a/Makefile
-@@ -171,7 +171,7 @@
+--- a/Makefile
++++ b/Makefile
+@@ -111,11 +111,6 @@
+ #-------------------------------------------------------------------------------
+ # compiler settings
+
+-PRE ?=
+-CC = $(PRE)gcc
+-CPP = $(PRE)g++
+-STRIP = $(PRE)strip
+-
+ #-------------------------------------------------------------------------------
+ # files
+
+@@ -171,7 +166,7 @@
TOPT_wit := $(OPT_STATIC)
TOPT_wwt := $(OPT_STATIC)
TOPT_wdf := $(OPT_STATIC)
@@ -12,7 +24,7 @@ CFLAGS, use pkgconfig to determine ncurses libs, and use verbose build output.
#TOPT_ALL := $(TOPT_wit) $(TOPT_wwt) $(TOPT_wdf) $(TOPT_wfuse)
-@@ -206,8 +206,8 @@
+@@ -206,8 +201,8 @@
endif
# lib summary
@@ -23,11 +35,12 @@ CFLAGS, use pkgconfig to determine ncurses libs, and use verbose build output.
RM_FILES += $(foreach l,$(LIB_LIST),src/$(l)/*.{d,o})
-@@ -297,10 +297,8 @@
+@@ -297,10 +292,9 @@
DEFINES1 += -D_LZMA_PROB32=1 # LZMA option
DEFINES = $(strip $(DEFINES1) $(MODE) $(XDEF))
-CFLAGS += -fomit-frame-pointer -fno-strict-aliasing -funroll-loops
++CFLAGS += -fno-strict-aliasing
CFLAGS += -Wall -Wno-parentheses -Wno-unused-function
-#CFLAGS += -O3 -Isrc/libwbfs -Isrc/lzma -Isrc -I$(UI) -I. -Iwork
-CFLAGS += -O3 -Isrc/libwbfs -Isrc -I$(UI) -I. -Iwork
@@ -35,16 +48,22 @@ CFLAGS, use pkgconfig to determine ncurses libs, and use verbose build output.
ifeq ($(SYSTEM),cygwin)
CFLAGS += -Wno-format-truncation
else ifeq ($(SYSTEM),mac)
-@@ -317,7 +315,7 @@
+@@ -311,13 +305,10 @@
+
+ DEPFLAGS += -MMD
+
+-LDFLAGS += -static-libgcc
+-LDFLAGS := $(strip $(LDFLAGS))
+-
ifeq ($(HAVE_ZLIB),1)
LIBS += -lz
endif
-LIBS += -lm -lncurses $(XLIBS)
-+LIBS += -lm $(shell pkg-config --libs ncurses) -lbz2 $(XLIBS)
++LIBS += -lm $(shell $(PKG_CONFIG) --libs ncurses) -lbz2 $(XLIBS)
DISTRIB_RM = ./wit-v$(VERSION)-r
DISTRIB_BASE = wit-v$(VERSION)-r$(REVISION_NEXT)
-@@ -370,83 +368,70 @@
+@@ -370,83 +361,70 @@
# general rules
$(ALL_TOOLS_X): %: %.o $(ALL_OBJECTS) $(TOBJ_ALL) Makefile | $(HELPER_TOOLS)
@@ -144,7 +163,7 @@ CFLAGS, use pkgconfig to determine ncurses libs, and use verbose build output.
#
###############################################################################
-@@ -644,9 +629,8 @@
+@@ -644,9 +622,8 @@
.PHONY : gen-doc
gen-doc:
@@ -156,7 +175,16 @@ CFLAGS, use pkgconfig to determine ncurses libs, and use verbose build output.
#
#--------------------------
-@@ -764,8 +748,7 @@
+@@ -750,7 +727,7 @@
+
+ .PHONY : predef
+ predef:
+- @gcc -E -dM none.c | sort
++ @$(CC) -E -dM none.c | sort
+
+ #
+ #--------------------------
+@@ -764,8 +741,7 @@
#--------------------------
templates.sed: Makefile
@@ -166,7 +194,7 @@ CFLAGS, use pkgconfig to determine ncurses libs, and use verbose build output.
'/^~/ d;\n' \
's|@.@@@|$(VERSION_NUM)|g;\n' \
's|@@@@-@@-@@|$(DATE)|g;\n' \
-@@ -828,13 +811,12 @@
+@@ -828,13 +804,12 @@
.PHONY : test
test:
@@ -185,3 +213,66 @@ CFLAGS, use pkgconfig to determine ncurses libs, and use verbose build output.
#
#--------------------------
+--- a/makefiles-local/Makefile.local.i386
++++ b/makefiles-local/Makefile.local.i386
+@@ -5,6 +5,3 @@
+ # => copy Makefile.local to main directory and remove appropriate comments
+
+ #------------------------------------------------------------------------------
+-
+-#CFLAGS += -mtune=generic
+-CFLAGS += -march=i686
+--- a/makefiles-local/Makefile.local.x86_64
++++ b/makefiles-local/Makefile.local.x86_64
+@@ -5,6 +5,3 @@
+ # => copy Makefile.local to main directory and remove appropriate comments
+
+ #------------------------------------------------------------------------------
+-
+-CFLAGS += -march=x86-64
+-
+--- a/setup.sh
++++ b/setup.sh
+@@ -118,6 +118,6 @@
+
+ ---EOT---
+
+-gcc $xflags system.c -o system.tmp && ./system.tmp >>Makefile.setup
++${CC} $xflags system.c -o system.tmp && ./system.tmp >>Makefile.setup
+ rm -f system.tmp
+
+--- a/test-libwbfs/Makefile
++++ b/test-libwbfs/Makefile
+@@ -7,11 +7,6 @@
+
+ SHELL = /bin/bash
+
+-PRE ?=
+-CC = $(PRE)gcc
+-CPP = $(PRE)g++
+-STRIP = $(PRE)strip
+-
+ #-------------------------------------------------------------------------------
+ # files
+
+@@ -46,18 +41,14 @@
+ DEFINES = -DLARGE_FILES -D_FILE_OFFSET_BITS=64 $(XDEF)
+ DEFINES := $(strip $(DEFINES))
+
+-CFLAGS = -fomit-frame-pointer -fno-strict-aliasing
++CFLAGS += -fno-strict-aliasing
+ CFLAGS += -Wall -Wno-parentheses -Wno-unused-function
+-CFLAGS += -O3 -I../src/libwbfs -I.
++CFLAGS += -I../src/libwbfs -I.
+ CFLAGS += $(XFLAGS)
+ CFLAGS := $(strip $(CFLAGS))
+
+ DEPFLAGS += -MMD
+
+-LDFLAGS += -static-libgcc
+-#LDFLAGS += -static
+-LDFLAGS := $(strip $(LDFLAGS))
+-
+ LIBS += $(XLIBS)
+
+ #
diff --git a/games-util/wit/files/wit-2.30a-no-exec-stack.patch b/games-util/wit/files/wit-3.02a-no-exec-stack.patch
index db91b45cfcb1..db91b45cfcb1 100644
--- a/games-util/wit/files/wit-2.30a-no-exec-stack.patch
+++ b/games-util/wit/files/wit-3.02a-no-exec-stack.patch
diff --git a/games-util/wit/wit-3.02a.ebuild b/games-util/wit/wit-3.02a.ebuild
index 7d79724689d0..95c5351036aa 100644
--- a/games-util/wit/wit-3.02a.ebuild
+++ b/games-util/wit/wit-3.02a.ebuild
@@ -1,4 +1,4 @@
-# Copyright 1999-2019 Gentoo Authors
+# Copyright 1999-2020 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=7
@@ -19,24 +19,31 @@ IUSE="+fuse +zlib"
RDEPEND="
app-arch/bzip2:0=
fuse? ( sys-fs/fuse:0= )
- zlib? ( sys-libs/zlib:0= )
-"
+ zlib? ( sys-libs/zlib:0= )"
DEPEND="${RDEPEND}"
BDEPEND="virtual/pkgconfig"
-DOCS="doc/*.txt"
+S="${WORKDIR}/${MY_P}"
PATCHES=(
"${FILESDIR}"/${P}-makefile.patch
- "${FILESDIR}"/${PN}-2.30a-no-exec-stack.patch
+ "${FILESDIR}"/${P}-no-exec-stack.patch
+ "${FILESDIR}"/${P}-fno-common.patch
)
-S=${WORKDIR}/${MY_P}
-
-src_compile() {
+src_configure() {
export NO_FUSE=$(usex fuse 0 1)
export NO_ZLIB=$(usex zlib 0 1)
- emake INSTALL_PATH="${D}"/usr CC="$(tc-getCC)"
+ tc-export CC PKG_CONFIG
+}
+
+src_compile() {
+ emake INSTALL_PATH="${ED}"/usr
emake doc
}
+
+src_install() {
+ default
+ dodoc doc/*.txt
+}