diff --git a/testing/libretro-neocd/APKBUILD b/testing/libretro-neocd/APKBUILD new file mode 100644 index 0000000000000000000000000000000000000000..09bdd5cd28c8a943502362409a8cec4853156849 --- /dev/null +++ b/testing/libretro-neocd/APKBUILD @@ -0,0 +1,27 @@ +# Contributor: David Demelier <markand@malikania.fr> +# Maintainer: David Demelier <markand@malikania.fr> +pkgname=libretro-neocd +pkgver=0_git20210425 +pkgrel=0 +_commit="fc85ed4f5e3d075945493a3ae103df53b63cb340" +pkgdesc="libretro core for neocd" +url="https://github.com/libretro/neocd_libretro" +arch="all" +license="LGPL-3.0-only" +makedepends="minizip-dev libogg-dev libvorbis-dev libzip-dev zlib-dev" +source="$pkgname-$_commit.tar.gz::https://github.com/libretro/neocd_libretro/archive/$_commit.tar.gz + patch-unbundle.patch + " +builddir="$srcdir/neocd_libretro-$_commit" +options="!check" # No tests + +build() { + make +} + +package() { + install -Dm644 neocd_libretro.so "$pkgdir"/usr/lib/libretro/neocd_libretro.so +} + +sha512sums="4926eaa70ee44b6cb88a5067fa72033490b913b9fe73d8c70d4a9d4d7295aaa6e2684e029612ce2f6a23f446e9b5dea8b42b7652c5645252234ea91d3de0e68e libretro-neocd-fc85ed4f5e3d075945493a3ae103df53b63cb340.tar.gz +eb5da7c40145f4b148ec7b77ff3be301dd17068d20b9a688194c311bd81fbbd548e38cd5634ea27d591498c2c4e67d6599d2b8c2f428a1d56066802f493ed1b9 patch-unbundle.patch" diff --git a/testing/libretro-neocd/patch-unbundle.patch b/testing/libretro-neocd/patch-unbundle.patch new file mode 100644 index 0000000000000000000000000000000000000000..ef43cf1ce879f4b3e9c3aaf1abef6fd85cd9961e --- /dev/null +++ b/testing/libretro-neocd/patch-unbundle.patch @@ -0,0 +1,99 @@ +--- neocd_libretro-fc85ed4f5e3d075945493a3ae103df53b63cb340/Makefile.common.orig ++++ neocd_libretro-fc85ed4f5e3d075945493a3ae103df53b63cb340/Makefile.common +@@ -1,23 +1,25 @@ + LIBRETRO_DEPS_DIR = $(CORE_DIR)/deps +-LIBOGG_DIR = $(LIBRETRO_DEPS_DIR)/libogg +-LIBVORBIS_DIR = $(LIBRETRO_DEPS_DIR)/libvorbis + LIBCHDR_DIR = $(LIBRETRO_DEPS_DIR)/libchdr +-ZLIB_DIR = $(LIBCHDR_DIR)/deps/zlib-1.2.11 +-MINIZIP_DIR = $(LIBRETRO_DEPS_DIR)/minizip + LZMA_DIR = $(LIBCHDR_DIR)/deps/lzma-19.00 + LIBRETRO_COMMON_DIR = $(LIBRETRO_DEPS_DIR)/libretro-common + ++MINIZIP_INCS := $(shell pkg-config --cflags minizip) ++MINIZIP_LIBS := $(shell pkg-config --libs minizip) ++VORBIS_INCS := $(shell pkg-config --cflags vorbisfile) ++VORBIS_LIBS := $(shell pkg-config --libs vorbisfile) ++OGG_INCS := $(shell pkg-config --cflags ogg) ++OGG_LIBS := $(shell pkg-config --libs ogg) ++LIBZIP_INCS := $(shell pkg-config --cflags libzip) ++LIBZIP_LIBS := $(shell pkg-config --libs libzip) ++ZLIB_INCS := $(shell pkg-config --cflags zlib) ++ZLIB_LIBS := $(shell pkg-config --libs zlib) ++ + INCFLAGS := \ + -I$(CORE_DIR)/src \ + -I$(LIBRETRO_COMMON_DIR)/include \ + -I$(LIBRETRO_DEPS_DIR)/ \ + -I$(LIBCHDR_DIR)/include \ +- -I$(LZMA_DIR)/include \ +- -I$(LIBOGG_DIR)/include \ +- -I$(LIBVORBIS_DIR)/include \ +- -I$(LIBVORBIS_DIR)/lib \ +- -I$(ZLIB_DIR) \ +- -I$(MINIZIP_DIR) ++ -I$(LZMA_DIR)/include + + SOURCES_CXX :=\ + $(CORE_DIR)/src/archive.cpp \ +@@ -106,48 +108,18 @@ + $(LZMA_DIR)/src/LzmaEnc.c \ + $(LZMA_DIR)/src/Sort.c + +-SOURCES_C += \ +- $(LIBOGG_DIR)/src/bitwise.c \ +- $(LIBOGG_DIR)/src/framing.c +- +-SOURCES_C += \ +- $(LIBVORBIS_DIR)/lib/analysis.c \ +- $(LIBVORBIS_DIR)/lib/bitrate.c \ +- $(LIBVORBIS_DIR)/lib/block.c \ +- $(LIBVORBIS_DIR)/lib/codebook.c \ +- $(LIBVORBIS_DIR)/lib/envelope.c \ +- $(LIBVORBIS_DIR)/lib/floor0.c \ +- $(LIBVORBIS_DIR)/lib/floor1.c \ +- $(LIBVORBIS_DIR)/lib/info.c \ +- $(LIBVORBIS_DIR)/lib/lookup.c \ +- $(LIBVORBIS_DIR)/lib/lpc.c \ +- $(LIBVORBIS_DIR)/lib/lsp.c \ +- $(LIBVORBIS_DIR)/lib/mapping0.c \ +- $(LIBVORBIS_DIR)/lib/mdct.c \ +- $(LIBVORBIS_DIR)/lib/psy.c \ +- $(LIBVORBIS_DIR)/lib/registry.c \ +- $(LIBVORBIS_DIR)/lib/res0.c \ +- $(LIBVORBIS_DIR)/lib/sharedbook.c \ +- $(LIBVORBIS_DIR)/lib/smallft.c \ +- $(LIBVORBIS_DIR)/lib/synthesis.c \ +- $(LIBVORBIS_DIR)/lib/vorbisfile.c \ +- $(LIBVORBIS_DIR)/lib/window.c +- +-SOURCES_C += \ +- $(ZLIB_DIR)/adler32.c \ +- $(ZLIB_DIR)/crc32.c \ +- $(ZLIB_DIR)/deflate.c \ +- $(ZLIB_DIR)/infback.c \ +- $(ZLIB_DIR)/inffast.c \ +- $(ZLIB_DIR)/inflate.c \ +- $(ZLIB_DIR)/inftrees.c \ +- $(ZLIB_DIR)/trees.c \ +- $(ZLIB_DIR)/zutil.c +- +-SOURCES_C += \ +- $(MINIZIP_DIR)/ioapi.c \ +- $(MINIZIP_DIR)/unzip.c +- + ifneq ($(STATIC_LINKING),1) + SOURCES_C += $(SRC_LIBRETRO_COMMON) + endif ++ ++INCFLAGS += ${MINIZIP_INCS} ++INCFLAGS += ${VORBIS_INCS} ++INCFLAGS += ${OGG_INCS} ++INCFLAGS += ${LIBZIP_INCS} ++INCFLAGS += ${ZLIB_INCS} ++ ++LIBS += ${MINIZIP_LIBS} ++LIBS += ${VORBIS_LIBS} ++LIBS += ${OGG_LIBS} ++LIBS += ${LIBZIP_LIBS} ++LIBS += ${ZLIB_LIBS}