mirror of
https://git.freebsd.org/ports.git
synced 2025-06-02 19:36:28 -04:00
Add graphics/webp-pixbuf-loader, gdkpixbuf2 loader and thumbnailer for webp
PR: 232872 Submitted by: Greg V <greg@unrelenting.technology>
This commit is contained in:
parent
94e565128d
commit
74bb792f86
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=487254
6 changed files with 54 additions and 0 deletions
|
@ -1135,6 +1135,7 @@
|
|||
SUBDIR += wayland-protocols
|
||||
SUBDIR += waylandpp
|
||||
SUBDIR += webp
|
||||
SUBDIR += webp-pixbuf-loader
|
||||
SUBDIR += wings
|
||||
SUBDIR += wmicons
|
||||
SUBDIR += wxsvg
|
||||
|
|
29
graphics/webp-pixbuf-loader/Makefile
Normal file
29
graphics/webp-pixbuf-loader/Makefile
Normal file
|
@ -0,0 +1,29 @@
|
|||
# $FreeBSD$
|
||||
|
||||
PORTNAME= webp-pixbuf-loader
|
||||
PORTVERSION= 20160329
|
||||
CATEGORIES= graphics
|
||||
|
||||
MAINTAINER= greg@unrelenting.technology
|
||||
COMMENT= WebP image loader plugin for GdkPixbuf2
|
||||
|
||||
LICENSE= LGPL20+
|
||||
|
||||
LIB_DEPENDS= libwebp.so:graphics/webp
|
||||
|
||||
USES= gnome perl5 pkgconfig waf
|
||||
USE_GNOME= gdkpixbuf2
|
||||
USE_GITHUB= yes
|
||||
GH_ACCOUNT= aruiz
|
||||
GH_TAGNAME= 9b92950d49d7
|
||||
|
||||
PLIST_FILES= lib/gdk-pixbuf-2.0/${GTK2_VERSION}/loaders/libpixbufloader-webp.so \
|
||||
share/thumbnailers/gdk-pixbuf-webp-thumbnailer.thumbnailer
|
||||
|
||||
post-install:
|
||||
${STRIP_CMD} ${STAGEDIR}${PREFIX}/lib/gdk-pixbuf-2.0/*/loaders/*
|
||||
${MKDIR} ${STAGEDIR}${PREFIX}/share/thumbnailers
|
||||
${SED} -e 's|@PREFIX@|${LOCALBASE}|g' ${FILESDIR}/gdk-pixbuf-webp-thumbnailer.thumbnailer \
|
||||
> ${STAGEDIR}${PREFIX}/share/thumbnailers/gdk-pixbuf-webp-thumbnailer.thumbnailer
|
||||
|
||||
.include <bsd.port.mk>
|
3
graphics/webp-pixbuf-loader/distinfo
Normal file
3
graphics/webp-pixbuf-loader/distinfo
Normal file
|
@ -0,0 +1,3 @@
|
|||
TIMESTAMP = 1541025028
|
||||
SHA256 (aruiz-webp-pixbuf-loader-20160329-9b92950d49d7_GH0.tar.gz) = 98bc7726ce18363b559253c698769921500f1a583d4d8deffb937c787f3792b0
|
||||
SIZE (aruiz-webp-pixbuf-loader-20160329-9b92950d49d7_GH0.tar.gz) = 86102
|
|
@ -0,0 +1,4 @@
|
|||
[Thumbnailer Entry]
|
||||
TryExec=@PREFIX@/bin/gdk-pixbuf-thumbnailer
|
||||
Exec=@PREFIX@/bin/gdk-pixbuf-thumbnailer -s %s %u %o
|
||||
MimeType=image/webp;
|
13
graphics/webp-pixbuf-loader/files/patch-wscript
Normal file
13
graphics/webp-pixbuf-loader/files/patch-wscript
Normal file
|
@ -0,0 +1,13 @@
|
|||
--- wscript.orig 2018-10-31 22:31:58 UTC
|
||||
+++ wscript
|
||||
@@ -5,8 +5,8 @@ def options(opt):
|
||||
def configure(conf):
|
||||
conf.load('compiler_c glib2')
|
||||
conf.find_program('gdk-pixbuf-query-loaders')
|
||||
- conf.check_cc(lib='webp', header_name='webp/decode.h',
|
||||
- uselib_store='WEBP', mandatory=True)
|
||||
+ conf.check_cfg(package='libwebp', uselib_store='WEBP',
|
||||
+ args='--cflags --libs', mandatory=True)
|
||||
conf.check_cfg(package='gdk-pixbuf-2.0', uselib_store='GDK_PIXBUF',
|
||||
atleast_version='2.22.0', args='--cflags --libs',
|
||||
mandatory=True)
|
4
graphics/webp-pixbuf-loader/pkg-descr
Normal file
4
graphics/webp-pixbuf-loader/pkg-descr
Normal file
|
@ -0,0 +1,4 @@
|
|||
A WebP image loader for GdkPixbuf2.
|
||||
Also a thumbnailer definition file for e.g. Nautilus.
|
||||
|
||||
WWW: https://github.com/aruiz/webp-pixbuf-loader
|
Loading…
Add table
Reference in a new issue