1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-12-29 05:38:00 +00:00

www/vimb: add GSTREAMER option

Use REINPLACE_CMD instead of patch.
Submitter takes maintainership.

PR:		279279
This commit is contained in:
mew14930xvi 2024-07-14 13:03:13 +02:00 committed by Zsolt Udvari
parent d9266669d3
commit f5e15b6bf5
2 changed files with 10 additions and 30 deletions

View File

@ -1,9 +1,9 @@
PORTNAME= vimb
DISTVERSION= 3.7.0
PORTREVISION= 1
PORTREVISION= 2
CATEGORIES= www
MAINTAINER= ports@FreeBSD.org
MAINTAINER= mew14930xvi@inbox.lv
COMMENT= Vim like browser
WWW= https://fanglingsu.github.io/vimb/
@ -16,21 +16,24 @@ LIB_DEPENDS= libsoup-2.4.so:devel/libsoup \
USES= compiler:c11 desktop-file-utils gmake gnome pkgconfig
USE_GITHUB= yes
GH_ACCOUNT= fanglingsu
GH_PROJECT= vimb
USE_GNOME= cairo gdkpixbuf2 gtk30
USE_GNOME= cairo glib20 gtk30
MAKE_ARGS= MANPREFIX=${STAGEDIR}${PREFIX}/share/man \
V=1 \
MAKE_ARGS= V=1 \
version="${DISTVERSION}"
LDFLAGS+= -Wl,--as-needed
PLIST_FILES= bin/vimb \
lib/vimb/webext_main.so \
share/man/man1/vimb.1.gz \
share/applications/vimb.desktop \
share/man/man1/vimb.1.gz \
share/metainfo/vimb.metainfo.xml
OPTIONS_DEFINE= GSTREAMER
GSTREAMER_USES= gstreamer
GSTREAMER_USE= GSTREAMER=good,libav
post-patch:
@${REINPLACE_CMD} -e 's|gtk-4.1|gtk-4.0|' ${WRKSRC}/config.mk
# .git/index needs to exist to generate version.h...
${MKDIR} ${WRKSRC}/.git/index

View File

@ -1,23 +0,0 @@
--- config.mk.orig 2023-06-19 20:39:23.000000000 +0000
+++ config.mk 2023-08-07 07:27:35.408991000 +0000
@@ -18,7 +18,7 @@ SRCDIR = src
DOCDIR = doc
# used libs
-LIBS = gtk+-3.0 webkit2gtk-4.1
+LIBS = gtk+-3.0 webkit2gtk-4.0 gdk-pixbuf-2.0 cairo harfbuzz pango glib-2.0 harfbuzz atk
# setup general used CFLAGS
CFLAGS += -std=c99 -pipe -Wall -fPIC
@@ -35,9 +35,9 @@ endif
# flags used to build webextension
EXTTARGET = webext_main.so
-EXTCFLAGS = ${CFLAGS} $(shell pkg-config --cflags webkit2gtk-web-extension-4.1)
+EXTCFLAGS = ${CFLAGS} $(shell pkg-config --cflags webkit2gtk-web-extension-4.0)
EXTCPPFLAGS = $(CPPFLAGS)
-EXTLDFLAGS = ${LDFLAGS} $(shell pkg-config --libs webkit2gtk-web-extension-4.1) -shared
+EXTLDFLAGS = ${LDFLAGS} $(shell pkg-config --libs webkit2gtk-web-extension-4.0) -shared
# flags used for the main application
CFLAGS += $(shell pkg-config --cflags $(LIBS))