pkgsrc-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[pkgsrc/trunk]: pkgsrc/www/cherokee cherokee: Switch to ffmpeg4. Note that th...
details: https://anonhg.NetBSD.org/pkgsrc/rev/0bb6ee08c4ca
branches: trunk
changeset: 428001:0bb6ee08c4ca
user: nia <nia%pkgsrc.org@localhost>
date: Thu Apr 23 15:46:01 2020 +0000
description:
cherokee: Switch to ffmpeg4. Note that the ffmpeg option was broken
diffstat:
www/cherokee/Makefile | 4 +-
www/cherokee/PLIST | 3 +-
www/cherokee/distinfo | 3 +-
www/cherokee/options.mk | 6 +-
www/cherokee/patches/patch-cherokee_handler__streaming.c | 50 ++++++++++++++++
5 files changed, 59 insertions(+), 7 deletions(-)
diffs (126 lines):
diff -r e829ee6565d7 -r 0bb6ee08c4ca www/cherokee/Makefile
--- a/www/cherokee/Makefile Thu Apr 23 15:25:43 2020 +0000
+++ b/www/cherokee/Makefile Thu Apr 23 15:46:01 2020 +0000
@@ -1,7 +1,7 @@
-# $NetBSD: Makefile,v 1.43 2020/01/18 21:51:05 jperkin Exp $
+# $NetBSD: Makefile,v 1.44 2020/04/23 15:46:01 nia Exp $
DISTNAME= cherokee-1.2.101
-PKGREVISION= 14
+PKGREVISION= 15
CATEGORIES= www
MASTER_SITES= http://www.cherokee-project.com/download/1.2/${PKGVERSION_NOREV}/
diff -r e829ee6565d7 -r 0bb6ee08c4ca www/cherokee/PLIST
--- a/www/cherokee/PLIST Thu Apr 23 15:25:43 2020 +0000
+++ b/www/cherokee/PLIST Thu Apr 23 15:46:01 2020 +0000
@@ -1,4 +1,4 @@
-@comment $NetBSD: PLIST,v 1.6 2018/01/01 22:30:02 rillig Exp $
+@comment $NetBSD: PLIST,v 1.7 2020/04/23 15:46:01 nia Exp $
bin/CTK-run
bin/cget
bin/cherokee-admin-launcher
@@ -99,6 +99,7 @@
lib/cherokee/libplugin_secdownload.la
lib/cherokee/libplugin_server_info.la
lib/cherokee/libplugin_ssi.la
+${PLIST.ffmpeg}lib/cherokee/libplugin_streaming.la
lib/cherokee/libplugin_target_ip.la
lib/cherokee/libplugin_tls.la
lib/cherokee/libplugin_url_arg.la
diff -r e829ee6565d7 -r 0bb6ee08c4ca www/cherokee/distinfo
--- a/www/cherokee/distinfo Thu Apr 23 15:25:43 2020 +0000
+++ b/www/cherokee/distinfo Thu Apr 23 15:46:01 2020 +0000
@@ -1,4 +1,4 @@
-$NetBSD: distinfo,v 1.8 2020/04/15 22:38:18 joerg Exp $
+$NetBSD: distinfo,v 1.9 2020/04/23 15:46:01 nia Exp $
SHA1 (cherokee-1.2.101.tar.gz) = b27f149c7d7111207ac8c3cd8a4856c05490d136
RMD160 (cherokee-1.2.101.tar.gz) = dd3dedc352ba17bdcefd8e200143b8ffa19ad035
@@ -10,4 +10,5 @@
SHA1 (patch-cherokee_cryptor__libssl__dh__2048.c) = 46541cfd1ab8dfcc14a14aa3240d2047dd044aaa
SHA1 (patch-cherokee_cryptor__libssl__dh__4096.c) = 8aa7c90d05fcefba59243a8b9671fca3f74f73d3
SHA1 (patch-cherokee_cryptor__libssl__dh__512.c) = 8c0c43942b7fa2485e241f376c9d542cb9b506b9
+SHA1 (patch-cherokee_handler__streaming.c) = 0cc14d5de031b69146939114f28981f522e15174
SHA1 (patch-configure) = 58a25088320863dd00f4c7d4f050e1c163dbe6f3
diff -r e829ee6565d7 -r 0bb6ee08c4ca www/cherokee/options.mk
--- a/www/cherokee/options.mk Thu Apr 23 15:25:43 2020 +0000
+++ b/www/cherokee/options.mk Thu Apr 23 15:46:01 2020 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: options.mk,v 1.2 2014/08/11 23:09:46 wiz Exp $
+# $NetBSD: options.mk,v 1.3 2020/04/23 15:46:01 nia Exp $
#
PKG_OPTIONS_VAR= PKG_OPTIONS.cherokee
@@ -7,7 +7,7 @@
.include "../../mk/bsd.options.mk"
-PLIST_VARS+= geoip ldap mysql pam ssl
+PLIST_VARS+= ffmpeg geoip ldap mysql pam ssl
###
### Threading support.
@@ -79,7 +79,7 @@
.if !empty(PKG_OPTIONS:Mffmpeg)
PLIST.ffmpeg= yes
CONFIGURE_ARGS+= --with-ffmpeg=${BUILDLINK_PREFIX.ffmpeg}
-.include "../../multimedia/ffmpeg1/buildlink3.mk"
+.include "../../multimedia/ffmpeg3/buildlink3.mk"
.else
CONFIGURE_ARGS+= --without-ffmpeg
.endif
diff -r e829ee6565d7 -r 0bb6ee08c4ca www/cherokee/patches/patch-cherokee_handler__streaming.c
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/www/cherokee/patches/patch-cherokee_handler__streaming.c Thu Apr 23 15:46:01 2020 +0000
@@ -0,0 +1,50 @@
+$NetBSD: patch-cherokee_handler__streaming.c,v 1.1 2020/04/23 15:46:01 nia Exp $
+
+Fix build with ffmpeg4.
+
+--- cherokee/handler_streaming.c.orig 2011-10-12 18:07:44.000000000 +0000
++++ cherokee/handler_streaming.c
+@@ -111,7 +111,7 @@ cherokee_handler_streaming_free (cheroke
+ }
+
+ if (hdl->avformat != NULL) {
+- av_close_input_file (hdl->avformat);
++ avformat_close_input (&hdl->avformat);
+ }
+
+ cherokee_buffer_mrproper (&hdl->local_file);
+@@ -312,14 +312,14 @@ open_media_file (cherokee_handler_stream
+
+ /* Open the media stream
+ */
+- re = av_open_input_file (&hdl->avformat, hdl->local_file.buf, NULL, 0, NULL);
++ re = avformat_open_input (&hdl->avformat, hdl->local_file.buf, NULL, NULL);
+ if (re != 0) {
+ goto error;
+ }
+
+ /* Read the info
+ */
+- re = av_find_stream_info (hdl->avformat);
++ re = avformat_find_stream_info (hdl->avformat, NULL);
+ if (re < 0) {
+ goto error;
+ }
+@@ -327,7 +327,7 @@ open_media_file (cherokee_handler_stream
+ return ret_ok;
+ error:
+ if (hdl->avformat != NULL) {
+- av_close_input_file (hdl->avformat);
++ avformat_close_input (&hdl->avformat);
+ hdl->avformat = NULL;
+ }
+
+@@ -380,7 +380,7 @@ set_auto_rate (cherokee_handler_streamin
+ if (likely (secs > 0)) {
+ long tmp;
+
+- tmp = (hdl->avformat->file_size / secs);
++ tmp = (hdl->handler_file->info->st_size / secs);
+ if (tmp > rate) {
+ rate = tmp;
+ TRACE(ENTRIES, "New rate: %d bytes/s\n", rate);
Home |
Main Index |
Thread Index |
Old Index