pkgsrc-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[pkgsrc/trunk]: pkgsrc/emulators/libretro-gambatte libretro-gambatte: Fix bui...



details:   https://anonhg.NetBSD.org/pkgsrc/rev/4586833a03ee
branches:  trunk
changeset: 323929:4586833a03ee
user:      nia <nia%pkgsrc.org@localhost>
date:      Wed Oct 03 01:40:32 2018 +0000

description:
libretro-gambatte: Fix build on SunOS.

diffstat:

 emulators/libretro-gambatte/Makefile                                           |   7 ++++-
 emulators/libretro-gambatte/distinfo                                           |   3 +-
 emulators/libretro-gambatte/patches/patch-libgambatte_libretro_net__serial.cpp |  14 ++++++++++
 3 files changed, 22 insertions(+), 2 deletions(-)

diffs (53 lines):

diff -r 9388cc7e8321 -r 4586833a03ee emulators/libretro-gambatte/Makefile
--- a/emulators/libretro-gambatte/Makefile      Tue Oct 02 21:09:28 2018 +0000
+++ b/emulators/libretro-gambatte/Makefile      Wed Oct 03 01:40:32 2018 +0000
@@ -1,6 +1,7 @@
-# $NetBSD: Makefile,v 1.3 2018/08/08 20:41:06 nia Exp $
+# $NetBSD: Makefile,v 1.4 2018/10/03 01:40:32 nia Exp $
 
 DISTNAME=      libretro-gambatte-20180709
+PKGREVISION=   1
 CATEGORIES=    emulators
 MASTER_SITES=  ${MASTER_SITE_GITHUB:=libretro/}
 GITHUB_PROJECT=        gambatte-libretro
@@ -16,6 +17,10 @@
 MAKE_FILE=     Makefile.libretro
 USE_TOOLS+=    gmake
 
+CFLAGS.SunOS+= -DBSD_COMP
+
+BUILDLINK_TRANSFORM.SunOS+=    rm:-Wl,-version-script=libgambatte/libretro/link.T
+
 INSTALLATION_DIRS+=    ${PREFIX}/lib/libretro
 
 do-install:
diff -r 9388cc7e8321 -r 4586833a03ee emulators/libretro-gambatte/distinfo
--- a/emulators/libretro-gambatte/distinfo      Tue Oct 02 21:09:28 2018 +0000
+++ b/emulators/libretro-gambatte/distinfo      Wed Oct 03 01:40:32 2018 +0000
@@ -1,6 +1,7 @@
-$NetBSD: distinfo,v 1.3 2018/08/08 20:41:06 nia Exp $
+$NetBSD: distinfo,v 1.4 2018/10/03 01:40:32 nia Exp $
 
 SHA1 (libretro-gambatte-20180709-7722012ce85e56c324cb2080645347689ca379ae.tar.gz) = 1b155bafe76acae6ec207eb7da2e417513c3f8d7
 RMD160 (libretro-gambatte-20180709-7722012ce85e56c324cb2080645347689ca379ae.tar.gz) = 3eb8c9cd7064525fb32b3cca486e74f1bcb64162
 SHA512 (libretro-gambatte-20180709-7722012ce85e56c324cb2080645347689ca379ae.tar.gz) = 
4f7de8ff549c51fd69042eed7883f1f73cbdf3e06677c91be428161767b7d5af24304006029e6db8fc67e0c67bfdf6764d044dee99ddc75afcd83b52c9b654bf
 Size (libretro-gambatte-20180709-7722012ce85e56c324cb2080645347689ca379ae.tar.gz) = 180439 bytes
+SHA1 (patch-libgambatte_libretro_net__serial.cpp) = fad2ef612eb7893409dbae5aca30c8d79e9cb501
diff -r 9388cc7e8321 -r 4586833a03ee emulators/libretro-gambatte/patches/patch-libgambatte_libretro_net__serial.cpp
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/emulators/libretro-gambatte/patches/patch-libgambatte_libretro_net__serial.cpp    Wed Oct 03 01:40:32 2018 +0000
@@ -0,0 +1,14 @@
+$NetBSD: patch-libgambatte_libretro_net__serial.cpp,v 1.1 2018/10/03 01:40:32 nia Exp $
+
+Include strings.h for bzero and bcopy.
+
+--- libgambatte/libretro/net_serial.cpp.orig   2018-07-09 19:08:35.000000000 +0000
++++ libgambatte/libretro/net_serial.cpp
+@@ -4,6 +4,7 @@
+ #include <stdio.h>
+ #include <stdlib.h>
+ #include <string.h>
++#include <strings.h>
+ #include <unistd.h>
+ #include <errno.h>
+ #include <sys/types.h>



Home | Main Index | Thread Index | Old Index