* [gentoo-commits] repo/gentoo:master commit in: games-emulation/mupen64plus-ui-console/, ...
@ 2019-09-15 13:12 David Seifert
0 siblings, 0 replies; only message in thread
From: David Seifert @ 2019-09-15 13:12 UTC (permalink / raw
To: gentoo-commits
commit: 51e4688bec125d055da2a97af526690f0d7026b4
Author: David Seifert <soap <AT> gentoo <DOT> org>
AuthorDate: Sun Sep 15 13:11:49 2019 +0000
Commit: David Seifert <soap <AT> gentoo <DOT> org>
CommitDate: Sun Sep 15 13:11:49 2019 +0000
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=51e4688b
games-emulation/mupen64plus-ui-console: Replace broken sed with patch
Package-Manager: Portage-2.3.76, Repoman-2.3.17
Signed-off-by: David Seifert <soap <AT> gentoo.org>
...mupen64plus-ui-console-2.5.9-fix-makefile.patch | 32 ++++++++++++++++++++++
.../mupen64plus-ui-console-2.5.9.ebuild | 21 ++++++--------
2 files changed, 41 insertions(+), 12 deletions(-)
diff --git a/games-emulation/mupen64plus-ui-console/files/mupen64plus-ui-console-2.5.9-fix-makefile.patch b/games-emulation/mupen64plus-ui-console/files/mupen64plus-ui-console-2.5.9-fix-makefile.patch
new file mode 100644
index 00000000000..c14491e7049
--- /dev/null
+++ b/games-emulation/mupen64plus-ui-console/files/mupen64plus-ui-console-2.5.9-fix-makefile.patch
@@ -0,0 +1,32 @@
+--- a/projects/unix/Makefile
++++ b/projects/unix/Makefile
+@@ -94,7 +94,7 @@
+ ifeq ($(ARCH_DETECTED), 64BITS)
+ CFLAGS += -pipe -arch x86_64 -mmacosx-version-min=10.6 -isysroot $(OSX_SDK_PATH)
+ else
+- CFLAGS += -pipe -mmmx -msse -fomit-frame-pointer -arch i686 -mmacosx-version-min=10.6 -isysroot $(OSX_SDK_PATH)
++ CFLAGS += -pipe -arch i686 -mmacosx-version-min=10.6 -isysroot $(OSX_SDK_PATH)
+ endif
+ endif
+ endif
+@@ -172,20 +172,6 @@
+ COMPILE.c = $(Q_CC)$(CC) $(CFLAGS) $(CPPFLAGS) $(TARGET_ARCH) -c
+ LINK.o = $(Q_LD)$(CC) $(CFLAGS) $(LDFLAGS) $(TARGET_ARCH)
+
+-ifeq ($(PIE), 1)
+- CFLAGS += -fPIE
+- LDFLAGS += -pie
+-else
+- CFLAGS += -fno-PIE
+- ifeq ($(CC),$(CROSS_COMPILE)gcc)
+- # check if PIE is the default for the compiler
+- PIE_DEFAULT = $(shell $(CC) -v 2>&1 | grep enable-default-pie)
+- ifneq ($(PIE_DEFAULT),)
+- LDFLAGS += -no-pie
+- endif
+- endif
+-endif
+-
+ # set installation options
+ ifeq ($(PREFIX),)
+ PREFIX := /usr/local
diff --git a/games-emulation/mupen64plus-ui-console/mupen64plus-ui-console-2.5.9.ebuild b/games-emulation/mupen64plus-ui-console/mupen64plus-ui-console-2.5.9.ebuild
index 1741ecc220c..ec20f855224 100644
--- a/games-emulation/mupen64plus-ui-console/mupen64plus-ui-console-2.5.9.ebuild
+++ b/games-emulation/mupen64plus-ui-console/mupen64plus-ui-console-2.5.9.ebuild
@@ -15,23 +15,20 @@ SLOT="0"
KEYWORDS="~amd64 ~x86"
IUSE=""
-RDEPEND=">=games-emulation/mupen64plus-core-${PV}:0=
+RDEPEND="
+ >=games-emulation/mupen64plus-core-${PV}:0=
media-libs/libsdl2:0=
!<games-emulation/mupen64plus-2.0"
-DEPEND="${RDEPEND}
- virtual/pkgconfig"
+DEPEND="${RDEPEND}"
+BDEPEND="virtual/pkgconfig"
S=${WORKDIR}/${MY_P}
-src_prepare() {
- default
-
- # avoid implicitly appending CPU flags
- sed -i -e 's:-mmmx::g' -e 's:-msse::g' projects/unix/Makefile || die
-
- # avoid appending -fPIE/-fno-PIE
- sed -i -e '/^if.*PIE/,/endif/d' projects/unix/Makefile || die
-}
+PATCHES=(
+ # 1. avoid implicitly appending CPU flags
+ # 2. avoid appending -fPIE/-fno-PIE
+ "${FILESDIR}"/${PN}-2.5.9-fix-makefile.patch
+)
src_compile() {
MAKEARGS=(
^ permalink raw reply related [flat|nested] only message in thread
only message in thread, other threads:[~2019-09-15 13:12 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2019-09-15 13:12 [gentoo-commits] repo/gentoo:master commit in: games-emulation/mupen64plus-ui-console/, David Seifert
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox