diff options
author | nia <nia@pkgsrc.org> | 2019-05-12 09:49:39 +0000 |
---|---|---|
committer | nia <nia@pkgsrc.org> | 2019-05-12 09:49:39 +0000 |
commit | bc9b2fed5883a75ba624275839c5e22952feae0c (patch) | |
tree | e284b51fd5a45cee26684c5095df8706ef460505 /emulators | |
parent | bded84e47fb05cf9a7bdae95401ef3738c45e8e1 (diff) | |
download | pkgsrc-bc9b2fed5883a75ba624275839c5e22952feae0c.tar.gz |
libretro-desmume: Fix build with older libpcap, hopefully properly this time.
Diffstat (limited to 'emulators')
-rw-r--r-- | emulators/libretro-desmume/Makefile | 7 | ||||
-rw-r--r-- | emulators/libretro-desmume/distinfo | 3 | ||||
-rw-r--r-- | emulators/libretro-desmume/patches/patch-desmume_src_wifi.cpp | 15 |
3 files changed, 19 insertions, 6 deletions
diff --git a/emulators/libretro-desmume/Makefile b/emulators/libretro-desmume/Makefile index 122989ae20d..756e9667ee7 100644 --- a/emulators/libretro-desmume/Makefile +++ b/emulators/libretro-desmume/Makefile @@ -1,6 +1,7 @@ -# $NetBSD: Makefile,v 1.8 2019/05/09 14:39:09 nia Exp $ +# $NetBSD: Makefile,v 1.9 2019/05/12 09:49:39 nia Exp $ DISTNAME= libretro-desmume-20190426 +PKGREVISION= 1 CATEGORIES= emulators MASTER_SITES= ${MASTER_SITE_GITHUB:=libretro/} GITHUB_PROJECT= desmume @@ -21,10 +22,6 @@ USE_LANGUAGES= c c++ CXXFLAGS+= -D__STDC_FORMAT_MACROS -# fix build with libpcap-1.8.1 -# see issues/58 -CXXFLAGS+= -DHAVE_REMOTE - .if !empty(MACHINE_ARCH:M*arm*) CXXFLAGS+= -marm CXXFLAGS+= -DUSE_POSIX_MEMALIGN -D__RETRO_ARM__ diff --git a/emulators/libretro-desmume/distinfo b/emulators/libretro-desmume/distinfo index e0ae3e62fe4..b44bc15aa95 100644 --- a/emulators/libretro-desmume/distinfo +++ b/emulators/libretro-desmume/distinfo @@ -1,7 +1,8 @@ -$NetBSD: distinfo,v 1.3 2019/05/09 14:39:09 nia Exp $ +$NetBSD: distinfo,v 1.4 2019/05/12 09:49:39 nia Exp $ SHA1 (libretro-desmume-20190426-3069551c2e1de633c333739cca8bb7108ca3d3e9.tar.gz) = f2003af3cc07234de3e24650f25ded9736059c23 RMD160 (libretro-desmume-20190426-3069551c2e1de633c333739cca8bb7108ca3d3e9.tar.gz) = ab9560820d9b90f5fed4bf5a65c12079b24f0f61 SHA512 (libretro-desmume-20190426-3069551c2e1de633c333739cca8bb7108ca3d3e9.tar.gz) = 985e723d6d4f0af2755f6439db6a61b9269e440f5490522913d2bef9170cb1294cf912a1fa16584570807a27cf221992b2b1c29c75f3c654e27d2b91d499666a Size (libretro-desmume-20190426-3069551c2e1de633c333739cca8bb7108ca3d3e9.tar.gz) = 11403327 bytes SHA1 (patch-desmume_src_frontend_libretro_Makefile.libretro) = 8d43c8c404e0a828d79ce7d16265e95ec70c4525 +SHA1 (patch-desmume_src_wifi.cpp) = ea853cf0ec45130779faf4477bc97272c6ea4674 diff --git a/emulators/libretro-desmume/patches/patch-desmume_src_wifi.cpp b/emulators/libretro-desmume/patches/patch-desmume_src_wifi.cpp new file mode 100644 index 00000000000..e79d7256452 --- /dev/null +++ b/emulators/libretro-desmume/patches/patch-desmume_src_wifi.cpp @@ -0,0 +1,15 @@ +$NetBSD: patch-desmume_src_wifi.cpp,v 1.1 2019/05/12 09:49:39 nia Exp $ + +https://github.com/libretro/desmume/issues/58 + +--- desmume/src/wifi.cpp.orig 2019-04-26 20:09:47.000000000 +0000 ++++ desmume/src/wifi.cpp +@@ -59,7 +59,7 @@ + + // Some platforms need HAVE_REMOTE to work with libpcap, but + // Apple platforms are not among them. +-#ifndef __APPLE__ ++#if !defined( __APPLE__) && !defined(__LIBRETRO__) + #define HAVE_REMOTE + #endif + |