pkgsrc-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[pkgsrc/trunk]: pkgsrc/multimedia/handbrake multimedia/handbrake: add option ...



details:   https://anonhg.NetBSD.org/pkgsrc/rev/82535b9772c9
branches:  trunk
changeset: 381309:82535b9772c9
user:      dbj <dbj%pkgsrc.org@localhost>
date:      Sun Jul 03 21:38:48 2022 +0000

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

diffstat:

 multimedia/handbrake/Makefile   |   7 +++----
 multimedia/handbrake/PLIST      |  31 +------------------------------
 multimedia/handbrake/PLIST.gtk3 |  30 ++++++++++++++++++++++++++++++
 multimedia/handbrake/options.mk |  17 +++++++++++++++++
 4 files changed, 51 insertions(+), 34 deletions(-)

diffs (118 lines):

diff -r aa78f9adfcd1 -r 82535b9772c9 multimedia/handbrake/Makefile
--- a/multimedia/handbrake/Makefile     Sun Jul 03 21:20:52 2022 +0000
+++ b/multimedia/handbrake/Makefile     Sun Jul 03 21:38:48 2022 +0000
@@ -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 @@
        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 @@
 .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"
diff -r aa78f9adfcd1 -r 82535b9772c9 multimedia/handbrake/PLIST
--- a/multimedia/handbrake/PLIST        Sun Jul 03 21:20:52 2022 +0000
+++ b/multimedia/handbrake/PLIST        Sun Jul 03 21:38:48 2022 +0000
@@ -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
diff -r aa78f9adfcd1 -r 82535b9772c9 multimedia/handbrake/PLIST.gtk3
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/multimedia/handbrake/PLIST.gtk3   Sun Jul 03 21:38:48 2022 +0000
@@ -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
diff -r aa78f9adfcd1 -r 82535b9772c9 multimedia/handbrake/options.mk
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/multimedia/handbrake/options.mk   Sun Jul 03 21:38:48 2022 +0000
@@ -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



Home | Main Index | Thread Index | Old Index