pkgsrc-WIP-changes archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
Add big endian support to libretro ports where missing
Module Name: pkgsrc-wip
Committed By: Nia Alarie <nia.alarie%gmail.com@localhost>
Pushed By: nee
Date: Tue Jun 6 11:42:01 2017 +0100
Changeset: 569aa114f7d961bfcf223b63c6199356ab4e54df
Modified Files:
libretro-4do/Makefile
libretro-fbalpha/Makefile
libretro-fbalpha2012-cps1/Makefile
libretro-fbalpha2012-cps2/Makefile
libretro-fbalpha2012-neogeo/Makefile
libretro-fbalpha2012/Makefile
libretro-fceumm/Makefile
libretro-mame2003/Makefile
libretro-mednafen-ngp/Makefile
libretro-mednafen-pce-fast/Makefile
libretro-mednafen-psx/Makefile
libretro-mednafen-supergrafx/Makefile
libretro-mednafen-vb/Makefile
libretro-mednafen-wswan/Makefile
libretro-prboom/Makefile
libretro-prosystem/Makefile
libretro-snes9x2010/Makefile
Log Message:
Add big endian support to libretro ports where missing
To see a diff of this commit:
https://wip.pkgsrc.org/cgi-bin/gitweb.cgi?p=pkgsrc-wip.git;a=commitdiff;h=569aa114f7d961bfcf223b63c6199356ab4e54df
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
diffstat:
libretro-4do/Makefile | 7 +++++++
libretro-fbalpha/Makefile | 6 ++++++
libretro-fbalpha2012-cps1/Makefile | 7 +++++++
libretro-fbalpha2012-cps2/Makefile | 7 +++++++
libretro-fbalpha2012-neogeo/Makefile | 7 +++++++
libretro-fbalpha2012/Makefile | 7 +++++++
libretro-fceumm/Makefile | 4 ++++
libretro-mame2003/Makefile | 9 +++++++--
libretro-mednafen-ngp/Makefile | 7 +++++++
libretro-mednafen-pce-fast/Makefile | 11 ++++-------
libretro-mednafen-psx/Makefile | 7 +++++++
libretro-mednafen-supergrafx/Makefile | 8 ++++++++
libretro-mednafen-vb/Makefile | 7 +++++++
libretro-mednafen-wswan/Makefile | 7 +++++++
libretro-prboom/Makefile | 7 +++++++
libretro-prosystem/Makefile | 7 +++++++
libretro-snes9x2010/Makefile | 7 +++++++
17 files changed, 113 insertions(+), 9 deletions(-)
diffs:
diff --git a/libretro-4do/Makefile b/libretro-4do/Makefile
index 42f5f17cae..94fa095460 100644
--- a/libretro-4do/Makefile
+++ b/libretro-4do/Makefile
@@ -3,6 +3,7 @@
DISTNAME= libretro-4do-20170423
CATEGORIES= emulators
MASTER_SITES= ${MASTER_SITE_GITHUB:=libretro/}
+
HOMEPAGE= https://wiki.libretro.com/index.php?title=4DO
COMMENT= Libretro core for 3DO emulation
@@ -11,6 +12,12 @@ GITHUB_TAG= 1c3ee3cd4a327ad87fb7fcfd93fddc851119cb6b
USE_TOOLS= gmake
+.include "../../mk/endian.mk"
+
+.if ${MACHINE_ENDIAN} == "big"
+CFLAGS+= -DMSB_FIRST
+.endif
+
INSTALLATION_DIRS+= ${PREFIX}/lib/libretro
do-install:
diff --git a/libretro-fbalpha/Makefile b/libretro-fbalpha/Makefile
index 14b5b7bc5a..e65477d808 100644
--- a/libretro-fbalpha/Makefile
+++ b/libretro-fbalpha/Makefile
@@ -16,6 +16,12 @@ MAKE_FILE= makefile.libretro
USE_LANGUAGES= c c++
+.include "../../mk/endian.mk"
+
+.if ${MACHINE_ENDIAN} == "big"
+BUILD_MAKE_FLAGS+= ENDIANNESS_DEFINES=-DWORDS_BIGENDIAN
+.endif
+
INSTALLATION_DIRS+= ${PREFIX}/lib/libretro
do-install:
diff --git a/libretro-fbalpha2012-cps1/Makefile b/libretro-fbalpha2012-cps1/Makefile
index 2ab330000a..6328a85e87 100644
--- a/libretro-fbalpha2012-cps1/Makefile
+++ b/libretro-fbalpha2012-cps1/Makefile
@@ -3,6 +3,7 @@
DISTNAME= libretro-fbalpha2012-cps1-20170321
CATEGORIES= emulators
MASTER_SITES= ${MASTER_SITE_GITHUB:=libretro/}
+
COMMENT= Libretro core based on the FB Alpha CPS-1 emulator
LICENSE= no-commercial-use
@@ -13,6 +14,12 @@ USE_TOOLS= gmake
USE_LANGUAGES= c c++
+.include "../../mk/endian.mk"
+
+.if ${MACHINE_ENDIAN} == "big"
+CFLAGS+= -DMSB_FIRST
+.endif
+
INSTALLATION_DIRS+= ${PREFIX}/lib/libretro
do-install:
diff --git a/libretro-fbalpha2012-cps2/Makefile b/libretro-fbalpha2012-cps2/Makefile
index 07113c7270..258a1e2f0c 100644
--- a/libretro-fbalpha2012-cps2/Makefile
+++ b/libretro-fbalpha2012-cps2/Makefile
@@ -3,6 +3,7 @@
DISTNAME= libretro-fbalpha2012-cps2-20170321
CATEGORIES= emulators
MASTER_SITES= ${MASTER_SITE_GITHUB:=libretro/}
+
COMMENT= Libretro core based on the FB Alpha CPS-2 emulator
LICENSE= no-commercial-use
@@ -13,6 +14,12 @@ USE_TOOLS= gmake
USE_LANGUAGES= c c++
+.include "../../mk/endian.mk"
+
+.if ${MACHINE_ENDIAN} == "big"
+CFLAGS+= -DMSB_FIRST
+.endif
+
INSTALLATION_DIRS+= ${PREFIX}/lib/libretro
do-install:
diff --git a/libretro-fbalpha2012-neogeo/Makefile b/libretro-fbalpha2012-neogeo/Makefile
index 6edd183094..4221facb93 100644
--- a/libretro-fbalpha2012-neogeo/Makefile
+++ b/libretro-fbalpha2012-neogeo/Makefile
@@ -3,6 +3,7 @@
DISTNAME= libretro-fbalpha2012-neogeo-20170322
CATEGORIES= emulators
MASTER_SITES= ${MASTER_SITE_GITHUB:=libretro/}
+
COMMENT= Libretro core based on the FB Alpha Neo Geo emulator
LICENSE= no-commercial-use
@@ -13,6 +14,12 @@ USE_TOOLS= gmake
USE_LANGUAGES= c c++
+.include "../../mk/endian.mk"
+
+.if ${MACHINE_ENDIAN} == "big"
+CFLAGS+= -DMSB_FIRST
+.endif
+
INSTALLATION_DIRS+= ${PREFIX}/lib/libretro
do-install:
diff --git a/libretro-fbalpha2012/Makefile b/libretro-fbalpha2012/Makefile
index be244ccd2f..8fb737e7d8 100644
--- a/libretro-fbalpha2012/Makefile
+++ b/libretro-fbalpha2012/Makefile
@@ -3,6 +3,7 @@
DISTNAME= libretro-fbalpha2012-20170322
CATEGORIES= emulators
MASTER_SITES= ${MASTER_SITE_GITHUB:=libretro/}
+
COMMENT= Libretro core based on the FB Alpha arcade emulator
LICENSE= no-commercial-use
@@ -17,6 +18,12 @@ WRKSRC= ${WRKDIR}/${GITHUB_PROJECT}-${GITHUB_TAG}/svn-current/trunk
MAKE_FILE= makefile.libretro
+.include "../../mk/endian.mk"
+
+.if ${MACHINE_ENDIAN} == "big"
+CFLAGS+= -DMSB_FIRST
+.endif
+
INSTALLATION_DIRS+= ${PREFIX}/lib/libretro
do-install:
diff --git a/libretro-fceumm/Makefile b/libretro-fceumm/Makefile
index 333f05dbf4..8742c452c1 100644
--- a/libretro-fceumm/Makefile
+++ b/libretro-fceumm/Makefile
@@ -17,6 +17,10 @@ USE_TOOLS+= gmake
CFLAGS+= -DHAVE_ASPRINTF
+.if ${MACHINE_ENDIAN} == "big"
+CFLAGS+= -DMSB_FIRST
+.endif
+
INSTALLATION_DIRS+= ${PREFIX}/lib/libretro
do-install:
diff --git a/libretro-mame2003/Makefile b/libretro-mame2003/Makefile
index 4a84a8d2b4..68c68d403a 100644
--- a/libretro-mame2003/Makefile
+++ b/libretro-mame2003/Makefile
@@ -3,6 +3,7 @@
DISTNAME= libretro-mame2003-20170306
CATEGORIES= emulators
MASTER_SITES= ${MASTER_SITE_GITHUB:=libretro/}
+
HOMEPAGE= https://wiki.libretro.com/index.php?title=MAME_2003
COMMENT= Libretro core based on the Multiple Arcade Machine Emulator (v0.78)
LICENSE= no-commercial-use
@@ -14,9 +15,13 @@ EXTRACT_SUFX= .zip
USE_TOOLS= gmake
-INSTALLATION_DIRS+= ${PREFIX}/lib/libretro
+.include "../../mk/endian.mk"
-#NOT_FOR_PLATFORM+= ${LP64PLATFORMS}
+.if ${MACHINE_ENDIAN} == "big"
+BUILD_MAKE_FLAGS+= BIGENDIAN=1
+.endif
+
+INSTALLATION_DIRS+= ${PREFIX}/lib/libretro
do-install:
${INSTALL_LIB} ${WRKSRC}/mame2003_libretro.so \
diff --git a/libretro-mednafen-ngp/Makefile b/libretro-mednafen-ngp/Makefile
index eeabacd27d..0807a5d8d2 100644
--- a/libretro-mednafen-ngp/Makefile
+++ b/libretro-mednafen-ngp/Makefile
@@ -3,6 +3,7 @@
DISTNAME= libretro-mednafen-ngp-20170321
CATEGORIES= emulators
MASTER_SITES= ${MASTER_SITE_GITHUB:=libretro/}
+
HOMEPAGE= https://wiki.libretro.com/index.php?title=Beetle/Mednafen_NGP
COMMENT= Libretro core based on the Mednafen Neo Geo Pocket emulator
LICENSE= gnu-gpl-v2
@@ -13,6 +14,12 @@ GITHUB_TAG= af9ff403174f297a18027f3f77910fad2c26d135
USE_TOOLS= gmake
USE_LANGUAGES= c c++
+.include "../../mk/endian.mk"
+
+.if ${MACHINE_ENDIAN} == "big"
+CFLAGS+= -DMSB_FIRST
+.endif
+
INSTALLATION_DIRS+= ${PREFIX}/lib/libretro
do-install:
diff --git a/libretro-mednafen-pce-fast/Makefile b/libretro-mednafen-pce-fast/Makefile
index 428e6df44c..e2338089f2 100644
--- a/libretro-mednafen-pce-fast/Makefile
+++ b/libretro-mednafen-pce-fast/Makefile
@@ -19,16 +19,13 @@ PKGCONFIG_OVERRIDE+= mednafen/tremor/vorbisidec.pc.in
INSTALLATION_DIRS+= ${PREFIX}/lib/libretro
-.include "../../mk/bsd.prefs.mk"
+.include "../../mk/endian.mk"
-.if !empty(MACHINE_ARCH:M*arm*hf)
-MEDNAFEN_PLATFORM= ${MACHINE_ARCH}-hardfloat
-.else
-MEDNAFEN_PLATFORM= unix
+.if ${MACHINE_ENDIAN} == "big"
+CFLAGS+= -DMSB_FIRST
+CFLAGS+= -DBYTE_ORDER=BIG_ENDIAN
.endif
-MAKE_ENV+= platform="${MEDNAFEN_PLATFORM}"
-
do-install:
${INSTALL_LIB} ${WRKSRC}/mednafen_pce_fast_libretro.so \
${DESTDIR}${PREFIX}/lib/libretro/mednafen_pce_fast_libretro.so
diff --git a/libretro-mednafen-psx/Makefile b/libretro-mednafen-psx/Makefile
index 91dc170d30..b15f322220 100644
--- a/libretro-mednafen-psx/Makefile
+++ b/libretro-mednafen-psx/Makefile
@@ -3,6 +3,7 @@
DISTNAME= libretro-mednafen-psx-20170507
CATEGORIES= emulators
MASTER_SITES= ${MASTER_SITE_GITHUB:=libretro/}
+
HOMEPAGE= https://wiki.libretro.com/index.php?title=Beetle/Mednafen_PSX
COMMENT= Libretro core based on the Mednafen PlayStation emulator
LICENSE= gnu-gpl-v2
@@ -14,6 +15,12 @@ USE_TOOLS= gmake
USE_LANGUAGES= c c++
+.include "../../mk/endian.mk"
+
+.if ${MACHINE_ENDIAN} == "big"
+CFLAGS+= -DMSB_FIRST
+.endif
+
INSTALLATION_DIRS+= ${PREFIX}/lib/libretro
do-install:
diff --git a/libretro-mednafen-supergrafx/Makefile b/libretro-mednafen-supergrafx/Makefile
index 901f3496e3..41b748fb65 100644
--- a/libretro-mednafen-supergrafx/Makefile
+++ b/libretro-mednafen-supergrafx/Makefile
@@ -3,6 +3,7 @@
DISTNAME= libretro-mednafen-supergrafx-20170321
CATEGORIES= emulators
MASTER_SITES= ${MASTER_SITE_GITHUB:=libretro/}
+
HOMEPAGE= https://wiki.libretro.com/index.php?title=Beetle/Mednafen_SGX
COMMENT= Libretro core based on the Mednafen SuperGrafx emulator
LICENSE= gnu-gpl-v2
@@ -14,6 +15,13 @@ USE_TOOLS= gmake
USE_LANGUAGES= c c++
+.include "../../mk/endian.mk"
+
+.if ${MACHINE_ENDIAN} == "big"
+CFLAGS+= -DMSB_FIRST
+CFLAGS+= -DBYTE_ORDER=BIG_ENDIAN
+.endif
+
INSTALLATION_DIRS+= ${PREFIX}/lib/libretro
do-install:
diff --git a/libretro-mednafen-vb/Makefile b/libretro-mednafen-vb/Makefile
index e6d10a1c26..b9362f3f28 100644
--- a/libretro-mednafen-vb/Makefile
+++ b/libretro-mednafen-vb/Makefile
@@ -3,6 +3,7 @@
DISTNAME= libretro-mednafen-vb-20170501
CATEGORIES= emulators
MASTER_SITES= ${MASTER_SITE_GITHUB:=libretro/}
+
HOMEPAGE= https://wiki.libretro.com/index.php?title=Beetle/Mednafen_VB
COMMENT= Libretro core based on the Mednafen VirtualBoy emulator
LICENSE= gnu-gpl-v2
@@ -14,6 +15,12 @@ USE_TOOLS= gmake
USE_LANGUAGES= c c++
+.include "../../mk/endian.mk"
+
+.if ${MACHINE_ENDIAN} == "big"
+CFLAGS+= -DMSB_FIRST
+.endif
+
INSTALLATION_DIRS+= ${PREFIX}/lib/libretro
do-install:
diff --git a/libretro-mednafen-wswan/Makefile b/libretro-mednafen-wswan/Makefile
index 5619a7e8a6..faf725832a 100644
--- a/libretro-mednafen-wswan/Makefile
+++ b/libretro-mednafen-wswan/Makefile
@@ -3,6 +3,7 @@
DISTNAME= libretro-mednafen-wswan-20170321
CATEGORIES= emulators
MASTER_SITES= ${MASTER_SITE_GITHUB:=libretro/}
+
HOMEPAGE= https://wiki.libretro.com/index.php?title=Beetle/Mednafen_WSWAN
COMMENT= Libretro core based on the Mednafen Wonderswan emulator
LICENSE= gnu-gpl-v2
@@ -13,6 +14,12 @@ GITHUB_TAG= a5e6485791df67de92fa070b6612b260a0d05ec2
USE_TOOLS= gmake
USE_LANGUAGES= c c++
+.include "../../mk/endian.mk"
+
+.if ${MACHINE_ENDIAN} == "big"
+CFLAGS+= -DMSB_FIRST
+.endif
+
INSTALLATION_DIRS+= ${PREFIX}/lib/libretro
do-install:
diff --git a/libretro-prboom/Makefile b/libretro-prboom/Makefile
index 18c83efaaf..bf38aa657d 100644
--- a/libretro-prboom/Makefile
+++ b/libretro-prboom/Makefile
@@ -3,6 +3,7 @@
DISTNAME= libretro-prboom-20170410
CATEGORIES= emulators
MASTER_SITES= ${MASTER_SITE_GITHUB:=libretro/}
+
HOMEPAGE= https://wiki.libretro.com/index.php?title=PrBoom
COMMENT= Libretro core for Doom
LICENSE= gnu-gpl-v2
@@ -11,6 +12,12 @@ GITHUB_TAG= e09831c627a84c34d72c3cc892566e1472abb598
USE_TOOLS= gmake
+.include "../../mk/endian.mk"
+
+.if ${MACHINE_ENDIAN} == "big"
+CFLAGS+= -DMSB_FIRST
+.endif
+
INSTALLATION_DIRS+= ${PREFIX}/lib/libretro
do-install:
diff --git a/libretro-prosystem/Makefile b/libretro-prosystem/Makefile
index c3904f3040..66883d19c5 100644
--- a/libretro-prosystem/Makefile
+++ b/libretro-prosystem/Makefile
@@ -3,6 +3,7 @@
DISTNAME= libretro-prosystem-20170124
CATEGORIES= emulators
MASTER_SITES= ${MASTER_SITE_GITHUB:=libretro/}
+
HOMEPAGE= https://wiki.libretro.com/index.php?title=ProSystem
COMMENT= Libretro core based on the ProSystem Atari 7800 emulator
LICENSE= gnu-gpl-v2
@@ -12,6 +13,12 @@ GITHUB_TAG= 1cf54722a37e30a82a16db2a4fbb5edcbe005c70
USE_TOOLS= gmake
+.include "../../mk/endian.mk"
+
+.if ${MACHINE_ENDIAN} == "big"
+CFLAGS+= -DMSB_FIRST
+.endif
+
INSTALLATION_DIRS+= ${PREFIX}/lib/libretro
do-install:
diff --git a/libretro-snes9x2010/Makefile b/libretro-snes9x2010/Makefile
index 3ffd692b75..11ae50a05a 100644
--- a/libretro-snes9x2010/Makefile
+++ b/libretro-snes9x2010/Makefile
@@ -3,6 +3,7 @@
DISTNAME= libretro-snes9x2010-20170218
CATEGORIES= emulators
MASTER_SITES= ${MASTER_SITE_GITHUB:=libretro/}
+
HOMEPAGE= https://wiki.libretro.com/index.php?title=Snes9x_2010
COMMENT= Libretro core based on the snes9x Super Nintendo emulator
LICENSE= no-commercial-use
@@ -12,6 +13,12 @@ GITHUB_TAG= b2a69de0df1eb39ed362806f9c9633f4544272af
USE_TOOLS= gmake
+.include "../../mk/endian.mk"
+
+.if ${MACHINE_ENDIAN} == "big"
+CFLAGS+= -DMSB_FIRST
+.endif
+
INSTALLATION_DIRS+= ${PREFIX}/lib/libretro
do-install:
Home |
Main Index |
Thread Index |
Old Index