pkgsrc-Users archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
vlc on Solaris 10 sparc
Hi,
I tried to get multimedia/vlc form pkgsrc-2008Q1 running on Solaris
10/Sparc. I needed some fixes to get it run:
A small patch for network/rootwrap.c and a CFLAG according to
http://mailman.videolan.org/pipermail/vlc-devel/2006-September/026033.html
The original Post on the vlc Mailinglist was about vlc-0.8.5 on
Solaris 8, but there was not standing anything about why they did not
put it in newer versions of vlc.
Remove the dependency to x11/libdrm and disabeld opengl support. DRI
is not working on Solaris 10 http://dri.freedesktop.org/wiki/Solaris
and without DRI I dont't get a GUI when opengl is enabled. For this
I put a new option named opengl in the makefile.
When I set now the pakage option -opengl it compiles and seem to work
Daniel
--- Makefile.orig Sa Jul 12 12:05:13 2008
+++ Makefile Sa Jul 12 12:06:16 2008
@@ -26,6 +26,10 @@
CONFIGURE_ARGS+= --disable-vcd
.endif
+.if ${OPSYS} == "SunOS"
+CFLAGS+= -D_XPG4_2 -D__EXTENSIONS__
+.endif
+
BUILDLINK_API_DEPENDS.zlib+= zlib>=1.2.0
BUILDLINK_API_DEPENDS.vcdimager+= vcdimager>=0.7.20nb1
@@ -122,7 +126,6 @@
.include "../../x11/libXv/buildlink3.mk"
.include "../../x11/libXxf86vm/buildlink3.mk"
.include "../../x11/libXdamage/buildlink3.mk"
-.include "../../x11/libdrm/buildlink3.mk"
.include "../../mk/oss.buildlink3.mk"
.include "../../mk/pthread.buildlink3.mk"
--- options.mk.orig Sa Jul 12 12:04:40 2008
+++ options.mk Sa Jul 12 18:45:14 2008
@@ -1,11 +1,19 @@
# $NetBSD: options.mk,v 1.5 2008/03/08 05:19:57 kefren Exp $
PKG_OPTIONS_VAR= PKG_OPTIONS.vlc
-PKG_SUPPORTED_OPTIONS= skins wxwidgets faad arts
-PKG_SUGGESTED_OPTIONS= wxwidgets faad
+PKG_SUPPORTED_OPTIONS= skins wxwidgets faad arts opengl
+PKG_SUGGESTED_OPTIONS= wxwidgets faad opengl
.include "../../mk/bsd.options.mk"
+.if !empty(PKG_OPTIONS:Mopengl)
+.include "../../x11/libdrm/buildlink3.mk"
+PLIST_SUBST+= COND_OPENGL=
+.else
+CONFIGURE_ARGS+= --disable-opengl
+PLIST_SUBST+= COND_OPENGL="@comment "
+.endif
+
.if !empty(PKG_OPTIONS:Mskins)
CONFIGURE_ARGS+= --enable-skins2
PLIST_SUBST+= COND_SKINS=
$NetBSD$
--- src/network/rootwrap.c.orig 2008-07-11 19:00:36.795652533 +0200
+++ src/network/rootwrap.c
@@ -52,6 +52,10 @@
#include <netinet/in.h>
#include <pthread.h>
+#ifndef AF_LOCAL
+#define AF_LOCAL AF_UNIX
+#endif
+
#if defined (AF_INET6) && !defined (IPV6_V6ONLY)
# warning Uho, your IPv6 support is broken and has been disabled. Fix your C
library.
# undef AF_INET6
Home |
Main Index |
Thread Index |
Old Index