Skip to content

Commit

Permalink
libretro-bluemsx: don't use bundled zlib
Browse files Browse the repository at this point in the history
  • Loading branch information
alarixnia committed Jun 2, 2020
1 parent 115c4cc commit 4e586f2
Show file tree
Hide file tree
Showing 3 changed files with 47 additions and 2 deletions.
7 changes: 6 additions & 1 deletion emulators/libretro-bluemsx/Makefile
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
# $NetBSD: Makefile,v 1.6 2020/05/31 11:39:55 nia Exp $
# $NetBSD: Makefile,v 1.7 2020/06/02 14:08:58 nia Exp $

DISTNAME= libretro-bluemsx-20200507
PKGREVISION= 1
CATEGORIES= emulators
MASTER_SITES= ${MASTER_SITE_GITHUB:=libretro/}
GITHUB_PROJECT= blueMSX-libretro
Expand All @@ -13,8 +14,11 @@ LICENSE= gnu-gpl-v2

MAKE_FILE= Makefile.libretro
USE_LANGUAGES= c c++03

LIBRETRO_CORE= bluemsx

LDFLAGS+= -lz

.include "../../mk/bsd.prefs.mk"

# For strcasestr
Expand All @@ -31,4 +35,5 @@ BUILDLINK_TRANSFORM.SunOS+= rm:-Wl,-version-script=link.T
BUILDLINK_TRANSFORM.SunOS+= rm:-Wl,-no-undefined

.include "../../emulators/retroarch/core.mk"
.include "../../devel/zlib/buildlink3.mk"
.include "../../mk/bsd.pkg.mk"
3 changes: 2 additions & 1 deletion emulators/libretro-bluemsx/distinfo
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
$NetBSD: distinfo,v 1.3 2020/05/31 11:39:55 nia Exp $
$NetBSD: distinfo,v 1.4 2020/06/02 14:08:58 nia Exp $

SHA1 (libretro-bluemsx-20200507-1d441d908e73cf0fa7f52c42686f6c9e8cd254ed.tar.gz) = 806e420743d03766449e1cfcd30c7493117919c8
RMD160 (libretro-bluemsx-20200507-1d441d908e73cf0fa7f52c42686f6c9e8cd254ed.tar.gz) = c97f9d5df76fe37eeea20914c051293cb73b10f1
SHA512 (libretro-bluemsx-20200507-1d441d908e73cf0fa7f52c42686f6c9e8cd254ed.tar.gz) = 30042d707ff4f5e2d54f413f81b7ca75b5e7595c1694b611ab67435c160a18db65e9f906872d310c70254a7dba6180845ae9fe47d7e86c010375d79d6eb59397
Size (libretro-bluemsx-20200507-1d441d908e73cf0fa7f52c42686f6c9e8cd254ed.tar.gz) = 6604169 bytes
SHA1 (patch-Makefile.common) = 2601dbb7b1eed787df7cadc9d93cf5c51f013bf6
39 changes: 39 additions & 0 deletions emulators/libretro-bluemsx/patches/patch-Makefile.common
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
$NetBSD: patch-Makefile.common,v 1.1 2020/06/02 14:08:58 nia Exp $

Don't use bundled zlib.

--- Makefile.common.orig 2020-05-07 17:41:19.000000000 +0000
+++ Makefile.common
@@ -24,8 +24,7 @@ INCFLAGS := -I$(CORE_DIR) \
-I$(CORE_DIR)/Src/VideoRender \
-I$(CORE_DIR)/Src/Z80 \
-I$(CORE_DIR)/Src/Input \
- -I$(CORE_DIR)/Src/Libretro \
- -I$(DEPS_DIR)/zlib
+ -I$(CORE_DIR)/Src/Libretro

ifneq (,$(findstring msvc2003,$(platform)))
INCFLAGS += -I$(LIBRETRO_COMM_DIR)/include/compat/msvc
@@ -332,22 +331,6 @@ ifneq ($(STATIC_LINKING), 1)
SOURCES_C += $(LIBRETRO_COMM_DIR)/file/retro_dirent.c \
$(LIBRETRO_COMM_DIR)/compat/compat_snprintf.c \
$(LIBRETRO_COMM_DIR)/compat/compat_strcasestr.c
-
-#include zlib
-SOURCES_C += $(DEPS_DIR)/zlib/adler32.c \
- $(DEPS_DIR)/zlib/compress.c \
- $(DEPS_DIR)/zlib/crc32.c \
- $(DEPS_DIR)/zlib/deflate.c \
- $(DEPS_DIR)/zlib/gzclose.c \
- $(DEPS_DIR)/zlib/gzlib.c \
- $(DEPS_DIR)/zlib/gzread.c \
- $(DEPS_DIR)/zlib/gzwrite.c \
- $(DEPS_DIR)/zlib/inffast.c \
- $(DEPS_DIR)/zlib/inflate.c \
- $(DEPS_DIR)/zlib/inftrees.c \
- $(DEPS_DIR)/zlib/trees.c \
- $(DEPS_DIR)/zlib/uncompr.c \
- $(DEPS_DIR)/zlib/zutil.c
endif

ifeq ($(HAVE_COMPAT), 1)

0 comments on commit 4e586f2

Please sign in to comment.