pkgsrc-Users archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

vlc on Solaris 10 sparc


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 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 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

--- 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
+.if ${OPSYS} == "SunOS"
+CFLAGS+=                -D_XPG4_2 -D__EXTENSIONS__
 BUILDLINK_API_DEPENDS.zlib+=           zlib>=1.2.0
 BUILDLINK_API_DEPENDS.vcdimager+=      vcdimager>=0.7.20nb1
@@ -122,7 +126,6 @@
 .include "../../x11/libXv/"
 .include "../../x11/libXxf86vm/"
 .include "../../x11/libXdamage/"
-.include "../../x11/libdrm/"
 .include "../../mk/"
 .include "../../mk/"
---     Sa Jul 12 12:04:40 2008
+++  Sa Jul 12 18:45:14 2008
@@ -1,11 +1,19 @@
 # $NetBSD:,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/"
+.if !empty(PKG_OPTIONS:Mopengl)
+.include "../../x11/libdrm/"
+CONFIGURE_ARGS+=       --disable-opengl
+PLIST_SUBST+=          COND_OPENGL="@comment "
 .if !empty(PKG_OPTIONS:Mskins)
 CONFIGURE_ARGS+=       --enable-skins2

--- 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
 #if defined (AF_INET6) && !defined (IPV6_V6ONLY)
 # warning Uho, your IPv6 support is broken and has been disabled. Fix your C 
 # undef AF_INET6

Home | Main Index | Thread Index | Old Index