the following diff enables win32 codecs support for videolan but it
doesn't work:

vlc:/usr/local/lib/vlc/codec/libdmo_plugin.so: undefined symbol 'i386_set_ldt'
vlc:/usr/local/lib/vlc/codec/libquicktime_plugin.so: undefined symbol 
'i386_set_ldt'

-li386 is in LIBS for CONFIGURE_ENV and the main binary is linked to the
i386 library but it obviously still doesn't work.  i also tried
explicitly linking those two plugins to the i386 library but that
doesn't work either.

any ideas?


Index: Makefile
===================================================================
RCS file: /cvs/ports/x11/vlc/Makefile,v
retrieving revision 1.31
diff -u -r1.31 Makefile
--- Makefile    22 Dec 2005 16:36:17 -0000      1.31
+++ Makefile    23 Dec 2005 03:24:10 -0000
@@ -5,7 +5,7 @@
 COMMENT=       "videolan client; multimedia player"
 V=             0.8.4a
 DISTNAME=      vlc-${V}
-PKGNAME=       ${DISTNAME}p2
+PKGNAME=       ${DISTNAME}p3
 CATEGORIES=    x11
 MASTER_SITES=  http://download.videolan.org/pub/videolan/vlc/${V}/
 
@@ -46,7 +46,6 @@
 CONFIGURE_STYLE=autoconf
 AUTOCONF_VERSION=2.59
 CONFIGURE_ENV+=        LDFLAGS="-L${LOCALBASE}/lib -L${X11BASE}/lib" \
-               LIBS="-lpostproc -lmp3lame -la52 -lvorbisenc -lvorbis -logg 
-lossaudio -lm -lz -pthread" \
                CPPFLAGS="-I${WRKSRC}/include -I${LOCALBASE}/include 
-I${LOCALBASE}/include/libpng"
 
 CONFIGURE_ARGS+=--disable-pth \
@@ -131,8 +130,7 @@
                --disable-daap \
                --disable-pda \
                --disable-wxwidgets \
-               --disable-xosd \
-               --disable-loader
+               --disable-xosd
 
 CONFIGURE_ARGS+=--enable-ncurses \
                --enable-sout \
@@ -161,18 +159,28 @@
 FLAVORS=       no_dvd
 FLAVOR?=
 
+.if ${MACHINE_ARCH} == "amd64" || ${MACHINE_ARCH} == "i386"
+PKG_ARGS+=-Dx86opt=1
+.else
+PKG_ARGS+=-Dx86opt=0
+.endif
+
+.if ${MACHINE_ARCH} == "i386"
+CONFIGURE_ARGS+=--enable-loader
+CONFIGURE_ENV+=LIBS="-lpostproc -lmp3lame -la52 -lvorbisenc -lvorbis -logg 
-lossaudio -lm -lz -pthread -li386"
+PKG_ARGS+=-Dwin32=1
+.else
+CONFIGURE_ARGS+=--disable-loader
+CONFIGURE_ENV+=LIBS="-lpostproc -lmp3lame -la52 -lvorbisenc -lvorbis -logg 
-lossaudio -lm -lz -pthread"
+PKG_ARGS+=-Dwin32=0
+.endif
+
 .if ${MACHINE_ARCH} == "powerpc"
 CONFIGURE_ARGS+=--enable-altivec
 PKG_ARGS+=-Daltivec=1
 .else
 CONFIGURE_ARGS+=--disable-altivec
 PKG_ARGS+=-Daltivec=0
-.endif
-
-.if ${MACHINE_ARCH} == "amd64" || ${MACHINE_ARCH} == "i386"
-PKG_ARGS+=-Dx86opt=1
-.else
-PKG_ARGS+=-Dx86opt=0
 .endif
 
 # XXX video window initialization fails without this
Index: pkg/PFRAG.win32
===================================================================
RCS file: pkg/PFRAG.win32
diff -N pkg/PFRAG.win32
--- /dev/null   1 Jan 1970 00:00:00 -0000
+++ pkg/PFRAG.win32     23 Dec 2005 03:24:11 -0000
@@ -0,0 +1,3 @@
[EMAIL PROTECTED] $OpenBSD$
+lib/vlc/codec/libdmo_plugin.so
+lib/vlc/codec/libquicktime_plugin.so
Index: pkg/PLIST
===================================================================
RCS file: /cvs/ports/x11/vlc/pkg/PLIST,v
retrieving revision 1.17
diff -u -r1.17 PLIST
--- pkg/PLIST   22 Dec 2005 04:45:38 -0000      1.17
+++ pkg/PLIST   23 Dec 2005 03:24:11 -0000
@@ -1,6 +1,7 @@
 @comment $OpenBSD: PLIST,v 1.17 2005/12/22 04:45:38 jolan Exp $
 %%SHARED%%
 %%altivec%%
+%%win32%%
 %%x86opt%%
 bin/vlc
 bin/vlc-config

Reply via email to