initial import of xine-ui

xine-ui is a graphical user interface for xine-lib.

prodded by jolan@
This commit is contained in:
jakemsr 2006-03-24 22:46:37 +00:00
parent df581e9d78
commit fbbf07790b
15 changed files with 544 additions and 0 deletions

View File

@ -0,0 +1,44 @@
# $OpenBSD: Makefile,v 1.1.1.1 2006/03/24 22:46:37 jakemsr Exp $
COMMENT= "multimedia player"
DISTNAME= xine-ui-0.99.4
CATEGORIES= multimedia
HOMEPAGE= http://xinehq.de/
MAINTAINER= Jacob Meuser <jakemsr@openbsd.org>
# GPL
PERMIT_PACKAGE_CDROM= Yes
PERMIT_PACKAGE_FTP= Yes
PERMIT_DISTFILES_CDROM= Yes
PERMIT_DISTFILES_FTP= Yes
MASTER_SITES= ${MASTER_SITE_SOURCEFORGE:=xine/}
MODULES= gettext
BUILD_DEPENDS= ::devel/pkgconfig
LIB_DEPENDS= xine.14::multimedia/xine-lib \
curl.2::net/curl \
png.4::graphics/png
WANTLIB= ICE SM X11 Xext Xinerama Xtst Xv Xxf86vm \
c crypto freetype m ncurses pthread readline ssl z
USE_X11= Yes
USE_LIBTOOL= Yes
CONFIGURE_STYLE= gnu
CONFIGURE_ARGS+= ${CONFIGURE_SHARED} \
--disable-lirc \
--disable-vdr-keys \
--disable-mbs \
--disable-xft \
--without-aalib \
--without-libcaca
CONFIGURE_ENV= CPPFLAGS="-I${LOCALBASE}/include -I${X11BASE}/include" \
LDFLAGS="-L${LOCALBASE}/lib -L${X11BASE}/lib"
.include <bsd.port.mk>

View File

@ -0,0 +1,4 @@
MD5 (xine-ui-0.99.4.tar.gz) = 90ea1f76747e9788a30a73e7f4a76cf6
RMD160 (xine-ui-0.99.4.tar.gz) = eeead5c6e566ade5505c8fcb924272c74eb4f49a
SHA1 (xine-ui-0.99.4.tar.gz) = b982e5697f183559c216f9243b9410d61b9c58aa
SIZE (xine-ui-0.99.4.tar.gz) = 2544984

View File

@ -0,0 +1,22 @@
$OpenBSD: patch-configure,v 1.1.1.1 2006/03/24 22:46:37 jakemsr Exp $
--- configure.orig Tue Jan 10 02:28:32 2006
+++ configure Tue Jan 10 02:35:06 2006
@@ -29914,8 +29914,8 @@ BUILD_OS="`uname -s -r -m`"
BUILD_DATE="`date \"+%a %d %b %Y %T\"`"
+if false ; then
-
if test "$GCC" = yes; then
echo "$as_me:$LINENO: checking if $CC supports \"-mpreferred-stack-boundary=2\" flags" >&5
echo $ECHO_N "checking if $CC supports \"-mpreferred-stack-boundary=2\" flags... $ECHO_C" >&6
@@ -31110,7 +31110,7 @@ _ACEOF
;;
esac
-
+fi
if test x$no_BSDiconv != "xyes"; then
HAVE_GICONV_TRUE=

View File

@ -0,0 +1,13 @@
$OpenBSD: patch-src_common_utils_c,v 1.1.1.1 2006/03/24 22:46:37 jakemsr Exp $
--- src/common/utils.c.orig Mon Feb 21 04:17:42 2005
+++ src/common/utils.c Mon Feb 21 04:18:02 2005
@@ -34,7 +34,9 @@
#include <sys/stat.h>
#include <sys/wait.h>
#include <sys/utsname.h>
+#ifdef HAVE_ALLOCA_H
#include <alloca.h>
+#endif
#ifdef HAVE_X11
#include <X11/Xlib.h>

View File

