Skip to content

Commit

Permalink
games/libretro-shaders-slang: udpate g20231023 → g20240719
Browse files Browse the repository at this point in the history
Changes to the port:
- take maintainership
- update COMMENT and pkg-descr to point out that the shaders originate
  from the libretro project but that they can also be used for other
  projects, e.g. librashader
- update LICENSE in accordance to
  libretro/slang-shaders#150
  (it's actual unclear which shader has which license for the most part)
- add DOCS option which handles README.md
- update files/patch-Makefile to also delete Makefile.orig, or else it
  will be listed in pkg-plist

Comparing changes:
https://github.com/libretro/slang-shaders/compare/3c28137..7d6751a

PR:	280439
  • Loading branch information
bsdcode authored and VVD committed Jul 27, 2024
1 parent f03d281 commit a49f05d
Show file tree
Hide file tree
Showing 5 changed files with 441 additions and 156 deletions.
27 changes: 22 additions & 5 deletions games/libretro-shaders-slang/Makefile
Original file line number Diff line number Diff line change
@@ -1,16 +1,33 @@
PORTNAME= libretro-shaders-slang
DISTVERSION= g20231023
DISTVERSION= g20240719
CATEGORIES= games

MAINTAINER= ports@FreeBSD.org
COMMENT= Collection of slang (Vulkan) shaders for libretro
MAINTAINER= bsdcode@disroot.org
COMMENT= Collection of slang shaders from libretro
WWW= https://github.com/libretro/slang-shaders

LICENSE= GPLv3
# https://github.com/libretro/slang-shaders/issues/150
LICENSE= GPLv1+ GPLv2+ GPLv3+ MIT PD
LICENSE_COMB= multi

USE_GITHUB= yes
GH_ACCOUNT= libretro
GH_PROJECT= slang-shaders
GH_TAGNAME= 3c281372a31e7cc72fdbea699dc09047439386ce
GH_TAGNAME= 7d6751a

PORTDOCS= README.md

OPTIONS_DEFINE= DOCS

# DOCS files are "in-tree", therefore we must handle them in pre-install
# targets instead of the more commonly used post-install targets, and
# they must be deleted from the WRKSRC directory in any case.
pre-install-DOCS-on:
${MKDIR} ${STAGEDIR}${DOCSDIR}
${INSTALL_DATA} ${WRKSRC}/README.md ${STAGEDIR}${DOCSDIR}
${RM} ${WRKSRC}/README.md

pre-install-DOCS-off:
${RM} ${WRKSRC}/README.md

.include <bsd.port.mk>
6 changes: 3 additions & 3 deletions games/libretro-shaders-slang/distinfo
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
TIMESTAMP = 1698244349
SHA256 (libretro-slang-shaders-g20231023-3c281372a31e7cc72fdbea699dc09047439386ce_GH0.tar.gz) = dae90d05d13bcab6cbc59fcd9735ff2d0fbc5593615e902f3db626d0cf9cb9eb
SIZE (libretro-slang-shaders-g20231023-3c281372a31e7cc72fdbea699dc09047439386ce_GH0.tar.gz) = 60730528
TIMESTAMP = 1721901450
SHA256 (libretro-slang-shaders-g20240719-7d6751a_GH0.tar.gz) = 1b25137b375b94172a70f24e2eeb7cd11f201983f292d130dc052ad5dfd899f6
SIZE (libretro-slang-shaders-g20240719-7d6751a_GH0.tar.gz) = 44089441
13 changes: 8 additions & 5 deletions games/libretro-shaders-slang/files/patch-Makefile
Original file line number Diff line number Diff line change
@@ -1,16 +1,19 @@
--- Makefile.orig 2018-04-06 18:44:11 UTC
--- Makefile.orig 2024-07-25 10:09:23 UTC
+++ Makefile
@@ -1,4 +1,4 @@
-PREFIX := /usr
+PREFIX ?= /usr
INSTALLDIR := $(PREFIX)/share/libretro/shaders/shaders_slang

all:
@@ -6,7 +6,7 @@ all:
@@ -6,8 +6,8 @@ install:

install:
mkdir -p $(DESTDIR)$(INSTALLDIR)
mkdir -p $(DESTDIR)$(INSTALLDIR)
- cp -ar -t $(DESTDIR)$(INSTALLDIR) *
- rm -f $(DESTDIR)$(INSTALLDIR)/Makefile \
+ cp -a * $(DESTDIR)$(INSTALLDIR)
rm -f $(DESTDIR)$(INSTALLDIR)/Makefile \
$(DESTDIR)$(INSTALLDIR)/configure
+ rm -f $(DESTDIR)$(INSTALLDIR)/Makefile* \
$(DESTDIR)$(INSTALLDIR)/configure

test-install: all
4 changes: 3 additions & 1 deletion games/libretro-shaders-slang/pkg-descr
Original file line number Diff line number Diff line change
@@ -1 +1,3 @@
Vulkan GLSL RetroArch shader system
This is a collection of the slang (Vulkan GLSL) shaders from the libretro
project. Every program or library implementing the RetroArch shader pipeline can
use these shaders. RetroArch and librashader are two examples of those projects.
Loading

0 comments on commit a49f05d

Please sign in to comment.