multimedia/handbrake: add option for gtk3 gui, defaults to enabled

This commit is contained in:
dbj 2022-07-03 21:38:48 +00:00
parent e53cb214f4
commit 9b77b29a4b
4 changed files with 51 additions and 34 deletions

View file

@ -1,4 +1,4 @@
# $NetBSD: Makefile,v 1.77 2022/06/28 11:34:56 wiz Exp $
# $NetBSD: Makefile,v 1.78 2022/07/03 21:38:48 dbj Exp $
#
DISTNAME= HandBrake-1.3.3-source
@ -79,7 +79,8 @@ post-extract:
cp ${DISTDIR}/${DIST_SUBDIR}/${MESON_DISTFILE} ${WRKSRC}/download/
(cd ${WRKSRC}/contrib; tar zxf ${WRKSRC}/download/${MESON_DISTFILE})
.include "../../graphics/hicolor-icon-theme/buildlink3.mk"
.include "options.mk"
.include "../../audio/lame/buildlink3.mk"
.include "../../audio/libopus/buildlink3.mk"
.include "../../audio/libsamplerate/buildlink3.mk"
@ -92,7 +93,5 @@ post-extract:
.include "../../multimedia/libvpx/buildlink3.mk"
.include "../../multimedia/x264-devel/buildlink3.mk"
.include "../../textproc/libxml2/buildlink3.mk"
.include "../../x11/gtk3/buildlink3.mk"
.include "../../textproc/jansson/buildlink3.mk"
.include "../../sysutils/desktop-file-utils/desktopdb.mk"
.include "../../mk/bsd.pkg.mk"

View file

@ -1,31 +1,2 @@
@comment $NetBSD: PLIST,v 1.5 2021/01/12 12:00:43 ryoon Exp $
@comment $NetBSD: PLIST,v 1.6 2022/07/03 21:38:48 dbj Exp $
bin/HandBrakeCLI
bin/ghb
share/applications/fr.handbrake.ghb.desktop
share/icons/hicolor/scalable/apps/fr.handbrake.ghb.svg
share/icons/hicolor/scalable/apps/hb-icon.svg
share/locale/af/LC_MESSAGES/ghb.mo
share/locale/cs/LC_MESSAGES/ghb.mo
share/locale/da/LC_MESSAGES/ghb.mo
share/locale/de/LC_MESSAGES/ghb.mo
share/locale/es/LC_MESSAGES/ghb.mo
share/locale/eu/LC_MESSAGES/ghb.mo
share/locale/fr/LC_MESSAGES/ghb.mo
share/locale/hr/LC_MESSAGES/ghb.mo
share/locale/it/LC_MESSAGES/ghb.mo
share/locale/ja/LC_MESSAGES/ghb.mo
share/locale/ko/LC_MESSAGES/ghb.mo
share/locale/nl/LC_MESSAGES/ghb.mo
share/locale/no/LC_MESSAGES/ghb.mo
share/locale/pl/LC_MESSAGES/ghb.mo
share/locale/pt/LC_MESSAGES/ghb.mo
share/locale/pt_BR/LC_MESSAGES/ghb.mo
share/locale/ro/LC_MESSAGES/ghb.mo
share/locale/ru/LC_MESSAGES/ghb.mo
share/locale/sk/LC_MESSAGES/ghb.mo
share/locale/sv/LC_MESSAGES/ghb.mo
share/locale/th/LC_MESSAGES/ghb.mo
share/locale/tr/LC_MESSAGES/ghb.mo
share/locale/uk_UA/LC_MESSAGES/ghb.mo
share/locale/zh_CN/LC_MESSAGES/ghb.mo
share/metainfo/fr.handbrake.ghb.metainfo.xml

View file

@ -0,0 +1,30 @@
@comment $NetBSD: PLIST.gtk3,v 1.1 2022/07/03 21:38:48 dbj Exp $
bin/ghb
share/applications/fr.handbrake.ghb.desktop
share/icons/hicolor/scalable/apps/fr.handbrake.ghb.svg
share/icons/hicolor/scalable/apps/hb-icon.svg
share/locale/af/LC_MESSAGES/ghb.mo
share/locale/cs/LC_MESSAGES/ghb.mo
share/locale/da/LC_MESSAGES/ghb.mo
share/locale/de/LC_MESSAGES/ghb.mo
share/locale/es/LC_MESSAGES/ghb.mo
share/locale/eu/LC_MESSAGES/ghb.mo
share/locale/fr/LC_MESSAGES/ghb.mo
share/locale/hr/LC_MESSAGES/ghb.mo
share/locale/it/LC_MESSAGES/ghb.mo
share/locale/ja/LC_MESSAGES/ghb.mo
share/locale/ko/LC_MESSAGES/ghb.mo
share/locale/nl/LC_MESSAGES/ghb.mo
share/locale/no/LC_MESSAGES/ghb.mo
share/locale/pl/LC_MESSAGES/ghb.mo
share/locale/pt/LC_MESSAGES/ghb.mo
share/locale/pt_BR/LC_MESSAGES/ghb.mo
share/locale/ro/LC_MESSAGES/ghb.mo
share/locale/ru/LC_MESSAGES/ghb.mo
share/locale/sk/LC_MESSAGES/ghb.mo
share/locale/sv/LC_MESSAGES/ghb.mo
share/locale/th/LC_MESSAGES/ghb.mo
share/locale/tr/LC_MESSAGES/ghb.mo
share/locale/uk_UA/LC_MESSAGES/ghb.mo
share/locale/zh_CN/LC_MESSAGES/ghb.mo
share/metainfo/fr.handbrake.ghb.metainfo.xml

View file

@ -0,0 +1,17 @@
# $NetBSD: options.mk,v 1.1 2022/07/03 21:38:48 dbj Exp $
PKG_OPTIONS_VAR= PKG_OPTIONS.handbrake
PKG_SUPPORTED_OPTIONS= gtk3
PKG_SUGGESTED_OPTIONS= gtk3
.include "../../mk/bsd.options.mk"
.if empty(PKG_OPTIONS:Mgtk3)
CONFIGURE_ARGS+= --disable-gtk
.else
.include "../../graphics/hicolor-icon-theme/buildlink3.mk"
.include "../../x11/gtk3/buildlink3.mk"
.include "../../sysutils/desktop-file-utils/desktopdb.mk"
PLIST_SRC+= ${PKGDIR}/PLIST.gtk3
.endif