[arch-commits] Commit in libretro-blastem/repos/community-x86_64 (3 files)
Maxime Gauduin
alucryd at gemini.archlinux.org
Sun Nov 14 08:41:41 UTC 2021
Date: Sunday, November 14, 2021 @ 08:41:40
Author: alucryd
Revision: 1047339
archrelease: copy trunk to community-x86_64
Added:
libretro-blastem/repos/community-x86_64/PKGBUILD
(from rev 1047338, libretro-blastem/trunk/PKGBUILD)
libretro-blastem/repos/community-x86_64/libretro-blastem-flags.patch
(from rev 1047338, libretro-blastem/trunk/libretro-blastem-flags.patch)
Deleted:
libretro-blastem/repos/community-x86_64/PKGBUILD
------------------------------+
PKGBUILD | 72 +++++++++++++++++++++++------------------
libretro-blastem-flags.patch | 59 +++++++++++++++++++++++++++++++++
2 files changed, 101 insertions(+), 30 deletions(-)
Deleted: PKGBUILD
===================================================================
--- PKGBUILD 2021-11-14 08:41:35 UTC (rev 1047338)
+++ PKGBUILD 2021-11-14 08:41:40 UTC (rev 1047339)
@@ -1,30 +0,0 @@
-# Maintainer: Maxime Gauduin <alucryd at archlinux.org>
-
-pkgname=libretro-blastem
-pkgver=2042
-pkgrel=1
-pkgdesc='Sega Mega Drive core'
-arch=(x86_64)
-url=https://github.com/libretro/blastem
-license=(GPL3)
-groups=(libretro)
-depends=(libretro-core-info)
-makedepends=(git)
-_commit=e70b05bf5b5954140cba227fc996ab24c064d494
-source=(libretro-blastem::git+https://github.com/libretro/blastem.git#commit=${_commit})
-b2sums=(SKIP)
-
-pkgver() {
- cd libretro-blastem
- git rev-list --count HEAD
-}
-
-build() {
- make -C libretro-blastem -f Makefile.libretro
-}
-
-package() {
- install -Dm 644 libretro-blastem/blastem_libretro.so -t "${pkgdir}"/usr/lib/libretro/
-}
-
-# vim: ts=2 sw=2 et:
Copied: libretro-blastem/repos/community-x86_64/PKGBUILD (from rev 1047338, libretro-blastem/trunk/PKGBUILD)
===================================================================
--- PKGBUILD (rev 0)
+++ PKGBUILD 2021-11-14 08:41:40 UTC (rev 1047339)
@@ -0,0 +1,42 @@
+# Maintainer: Maxime Gauduin <alucryd at archlinux.org>
+
+pkgname=libretro-blastem
+pkgver=2052
+pkgrel=1
+pkgdesc='Sega Mega Drive core'
+arch=(x86_64)
+url=https://github.com/libretro/blastem
+license=(GPL3)
+groups=(libretro)
+depends=(
+ glibc
+ libretro-core-info
+)
+makedepends=(git)
+_commit=0786858437ed71996f43b7af0fbe627eb88152fc
+source=(
+ libretro-blastem::git+https://github.com/libretro/blastem.git#commit=${_commit}
+ libretro-blastem-flags.patch
+)
+b2sums=('SKIP'
+ '35431a1ad2960c8fdfb266f049291557dc2c4956495f06a87daac7e6e6063d8606eb4abf64cc4e49467178c2e26fc9b5ba29fa43a3351f2f6de8e54c50846740')
+
+prepare() {
+ cd libretro-blastem
+ patch -Np1 -i ../libretro-blastem-flags.patch
+}
+
+pkgver() {
+ cd libretro-blastem
+ git rev-list --count HEAD
+}
+
+build() {
+ make -C libretro-blastem -f Makefile.libretro
+}
+
+package() {
+ install -Dm 644 libretro-blastem/blastem_libretro.so -t "${pkgdir}"/usr/lib/libretro/
+}
+
+# vim: ts=2 sw=2 et:
Copied: libretro-blastem/repos/community-x86_64/libretro-blastem-flags.patch (from rev 1047338, libretro-blastem/trunk/libretro-blastem-flags.patch)
===================================================================
--- libretro-blastem-flags.patch (rev 0)
+++ libretro-blastem-flags.patch 2021-11-14 08:41:40 UTC (rev 1047339)
@@ -0,0 +1,59 @@
+diff '--color=auto' -rupN libretro-blastem.orig/Makefile libretro-blastem/Makefile
+--- libretro-blastem.orig/Makefile 2021-11-14 09:30:18.467211593 +0100
++++ libretro-blastem/Makefile 2021-11-14 09:37:57.666454954 +0100
+@@ -6,6 +6,9 @@ OS:=$(shell uname -s)
+ endif
+ FIXUP:=true
+
++CFLAGS:=$(CFLAGS)
++LDFLAGS:=$(LDFLAGS)
++
+ BUNDLED_LIBZ:=zlib/adler32.o zlib/compress.o zlib/crc32.o zlib/deflate.o zlib/gzclose.o zlib/gzlib.o zlib/gzread.o\
+ zlib/gzwrite.o zlib/infback.o zlib/inffast.o zlib/inflate.o zlib/inftrees.o zlib/trees.o zlib/uncompr.o zlib/zutil.o
+
+@@ -31,8 +34,8 @@ SDL2_PREFIX:="sdl/x86_64-w64-mingw32"
+ GLUDIR:=x64
+ endif
+ GLEW32S_LIB:=$(GLEW_PREFIX)/lib/Release/$(GLUDIR)/glew32s.lib
+-CFLAGS:=-std=gnu99 -Wreturn-type -Werror=return-type -Werror=implicit-function-declaration -Wpointer-arith -Werror=pointer-arith
+-LDFLAGS:=-lm -lmingw32 -lws2_32 -mwindows
++CFLAGS+= -std=gnu99 -Wreturn-type -Werror=return-type -Werror=implicit-function-declaration -Wpointer-arith -Werror=pointer-arith
++LDFLAGS+= -lm -lmingw32 -lws2_32 -mwindows
+ ifneq ($(MAKECMDGOALS),libblastem.dll)
+ CFLAGS+= -I"$(SDL2_PREFIX)/include/SDL2" -I"$(GLEW_PREFIX)/include" -DGLEW_STATIC
+ LDFLAGS+= $(GLEW32S_LIB) -L"$(SDL2_PREFIX)/lib" -lSDL2main -lSDL2 -lopengl32 -lglu32
+@@ -47,7 +50,7 @@ NET:=net.o
+ EXE:=
+
+ HAS_PROC:=$(shell if [ -d /proc ]; then /bin/echo -e -DHAS_PROC; fi)
+-CFLAGS:=-std=gnu99 -Wreturn-type -Werror=return-type -Werror=implicit-function-declaration -Wno-unused-value -Wpointer-arith -Werror=pointer-arith $(HAS_PROC) -DHAVE_UNISTD_H
++CFLAGS+= -std=gnu99 -Wreturn-type -Werror=return-type -Werror=implicit-function-declaration -Wno-unused-value -Wpointer-arith -Werror=pointer-arith $(HAS_PROC) -DHAVE_UNISTD_H
+
+ ifeq ($(OS),Darwin)
+ LIBS=sdl2 glew
+@@ -89,10 +92,10 @@ ifdef USE_GLES
+ ifndef GLES_LIB
+ GLES_LIB:=$(shell pkg-config --libs glesv2)
+ endif
+-LDFLAGS:=-lm $(GLES_LIB)
++LDFLAGS+= -lm $(GLES_LIB)
+ else
+ CFLAGS+= -DGLEW_STATIC -Iglew/include
+-LDFLAGS:=-lm glew/lib/libGLEW.a
++LDFLAGS+= -lm glew/lib/libGLEW.a
+ endif
+
+ ifeq ($(OS),Darwin)
+@@ -111,10 +114,10 @@ CFLAGS+= -I$(SDL_INCLUDE_PATH)
+
+ else
+ ifeq ($(MAKECMDGOALS),libblastem.$(SO))
+-LDFLAGS:=-lm
++LDFLAGS+= -lm
+ else
+ CFLAGS:=$(shell pkg-config --cflags-only-I $(LIBS)) $(CFLAGS)
+-LDFLAGS:=-lm $(shell pkg-config --libs $(LIBS))
++LDFLAGS:=-lm $(shell pkg-config --libs $(LIBS)) $(LDFLAGS)
+ ifdef USE_FBDEV
+ LDFLAGS+= -pthread
+ endif
More information about the arch-commits
mailing list