pkgsrc-WIP-changes archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
gerbera: add support for options
Module Name: pkgsrc-wip
Committed By: Pierre Pronchery <khorben%defora.org@localhost>
Pushed By: khorben
Date: Mon Aug 31 21:16:47 2020 +0200
Changeset: b078d0b903a8a3808f09793cf9bfe1cf7d46a1dd
Modified Files:
gerbera/Makefile
Added Files:
gerbera/options.mk
Log Message:
gerbera: add support for options
To see a diff of this commit:
https://wip.pkgsrc.org/cgi-bin/gitweb.cgi?p=pkgsrc-wip.git;a=commitdiff;h=b078d0b903a8a3808f09793cf9bfe1cf7d46a1dd
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
diffstat:
gerbera/Makefile | 10 ++--------
gerbera/options.mk | 42 ++++++++++++++++++++++++++++++++++++++++++
2 files changed, 44 insertions(+), 8 deletions(-)
diffs:
diff --git a/gerbera/Makefile b/gerbera/Makefile
index 18d33ec54b..40dd409c1b 100644
--- a/gerbera/Makefile
+++ b/gerbera/Makefile
@@ -16,11 +16,6 @@ LICENSE= gnu-gpl-v2
USE_LANGUAGES= c c++
USE_CMAKE= yes
-#CMAKE_ARGS+= -DWITH_AVCODEC=ON
-CMAKE_ARGS+= -DWITH_DEBUG=OFF
-CMAKE_ARGS+= -DWITH_FFMPEGTHUMBNAILER=ON
-#CMAKE_ARGS+= -DWITH_LASTFM=ON
-CMAKE_ARGS+= -DWITH_SYSTEMD=OFF
RCD_SCRIPTS= gerbera
@@ -57,7 +52,8 @@ post-extract:
post-install:
${INSTALL_DATA} ${WRKSRC}/config.xml ${DESTDIR}${EGDIR}/config.xml
-#.include "../../audio/liblastfm/buildlink3.mk"
+.include "options.mk"
+
.include "../../audio/taglib/buildlink3.mk"
.include "../../converters/libiconv/buildlink3.mk"
.include "../../databases/sqlite3/buildlink3.mk"
@@ -65,8 +61,6 @@ post-install:
.include "../../devel/libuuid/buildlink3.mk"
.include "../../devel/zlib/buildlink3.mk"
.include "../../graphics/libexif/buildlink3.mk"
-.include "../../lang/libduktape/buildlink3.mk"
-.include "../../multimedia/ffmpegthumbnailer/buildlink3.mk"
.include "../../multimedia/libmatroska/buildlink3.mk"
.include "../../net/libupnp/buildlink3.mk"
.include "../../sysutils/file/buildlink3.mk"
diff --git a/gerbera/options.mk b/gerbera/options.mk
new file mode 100644
index 0000000000..e4b78fab95
--- /dev/null
+++ b/gerbera/options.mk
@@ -0,0 +1,42 @@
+# $NetBSD$
+#
+
+PKG_OPTIONS_VAR= PKG_OPTIONS.gerbera
+
+PKG_SUPPORTED_OPTIONS= debug ffmpeg ffmpegthumbnailer javascript lastfm systemd
+
+PKG_SUGGESTED_OPTIONS= ffmpegthumbnailer javascript
+
+.include "../../mk/bsd.options.mk"
+
+.if empty(PKG_OPTIONS:Mdebug)
+CMAKE_ARGS+= -DWITH_DEBUG=OFF
+.endif
+
+.if !empty(PKG_OPTIONS:Mffmpeg)
+CMAKE_ARGS+= -DWITH_AVCODEC=ON
+
+. include "../../multimedia/ffmpeg4/buildlink3.mk"
+.endif
+
+.if !empty(PKG_OPTIONS:Mffmpegthumbnailer)
+CMAKE_ARGS+= -DWITH_FFMPEGTHUMBNAILER=ON
+
+. include "../../multimedia/ffmpegthumbnailer/buildlink3.mk"
+.endif
+
+.if !empty(PKG_OPTIONS:Mlastfm)
+CMAKE_ARGS+= -DWITH_LASTFM=ON
+
+. include "../../audio/liblastfm/buildlink3.mk"
+.endif
+
+.if !empty(PKG_OPTIONS:Mjavascript)
+CMAKE_ARGS+= -DWITH_JS=OFF
+
+. include "../../lang/libduktape/buildlink3.mk"
+.endif
+
+.if empty(PKG_OPTIONS:Msystemd)
+CMAKE_ARGS+= -DWITH_SYSTEMD=OFF
+.endif
Home |
Main Index |
Thread Index |
Old Index