summaryrefslogtreecommitdiff
path: root/net/wizd/files
diff options
context:
space:
mode:
Diffstat (limited to 'net/wizd/files')
-rw-r--r--net/wizd/files/patch-Makefile24
-rw-r--r--net/wizd/files/patch-nkfwrap__nkfwrap_test.c8
-rw-r--r--net/wizd/files/patch-wizd_http.c20
-rw-r--r--net/wizd/files/patch-wizd_menu.c20
-rw-r--r--net/wizd/files/wizd.sh.in30
5 files changed, 102 insertions, 0 deletions
diff --git a/net/wizd/files/patch-Makefile b/net/wizd/files/patch-Makefile
new file mode 100644
index 000000000000..77074a25092e
--- /dev/null
+++ b/net/wizd/files/patch-Makefile
@@ -0,0 +1,24 @@
+--- Makefile.orig 2008-08-15 00:53:11.000000000 +0400
++++ Makefile 2008-08-15 00:54:11.000000000 +0400
+@@ -5,19 +5,12 @@
+ ################################################################################
+ .SUFFIXES: .c .o .obj
+
+-CC = gcc
+-CFLAGS = -pipe -O2 -Wall
+-CFLAGS += -g # debug symbols
+ CFLAGS += -D_FILE_OFFSET_BITS=64
+ CFLAGS += -D_LARGEFILE_SOURCE
+ ### -- If you dont want to use JPEG resize feature, comment it out.
+ CFLAGS += -DRESIZE_JPEG
+-CFLAGS += -I/usr/local/include
+-LDFLAGS += -static -L/usr/local/lib -ljpeg -ldvdread
+-
+-# keep the following lines only if you have the w32api library
+-LDFLAGS += -L/lib/w32api -lole32 -luuid
+-CFLAGS += -DHAVE_W32API
++CFLAGS += -I${LOCALBASE}/include
++LDFLAGS += -L${LOCALBASE}/lib -ljpeg -ldvdread -lm -lcompat
+
+ ### --
+ LDFLAGS += -s # strip symbols
diff --git a/net/wizd/files/patch-nkfwrap__nkfwrap_test.c b/net/wizd/files/patch-nkfwrap__nkfwrap_test.c
new file mode 100644
index 000000000000..f6ab2dc5e4fa
--- /dev/null
+++ b/net/wizd/files/patch-nkfwrap__nkfwrap_test.c
@@ -0,0 +1,8 @@
+--- nkfwrap/nkfwrap_test.c.orig 2008-07-02 12:30:10.000000000 +0900
++++ nkfwrap/nkfwrap_test.c 2008-07-02 13:13:52.000000000 +0900
+@@ -1,4 +1,5 @@
+ #include <stdio.h>
++#include <string.h>
+ #include "nkfwrap.h"
+
+ int main()
diff --git a/net/wizd/files/patch-wizd_http.c b/net/wizd/files/patch-wizd_http.c
new file mode 100644
index 000000000000..354931d874c2
--- /dev/null
+++ b/net/wizd/files/patch-wizd_http.c
@@ -0,0 +1,20 @@
+--- wizd_http.c.orig 2008-07-02 12:30:10.000000000 +0900
++++ wizd_http.c 2008-07-02 13:12:25.000000000 +0900
+@@ -23,7 +23,9 @@
+ #include <dirent.h>
+ #include <fcntl.h>
+ #include <libgen.h>
++#ifdef __CYGWIN32__
+ #include <sys/cygwin.h>
++#endif
+
+ #include "wizd.h"
+ #include "wizd_skin.h"
+@@ -1072,7 +1074,6 @@
+ {
+ struct stat send_filestat;
+ int result;
+- int len;
+
+ unsigned char file_extension[16];
+
diff --git a/net/wizd/files/patch-wizd_menu.c b/net/wizd/files/patch-wizd_menu.c
new file mode 100644
index 000000000000..6adfd1ba7ca3
--- /dev/null
+++ b/net/wizd/files/patch-wizd_menu.c
@@ -0,0 +1,20 @@
+--- wizd_menu.c.orig 2008-07-02 12:30:10.000000000 +0900
++++ wizd_menu.c 2008-07-02 13:14:51.000000000 +0900
+@@ -27,7 +27,9 @@
+ #include <errno.h>
+ #include <libgen.h>
+ #include <regex.h>
++#ifdef __CYGWIN32__
+ #include <sys/cygwin.h>
++#endif
+
+ #include <dvdread/dvd_reader.h>
+ #include <dvdread/ifo_types.h>
+@@ -3432,7 +3434,6 @@
+ debug_log_output("ext = '%s'", file_info_p[count].ext);
+ }
+
+- checkmime:
+ if ((mime = lookup_mime_by_ext(file_info_p[count].ext)) == NULL) {
+ # ifdef HAVE_W32API
+ if (strcmp(file_info_p[count].ext, "lnk") == 0) {
diff --git a/net/wizd/files/wizd.sh.in b/net/wizd/files/wizd.sh.in
new file mode 100644
index 000000000000..ff8027991446
--- /dev/null
+++ b/net/wizd/files/wizd.sh.in
@@ -0,0 +1,30 @@
+#!/bin/sh
+#
+# $FreeBSD$
+#
+# PROVIDE: wizd
+# REQUIRE: LOGIN cleanvar
+# KEYWORD: shutdown
+#
+# Add the following lines to /etc/rc.conf to enable wizd:
+# wizd_enable (bool): Set it to "YES" to enable wizd.
+# Default is "NO".
+# wizd_flags (str): Flags passed to widz on startup.
+# Default is "".
+#
+
+. %%RC_SUBR%%
+
+name="wizd"
+rcvar=${name}_enable
+
+command="%%PREFIX%%/bin/$name"
+command_args="-d"
+required_files="%%PREFIX%%/etc/$name.conf"
+
+load_rc_config $name
+
+: ${wizd_enable="NO"}
+: ${wizd_flags=""}
+
+run_rc_command "$1"