@ -0,0 +1,12 @@
$OpenBSD: patch-src_xitk_Imlib-light_utils_c,v 1.1.1.1 2006/03/24 22:46:37 jakemsr Exp $
--- src/xitk/Imlib-light/utils.c.orig Sun Jan 8 22:56:23 2006
+++ src/xitk/Imlib-light/utils.c Sun Jan 8 22:57:57 2006
@@ -154,7 +154,7 @@ Imlib_clone_image(ImlibData * id, ImlibI
s = malloc(strlen(im->filename) + 320);
if (s)
{
- snprintf(s, sizeof(s), "%s_%x_%x", im->filename, (int)time(NULL), (int)rand());
+ snprintf(s, strlen(im->filename) + 320, "%s_%x_%x", im->filename, (int)time(NULL), (int)rand());
im2->filename = malloc(strlen(s) + 1);
if (im2->filename)
strcpy(im2->filename, s);

View File

@ -0,0 +1,14 @@
$OpenBSD: patch-src_xitk_event_c,v 1.1.1.1 2006/03/24 22:46:37 jakemsr Exp $
--- src/xitk/event.c.orig Sat Jul 23 19:40:37 2005
+++ src/xitk/event.c Sat Dec 24 21:41:58 2005
@@ -47,6 +47,10 @@
#define STEP_SIZE 256
+#ifndef PRIi64
+#define PRIi64 "ld"
+#endif
+
/*
* global variables
*/

View File

@ -0,0 +1,182 @@
$OpenBSD: patch-src_xitk_oxine_mediamarks_c,v 1.1.1.1 2006/03/24 22:46:37 jakemsr Exp $
--- src/xitk/oxine/mediamarks.c.orig Tue Feb 15 12:09:28 2005
+++ src/xitk/oxine/mediamarks.c Sun Jan 8 23:06:58 2006
@@ -33,6 +33,9 @@
#include <fcntl.h>
#include <string.h>
#include <libgen.h>
+#include <limits.h>
+#include <stdlib.h>
+#include <errno.h>
#include "common.h"
@@ -88,7 +91,159 @@ struct mm_session_s {
/* private functions */
static int file_is_m3u(const char *mrl);
+/* prototypes */
+ssize_t getdelim (char **, size_t *, int, FILE *);
+ssize_t getline (char **, size_t *, FILE *);
+size_t strnlen (const char *, size_t);
+char * strndup (const char *, size_t);
+
+/* getline() */
+
+#ifndef SIZE_MAX
+# define SIZE_MAX ((size_t) -1)
+#endif
+#ifndef SSIZE_MAX
+# define SSIZE_MAX ((ssize_t) (SIZE_MAX / 2))
+#endif
+
+/* Read up to (and including) a DELIMITER from FP into *LINEPTR (and
+ NUL-terminate it). *LINEPTR is a pointer returned from malloc (or
+ NULL), pointing to *N characters of space. It is realloc'ed as
+ necessary. Returns the number of characters read (not including
+ the null terminator), or -1 on error or EOF. */
+
+ssize_t
+getdelim (char **lineptr, size_t *n, int delimiter, FILE *fp)
+{
+ ssize_t result = 0;
+ size_t cur_len = 0;
+
+ if (lineptr == NULL || n == NULL || fp == NULL)
+ {
+ errno = EINVAL;
+ return -1;
+ }
+
+ flockfile (fp);
+
+ if (*lineptr == NULL || *n == 0)
+ {
+ *n = 120;
+ *lineptr = (char *) malloc (*n);
+ if (*lineptr == NULL)
+ {
+ result = -1;
+ goto unlock_return;
+ }
+ }
+
+ for (;;)
+ {
+ int i;
+
+ i = getc (fp);
+ if (i == EOF)
+ {
+ result = -1;
+ break;
+ }
+
+ /* Make enough space for len+1 (for final NUL) bytes. */
+ if (cur_len + 1 >= *n)
+ {
+ size_t needed_max =
+ SSIZE_MAX < SIZE_MAX ? (size_t) SSIZE_MAX + 1 : SIZE_MAX;
+ size_t needed = 2 * *n + 1; /* Be generous. */
+ char *new_lineptr;
+
+ if (needed_max < needed)
+ needed = needed_max;
+ if (cur_len + 1 >= needed)
+ {
+ result = -1;
+ goto unlock_return;
+ }
+
+ new_lineptr = (char *) realloc (*lineptr, needed);
+ if (new_lineptr == NULL)
+ {
+ result = -1;
+ goto unlock_return;
+ }
+
+ *lineptr = new_lineptr;
+ *n = needed;
+ }
+
+ (*lineptr)[cur_len] = i;
+ cur_len++;
+
+ if (i == delimiter)
+ break;
+ }
+ (*lineptr)[cur_len] = '\0';
+ result = cur_len ? cur_len : result;
+
+ unlock_return:
+ funlockfile (fp);
+ return result;
+}
+
+
+ssize_t
+getline (char **lineptr, size_t *n, FILE *stream)
+{
+ return getdelim (lineptr, n, '\n', stream);
+}
+
+
+#ifndef weak_alias
+# define __strnlen strnlen
+#endif
+
+/* Find the length of STRING, but scan at most MAXLEN characters.
+ If no '\0' terminator is found in that many characters, return MAXLEN. */
+
+size_t
+__strnlen (const char *string, size_t maxlen)
+{
+ const char *end = memchr (string, '\0', maxlen);
+ return end ? (size_t) (end - string) : maxlen;
+}
+#ifdef weak_alias
+weak_alias (__strnlen, strnlen)
+#endif
+
+
+#undef __strndup
+#undef strndup
+
+#ifndef weak_alias
+# define __strndup strndup
+#endif
+
+char *
+__strndup (const char *s, size_t n)
+{
+ size_t len = strnlen (s, n);
+ char *new = malloc (len + 1);
+
+ if (new == NULL)
+ return NULL;
+
+ new[len] = '\0';
+ return memcpy (new, s, len);
+}
+#ifdef weak_alias
+weak_alias (__strndup, strndup)
+#endif
+
+
+
+
+
+
/* body of mediamarks functions */
static void bpush (list_t *list, list_t *item) {
@@ -718,7 +873,7 @@ void mediamarks_cb (void *data) {
snprintf(mmpath,sizeof(mmpath),"%s/.xine/oxine/mediamarks", xine_get_homedir());
if (!read_mediamarks(items, mmpath)) {
lprintf("trying to load system wide mediamarks\n");
- snprintf(mmpath,1024,"%s/mediamarks", XINE_OXINEDIR);
+ snprintf(mmpath,sizeof(mmpath),"%s/mediamarks", XINE_OXINEDIR);
if (read_mediamarks(items, mmpath)) {
bpush(session->backpath, items);
oxine->reentry_data = session;

View File

@ -0,0 +1,12 @@
$OpenBSD: patch-src_xitk_oxine_oxine_c,v 1.1.1.1 2006/03/24 22:46:37 jakemsr Exp $
--- src/xitk/oxine/oxine.c.orig Sun Jan 8 23:07:11 2006
+++ src/xitk/oxine/oxine.c Sun Jan 8 23:08:41 2006
@@ -534,7 +534,7 @@ static void main_menu_init(oxine_t *oxin
snprintf(mmpath,sizeof(mmpath),"%s/.xine/oxine/mainmenu", xine_get_homedir());
if (!read_main_menu(oxine, oxine->main_menu_items, mmpath)) {
lprintf("trying to load system wide mainmenu\n");
- snprintf(mmpath,1024,"%s/mainmenu", XINE_OXINEDIR);
+ snprintf(mmpath,sizeof(mmpath),"%s/mainmenu", XINE_OXINEDIR);
if (read_main_menu(oxine, oxine->main_menu_items, mmpath)) {
/**/
} else {

View File

@ -0,0 +1,13 @@
$OpenBSD: patch-src_xitk_panel_c,v 1.1.1.1 2006/03/24 22:46:37 jakemsr Exp $
--- src/xitk/panel.c.orig Sat Jul 23 19:40:37 2005
+++ src/xitk/panel.c Sat Dec 24 21:41:58 2005
@@ -1564,7 +1564,9 @@ void panel_init (void) {
/* this won't work on linux, freebsd 5.0 */
#ifdef _POSIX_THREAD_PRIORITY_SCHEDULING
pthread_attr_getschedparam(&pth_attrs, &pth_params);
+#ifndef __OpenBSD__
pth_params.sched_priority = sched_get_priority_min(SCHED_OTHER);
+#endif
pthread_attr_setschedparam(&pth_attrs, &pth_params);
#endif

View File

@ -0,0 +1,11 @@
$OpenBSD: patch-src_xitk_xine-remote_c,v 1.1.1.1 2006/03/24 22:46:37 jakemsr Exp $
--- src/xitk/xine-remote.c.orig Sun Jan 8 23:09:07 2006
+++ src/xitk/xine-remote.c Sun Jan 8 23:09:34 2006
@@ -41,6 +41,7 @@
#include <stdio.h>
#include <stdlib.h>
+#include <signal.h>
#if defined(__hpux)
#include <strings.h>

View File

@ -0,0 +1,29 @@
$OpenBSD: patch-src_xitk_xine-toolkit_font_c,v 1.1.1.1 2006/03/24 22:46:37 jakemsr Exp $
--- src/xitk/xine-toolkit/font.c.orig Thu Jan 6 09:46:56 2005
+++ src/xitk/xine-toolkit/font.c Sat Dec 24 23:18:18 2005
@@ -38,6 +38,7 @@
#ifdef HAVE_ICONV
#include <iconv.h>
+#include <localcharset.h>
#endif
#ifdef HAVE_LANGINFO_CODESET
@@ -406,7 +407,7 @@ static int xitk_font_load_one(Display *d
#endif
{
XLOCK(display);
-#ifdef WITH_XFT
+#ifdef WITH_XMB
xtfs->font = XftFontOpenName( display, DefaultScreen(display), xitk_font_core_string_to_xft(font));
#else
xtfs->font = XLoadQueryFont(display, font);
@@ -1262,7 +1263,7 @@ char *xitk_get_system_encoding(void) {
char *lang, *codeset = NULL;
#ifdef HAVE_LANGINFO_CODESET
- codeset = nl_langinfo(CODESET);
+ codeset = locale_charset();
#endif
/*
* guess locale codeset according to shell variables

View File

@ -0,0 +1,13 @@
$OpenBSD: patch-src_xitk_xine-toolkit_label_c,v 1.1.1.1 2006/03/24 22:46:37 jakemsr Exp $
--- src/xitk/xine-toolkit/label.c.orig Mon Feb 21 04:22:48 2005
+++ src/xitk/xine-toolkit/label.c Mon Feb 21 04:23:14 2005
@@ -335,7 +335,9 @@ static void label_setup_label(xitk_widge
#ifdef _POSIX_THREAD_PRIORITY_SCHEDULING
pthread_attr_getschedparam(&pth_attrs, &pth_params);
+#ifndef __OpenBSD__
pth_params.sched_priority = sched_get_priority_min(SCHED_OTHER);
+#endif
pthread_attr_setschedparam(&pth_attrs, &pth_params);
#endif

View File

@ -0,0 +1,13 @@
$OpenBSD: patch-src_xitk_xine-toolkit_tips_c,v 1.1.1.1 2006/03/24 22:46:37 jakemsr Exp $
--- src/xitk/xine-toolkit/tips.c.orig Fri May 20 16:56:44 2005
+++ src/xitk/xine-toolkit/tips.c Sat Dec 24 21:41:58 2005
@@ -273,7 +273,9 @@ void xitk_tips_init(Display *disp) {
#ifdef _POSIX_THREAD_PRIORITY_SCHEDULING
pthread_attr_getschedparam(&pth_attrs, &pth_params);
+#ifndef __OpenBSD__
pth_params.sched_priority = sched_get_priority_min(SCHED_OTHER);
+#endif
pthread_attr_setschedparam(&pth_attrs, &pth_params);
#endif

View File

@ -0,0 +1 @@
xine-ui is a graphical user interface for xine-lib.

View File

@ -0,0 +1,161 @@
@comment $OpenBSD: PLIST,v 1.1.1.1 2006/03/24 22:46:37 jakemsr Exp $
@comment bin/fbxine
bin/xine
bin/xine-bugreport
bin/xine-check
bin/xine-remote
@comment man/de/
@comment man/de/man1/
@comment @man man/de/man1/aaxine.1
@comment @man man/de/man1/xine-bugreport.1
@comment @man man/de/man1/xine-check.1
@comment @man man/de/man1/xine-remote.1
@comment @man man/de/man1/xine.1
@comment man/es/
@comment man/es/man1/
@comment @man man/es/man1/xine.1
@comment man/fr/
@comment man/fr/man1/
@comment @man man/fr/man1/xine.1
@comment @man man/man1/aaxine.1
@man man/man1/xine-bugreport.1
@man man/man1/xine-check.1
@man man/man1/xine-remote.1
@man man/man1/xine.1
@comment man/pl/
@comment man/pl/man1/
@comment @man man/pl/man1/aaxine.1
@comment @man man/pl/man1/xine-remote.1
@comment @man man/pl/man1/xine.1
share/doc/xine-ui/
share/doc/xine-ui/README.config_en
share/doc/xine-ui/README.cs.0.Introduction
share/doc/xine-ui/README.cs.10.Remote_control
share/doc/xine-ui/README.cs.15.MRLs
share/doc/xine-ui/README.cs.5.xine-ui
share/doc/xine-ui/README.en.0.Introduction
share/doc/xine-ui/README.en.10.Remote_control
share/doc/xine-ui/README.en.15.MRLs
share/doc/xine-ui/README.en.20.DVD
share/doc/xine-ui/README.en.25.VideoCD
share/doc/xine-ui/README.en.30.Advanced
share/doc/xine-ui/README.en.32.Window_managers
share/doc/xine-ui/README.en.35.Legal_issues
share/doc/xine-ui/README.en.5.xine-ui
share/doc/xine-ui/README_cs
share/doc/xine-ui/README_de
share/doc/xine-ui/README_en
share/doc/xine-ui/README_es
share/doc/xine-ui/README_fi
share/doc/xine-ui/README_fr
share/doc/xine-ui/README_it
share/doc/xine-ui/README_pl
share/doc/xine-ui/README_uk
share/doc/xitk/
share/doc/xitk/README
share/locale/cs/LC_MESSAGES/xine-ui.mo
share/locale/cs/LC_MESSAGES/xitk.mo
share/locale/de/LC_MESSAGES/xine-ui.mo
share/locale/de/LC_MESSAGES/xitk.mo
share/locale/es/LC_MESSAGES/xine-ui.mo
share/locale/es/LC_MESSAGES/xitk.mo
share/locale/eu/
share/locale/eu/LC_MESSAGES/
share/locale/eu/LC_MESSAGES/xine-ui.mo
share/locale/eu/LC_MESSAGES/xitk.mo
share/locale/fr/LC_MESSAGES/xine-ui.mo
share/locale/fr/LC_MESSAGES/xitk.mo
share/locale/it/LC_MESSAGES/xine-ui.mo
share/locale/it/LC_MESSAGES/xitk.mo
share/locale/ja/LC_MESSAGES/xine-ui.mo
share/locale/ja/LC_MESSAGES/xitk.mo
share/locale/pl/LC_MESSAGES/xine-ui.mo
share/locale/pl/LC_MESSAGES/xitk.mo
share/locale/pt_BR/LC_MESSAGES/xine-ui.mo
share/locale/pt_BR/LC_MESSAGES/xitk.mo
share/locale/ru/LC_MESSAGES/xine-ui.mo
share/locale/ru/LC_MESSAGES/xitk.mo
share/locale/sk/LC_MESSAGES/xine-ui.mo
share/locale/sk/LC_MESSAGES/xitk.mo
share/locale/uk/LC_MESSAGES/xine-ui.mo
share/locale/uk/LC_MESSAGES/xitk.mo
share/pixmaps/
share/pixmaps/xine.xpm
share/pixmaps/xine_16x16.png
share/pixmaps/xine_22x22.png
share/pixmaps/xine_32x32.png
share/pixmaps/xine_48x48.png
share/xine/
share/xine/desktop/
share/xine/desktop/xine.desktop
share/xine/oxine/
share/xine/oxine/mainmenu
share/xine/oxine/mediamarks
share/xine/skins/
share/xine/skins/xine-ui_logo.mpv
share/xine/skins/xine_splash.png
share/xine/skins/xinetic/
share/xine/skins/xinetic/BigArrowDown.png
share/xine/skins/xinetic/BigArrowLeft.png
share/xine/skins/xinetic/BigArrowRight.png
share/xine/skins/xinetic/BigArrowUp.png
share/xine/skins/xinetic/CtlBg.png
share/xine/skins/xinetic/CtlBtn.png
share/xine/skins/xinetic/CtlDismiss.png
share/xine/skins/xinetic/CtlDummy.png
share/xine/skins/xinetic/CtlReset.png
share/xine/skins/xinetic/CtlSave.png
share/xine/skins/xinetic/Letters.png
share/xine/skins/xinetic/Letters2.png
share/xine/skins/xinetic/MainAutoButton.png
share/xine/skins/xinetic/MainBg.png
share/xine/skins/xinetic/MainCam.png
share/xine/skins/xinetic/MainClose.png
share/xine/skins/xinetic/MainDown.png
share/xine/skins/xinetic/MainEject.png
share/xine/skins/xinetic/MainFastB.png
share/xine/skins/xinetic/MainFastF.png
share/xine/skins/xinetic/MainFullScreen.png
share/xine/skins/xinetic/MainMute.png
share/xine/skins/xinetic/MainNav.png
share/xine/skins/xinetic/MainNext.png
share/xine/skins/xinetic/MainPause.png
share/xine/skins/xinetic/MainPlay.png
share/xine/skins/xinetic/MainPower.png
share/xine/skins/xinetic/MainPrev.png
share/xine/skins/xinetic/MainSetup.png
share/xine/skins/xinetic/MainStop.png
share/xine/skins/xinetic/MainUp.png
share/xine/skins/xinetic/MainVolumeBg.png
share/xine/skins/xinetic/MainVolumePad.png
share/xine/skins/xinetic/MrlBg.png
share/xine/skins/xinetic/MrlBtn.png
share/xine/skins/xinetic/MrlDismiss.png
share/xine/skins/xinetic/MrlFlit.png
share/xine/skins/xinetic/MrlSelect.png
share/xine/skins/xinetic/Onglet.png
share/xine/skins/xinetic/PlBg.png
share/xine/skins/xinetic/PlBtn.png
share/xine/skins/xinetic/PlDelete.png
share/xine/skins/xinetic/PlDeleteAll.png
share/xine/skins/xinetic/PlDismiss.png
share/xine/skins/xinetic/PlInputTxt.png
share/xine/skins/xinetic/PlItemBtn.png
share/xine/skins/xinetic/PlMoveDn.png
share/xine/skins/xinetic/PlMoveUp.png
share/xine/skins/xinetic/PlPlay.png
share/xine/skins/xinetic/PlSlidHBg.png
share/xine/skins/xinetic/SkItemBtn.png
share/xine/skins/xinetic/SkSlidBG.png
share/xine/skins/xinetic/SkSlidHBg.png
share/xine/skins/xinetic/SkSlidHPad.png
share/xine/skins/xinetic/SlidHPad.png
share/xine/skins/xinetic/SliderHBg.png
share/xine/skins/xinetic/SliderHPad.png
share/xine/skins/xinetic/SliderVBg.png
share/xine/skins/xinetic/SliderVPad.png
share/xine/skins/xinetic/SmallArrowDown.png
share/xine/skins/xinetic/SmallArrowUp.png
share/xine/skins/xinetic/skinconfig
share/xine/visuals/
share/xine/visuals/default.avi