diff options
author | amdmi3 <amdmi3@FreeBSD.org> | 2008-08-15 05:10:10 +0800 |
---|---|---|
committer | amdmi3 <amdmi3@FreeBSD.org> | 2008-08-15 05:10:10 +0800 |
commit | 76f9422980fb4cde5e601408ee627c52adb7c706 (patch) | |
tree | d3a160a56ae9ea2c7081ed5c0cc08a0c31f7c6df /net/wizd | |
parent | d3febb0d7e5d73f8e89d21b13cc13fbef73e053d (diff) | |
download | freebsd-ports-gnome-76f9422980fb4cde5e601408ee627c52adb7c706.tar.gz freebsd-ports-gnome-76f9422980fb4cde5e601408ee627c52adb7c706.tar.zst freebsd-ports-gnome-76f9422980fb4cde5e601408ee627c52adb7c706.zip |
Wizd is serving all your media files (video, audio, photo...) to your
Syabas-based network player.
WWW: http://wizd.sourceforge.net/
PR: ports/125178
Submitted by: Ayumi M <ayu at commun dot jp>
Diffstat (limited to 'net/wizd')
-rw-r--r-- | net/wizd/Makefile | 43 | ||||
-rw-r--r-- | net/wizd/distinfo | 6 | ||||
-rw-r--r-- | net/wizd/files/patch-Makefile | 24 | ||||
-rw-r--r-- | net/wizd/files/patch-nkfwrap__nkfwrap_test.c | 8 | ||||
-rw-r--r-- | net/wizd/files/patch-wizd_http.c | 20 | ||||
-rw-r--r-- | net/wizd/files/patch-wizd_menu.c | 20 | ||||
-rw-r--r-- | net/wizd/files/wizd.sh.in | 30 | ||||
-rw-r--r-- | net/wizd/pkg-descr | 4 | ||||
-rw-r--r-- | net/wizd/pkg-plist | 202 |
9 files changed, 357 insertions, 0 deletions
diff --git a/net/wizd/Makefile b/net/wizd/Makefile new file mode 100644 index 000000000000..6e8f6d4e679a --- /dev/null +++ b/net/wizd/Makefile @@ -0,0 +1,43 @@ +# New ports collection makefile for: wizd +# Date created: 2008-06-25 +# Whom: Ayumi M <ayu@commun.jp> +# +# $FreeBSD$ +# + +PORTNAME= wizd +PORTVERSION= 24 +CATEGORIES= net multimedia +MASTER_SITES= SF +DISTFILES= wizd_sources_v${PORTVERSION}.zip simplicity_v1-2.zip + +MAINTAINER= ayu@commun.jp +COMMENT= An open-source media server for Syabas-based media players + +LIB_DEPENDS= dvdread:${PORTSDIR}/multimedia/libdvdread \ + jpeg:${PORTSDIR}/graphics/jpeg +RUN_DEPENDS= nkf:${PORTSDIR}/japanese/nkf + +NO_WRKSUBDIR= yes +USE_DOS2UNIX= Makefile +USE_ZIP= yes +USE_RC_SUBR= wizd.sh + +post-patch: + @${REINPLACE_CMD} -e 's|./skin|${DATADIR}/skins|' ${WRKSRC}/wizd.conf + +do-install: + ${INSTALL_PROGRAM} ${WRKSRC}/wizd ${PREFIX}/bin + ${INSTALL_DATA} ${WRKSRC}/wizd.conf ${PREFIX}/etc/wizd.conf.sample + + ${MKDIR} ${DATADIR}/skins +.for DIR in simplicity simplicity_hires + cd ${WRKSRC} && ${COPYTREE_SHARE} ${DIR} ${DATADIR}/skins +.endfor + +.if !defined(NOPORTDOCS) + ${MKDIR} ${DOCSDIR} + ${INSTALL_DATA} ${WRKSRC}/ChangeLog.txt ${DOCSDIR} +.endif + +.include <bsd.port.mk> diff --git a/net/wizd/distinfo b/net/wizd/distinfo new file mode 100644 index 000000000000..e613e65489aa --- /dev/null +++ b/net/wizd/distinfo @@ -0,0 +1,6 @@ +MD5 (wizd_sources_v24.zip) = c0c5ded8e67bdbdc3cd2abb255c12233 +SHA256 (wizd_sources_v24.zip) = 439def5e3e0e59c0ed6dfe83dc57da497d6fd826951f2fc4398007afdce31ecb +SIZE (wizd_sources_v24.zip) = 414369 +MD5 (simplicity_v1-2.zip) = 055a9e2e321be1efc1473bc80cb07453 +SHA256 (simplicity_v1-2.zip) = 614c68b66022865d4d78523f3a3f3b9efe023f717ec1b2b97d2d95d867b735bb +SIZE (simplicity_v1-2.zip) = 495381 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" diff --git a/net/wizd/pkg-descr b/net/wizd/pkg-descr new file mode 100644 index 000000000000..2996c2022b21 --- /dev/null +++ b/net/wizd/pkg-descr @@ -0,0 +1,4 @@ +Wizd is serving all your media files (video, audio, photo...) to your +Syabas-based network player. + +WWW: http://wizd.sourceforge.net/ diff --git a/net/wizd/pkg-plist b/net/wizd/pkg-plist new file mode 100644 index 000000000000..c44c65334493 --- /dev/null +++ b/net/wizd/pkg-plist @@ -0,0 +1,202 @@ +bin/wizd +etc/wizd.conf.sample +%%PORTDOCS%%%%DOCSDIR%%/ChangeLog.txt +%%DATADIR%%/skins/simplicity/back-delete.jpg +%%DATADIR%%/skins/simplicity/back-portal.jpg +%%DATADIR%%/skins/simplicity/back.jpg +%%DATADIR%%/skins/simplicity/delete_head.html +%%DATADIR%%/skins/simplicity/delete_tail.html +%%DATADIR%%/skins/simplicity/down.png +%%DATADIR%%/skins/simplicity/favorite.png +%%DATADIR%%/skins/simplicity/favorite2.png +%%DATADIR%%/skins/simplicity/files.png +%%DATADIR%%/skins/simplicity/files2.png +%%DATADIR%%/skins/simplicity/head.html +%%DATADIR%%/skins/simplicity/icon-blank.gif +%%DATADIR%%/skins/simplicity/icon_delete.png +%%DATADIR%%/skins/simplicity/icon_dir.png +%%DATADIR%%/skins/simplicity/icon_document.png +%%DATADIR%%/skins/simplicity/icon_image.png +%%DATADIR%%/skins/simplicity/icon_iso.png +%%DATADIR%%/skins/simplicity/icon_jpeg.png +%%DATADIR%%/skins/simplicity/icon_movie.png +%%DATADIR%%/skins/simplicity/icon_music.png +%%DATADIR%%/skins/simplicity/icon_svi.png +%%DATADIR%%/skins/simplicity/icon_unknown.png +%%DATADIR%%/skins/simplicity/icon_url.png +%%DATADIR%%/skins/simplicity/icon_videots.png +%%DATADIR%%/skins/simplicity/image_viewer.html +%%DATADIR%%/skins/simplicity/line_album.html +%%DATADIR%%/skins/simplicity/line_aviinfo.html +%%DATADIR%%/skins/simplicity/line_chapter.html +%%DATADIR%%/skins/simplicity/line_delete.html +%%DATADIR%%/skins/simplicity/line_dir.html +%%DATADIR%%/skins/simplicity/line_document.html +%%DATADIR%%/skins/simplicity/line_image.html +%%DATADIR%%/skins/simplicity/line_iso.html +%%DATADIR%%/skins/simplicity/line_jpeg.html +%%DATADIR%%/skins/simplicity/line_movie.html +%%DATADIR%%/skins/simplicity/line_mp3info.html +%%DATADIR%%/skins/simplicity/line_music.html +%%DATADIR%%/skins/simplicity/line_musiclist.html +%%DATADIR%%/skins/simplicity/line_playlist.html +%%DATADIR%%/skins/simplicity/line_pseudo.html +%%DATADIR%%/skins/simplicity/line_svi.html +%%DATADIR%%/skins/simplicity/line_svi_file.html +%%DATADIR%%/skins/simplicity/line_unknown.html +%%DATADIR%%/skins/simplicity/line_url.html +%%DATADIR%%/skins/simplicity/line_videots.html +%%DATADIR%%/skins/simplicity/music.png +%%DATADIR%%/skins/simplicity/music2.png +%%DATADIR%%/skins/simplicity/nav-parentdir.gif +%%DATADIR%%/skins/simplicity/next-gr.png +%%DATADIR%%/skins/simplicity/next.png +%%DATADIR%%/skins/simplicity/option_menu.html +%%DATADIR%%/skins/simplicity/option_menu.jpg +%%DATADIR%%/skins/simplicity/photos.png +%%DATADIR%%/skins/simplicity/photos2.png +%%DATADIR%%/skins/simplicity/prev-gr.png +%%DATADIR%%/skins/simplicity/prev.png +%%DATADIR%%/skins/simplicity/puce.png +%%DATADIR%%/skins/simplicity/readme.txt +%%DATADIR%%/skins/simplicity/services.png +%%DATADIR%%/skins/simplicity/services2.png +%%DATADIR%%/skins/simplicity/spacer.gif +%%DATADIR%%/skins/simplicity/start.html +%%DATADIR%%/skins/simplicity/tail.html +%%DATADIR%%/skins/simplicity/thumb_aviinfo.html +%%DATADIR%%/skins/simplicity/thumb_chapter.html +%%DATADIR%%/skins/simplicity/thumb_delete.png +%%DATADIR%%/skins/simplicity/thumb_dir.gif +%%DATADIR%%/skins/simplicity/thumb_dir.html +%%DATADIR%%/skins/simplicity/thumb_dir.png +%%DATADIR%%/skins/simplicity/thumb_document.html +%%DATADIR%%/skins/simplicity/thumb_document.png +%%DATADIR%%/skins/simplicity/thumb_head.html +%%DATADIR%%/skins/simplicity/thumb_image.html +%%DATADIR%%/skins/simplicity/thumb_image.png +%%DATADIR%%/skins/simplicity/thumb_iso.html +%%DATADIR%%/skins/simplicity/thumb_iso.png +%%DATADIR%%/skins/simplicity/thumb_jpeg.html +%%DATADIR%%/skins/simplicity/thumb_jpeg.png +%%DATADIR%%/skins/simplicity/thumb_movie.html +%%DATADIR%%/skins/simplicity/thumb_movie.png +%%DATADIR%%/skins/simplicity/thumb_mp3info.html +%%DATADIR%%/skins/simplicity/thumb_music.html +%%DATADIR%%/skins/simplicity/thumb_music.png +%%DATADIR%%/skins/simplicity/thumb_musiclist.html +%%DATADIR%%/skins/simplicity/thumb_playlist.html +%%DATADIR%%/skins/simplicity/thumb_pseudo.html +%%DATADIR%%/skins/simplicity/thumb_row.html +%%DATADIR%%/skins/simplicity/thumb_svi.html +%%DATADIR%%/skins/simplicity/thumb_svi.png +%%DATADIR%%/skins/simplicity/thumb_tail.html +%%DATADIR%%/skins/simplicity/thumb_unknown.html +%%DATADIR%%/skins/simplicity/thumb_unknown.png +%%DATADIR%%/skins/simplicity/thumb_url.html +%%DATADIR%%/skins/simplicity/thumb_url.png +%%DATADIR%%/skins/simplicity/thumb_videots.png +%%DATADIR%%/skins/simplicity/up.png +%%DATADIR%%/skins/simplicity/videos.png +%%DATADIR%%/skins/simplicity/videos2.png +%%DATADIR%%/skins/simplicity/wizd_skin.conf +%%DATADIR%%/skins/simplicity_hires/back-delete.jpg +%%DATADIR%%/skins/simplicity_hires/back-portal.jpg +%%DATADIR%%/skins/simplicity_hires/back.jpg +%%DATADIR%%/skins/simplicity_hires/delete_head.html +%%DATADIR%%/skins/simplicity_hires/delete_tail.html +%%DATADIR%%/skins/simplicity_hires/down.png +%%DATADIR%%/skins/simplicity_hires/favorite.png +%%DATADIR%%/skins/simplicity_hires/favorite2.png +%%DATADIR%%/skins/simplicity_hires/files.png +%%DATADIR%%/skins/simplicity_hires/files2.png +%%DATADIR%%/skins/simplicity_hires/head.html +%%DATADIR%%/skins/simplicity_hires/icon-blank.gif +%%DATADIR%%/skins/simplicity_hires/icon_delete.png +%%DATADIR%%/skins/simplicity_hires/icon_dir.png +%%DATADIR%%/skins/simplicity_hires/icon_document.png +%%DATADIR%%/skins/simplicity_hires/icon_image.png +%%DATADIR%%/skins/simplicity_hires/icon_iso.png +%%DATADIR%%/skins/simplicity_hires/icon_jpeg.png +%%DATADIR%%/skins/simplicity_hires/icon_movie.png +%%DATADIR%%/skins/simplicity_hires/icon_music.png +%%DATADIR%%/skins/simplicity_hires/icon_svi.png +%%DATADIR%%/skins/simplicity_hires/icon_unknown.png +%%DATADIR%%/skins/simplicity_hires/icon_url.png +%%DATADIR%%/skins/simplicity_hires/icon_videots.png +%%DATADIR%%/skins/simplicity_hires/image_viewer.html +%%DATADIR%%/skins/simplicity_hires/line_album.html +%%DATADIR%%/skins/simplicity_hires/line_aviinfo.html +%%DATADIR%%/skins/simplicity_hires/line_chapter.html +%%DATADIR%%/skins/simplicity_hires/line_delete.html +%%DATADIR%%/skins/simplicity_hires/line_dir.html +%%DATADIR%%/skins/simplicity_hires/line_document.html +%%DATADIR%%/skins/simplicity_hires/line_image.html +%%DATADIR%%/skins/simplicity_hires/line_iso.html +%%DATADIR%%/skins/simplicity_hires/line_jpeg.html +%%DATADIR%%/skins/simplicity_hires/line_movie.html +%%DATADIR%%/skins/simplicity_hires/line_mp3info.html +%%DATADIR%%/skins/simplicity_hires/line_music.html +%%DATADIR%%/skins/simplicity_hires/line_musiclist.html +%%DATADIR%%/skins/simplicity_hires/line_playlist.html +%%DATADIR%%/skins/simplicity_hires/line_pseudo.html +%%DATADIR%%/skins/simplicity_hires/line_svi.html +%%DATADIR%%/skins/simplicity_hires/line_svi_file.html +%%DATADIR%%/skins/simplicity_hires/line_unknown.html +%%DATADIR%%/skins/simplicity_hires/line_url.html +%%DATADIR%%/skins/simplicity_hires/line_videots.html +%%DATADIR%%/skins/simplicity_hires/music.png +%%DATADIR%%/skins/simplicity_hires/music2.png +%%DATADIR%%/skins/simplicity_hires/nav-parentdir.gif +%%DATADIR%%/skins/simplicity_hires/next-gr.png +%%DATADIR%%/skins/simplicity_hires/next.png +%%DATADIR%%/skins/simplicity_hires/option_menu.html +%%DATADIR%%/skins/simplicity_hires/option_menu.jpg +%%DATADIR%%/skins/simplicity_hires/photos.png +%%DATADIR%%/skins/simplicity_hires/photos2.png +%%DATADIR%%/skins/simplicity_hires/prev-gr.png +%%DATADIR%%/skins/simplicity_hires/prev.png +%%DATADIR%%/skins/simplicity_hires/puce.png +%%DATADIR%%/skins/simplicity_hires/readme.txt +%%DATADIR%%/skins/simplicity_hires/services.png +%%DATADIR%%/skins/simplicity_hires/services2.png +%%DATADIR%%/skins/simplicity_hires/spacer.gif +%%DATADIR%%/skins/simplicity_hires/start.html +%%DATADIR%%/skins/simplicity_hires/tail.html +%%DATADIR%%/skins/simplicity_hires/thumb_chapter.html +%%DATADIR%%/skins/simplicity_hires/thumb_delete.png +%%DATADIR%%/skins/simplicity_hires/thumb_dir.html +%%DATADIR%%/skins/simplicity_hires/thumb_dir.png +%%DATADIR%%/skins/simplicity_hires/thumb_document.html +%%DATADIR%%/skins/simplicity_hires/thumb_document.png +%%DATADIR%%/skins/simplicity_hires/thumb_head.html +%%DATADIR%%/skins/simplicity_hires/thumb_image.html +%%DATADIR%%/skins/simplicity_hires/thumb_image.png +%%DATADIR%%/skins/simplicity_hires/thumb_iso.html +%%DATADIR%%/skins/simplicity_hires/thumb_iso.png +%%DATADIR%%/skins/simplicity_hires/thumb_jpeg.html +%%DATADIR%%/skins/simplicity_hires/thumb_jpeg.png +%%DATADIR%%/skins/simplicity_hires/thumb_movie.html +%%DATADIR%%/skins/simplicity_hires/thumb_movie.png +%%DATADIR%%/skins/simplicity_hires/thumb_music.html +%%DATADIR%%/skins/simplicity_hires/thumb_music.png +%%DATADIR%%/skins/simplicity_hires/thumb_musiclist.html +%%DATADIR%%/skins/simplicity_hires/thumb_playlist.html +%%DATADIR%%/skins/simplicity_hires/thumb_pseudo.html +%%DATADIR%%/skins/simplicity_hires/thumb_row.html +%%DATADIR%%/skins/simplicity_hires/thumb_svi.html +%%DATADIR%%/skins/simplicity_hires/thumb_svi.png +%%DATADIR%%/skins/simplicity_hires/thumb_tail.html +%%DATADIR%%/skins/simplicity_hires/thumb_unknown.html +%%DATADIR%%/skins/simplicity_hires/thumb_unknown.png +%%DATADIR%%/skins/simplicity_hires/thumb_url.html +%%DATADIR%%/skins/simplicity_hires/thumb_url.png +%%DATADIR%%/skins/simplicity_hires/up.png +%%DATADIR%%/skins/simplicity_hires/videos.png +%%DATADIR%%/skins/simplicity_hires/videos2.png +%%DATADIR%%/skins/simplicity_hires/wizd_skin.conf +@dirrm %%DATADIR%%/skins/simplicity_hires +@dirrm %%DATADIR%%/skins/simplicity +@dirrm %%DATADIR%%/skins +@dirrm %%DATADIR%% +%%PORTDOCS%%@dirrm %%DOCSDIR%% |