Commit 648a16ca authored by Jean-Paul Saman's avatar Jean-Paul Saman

Add a DirectFB module. Patch by: Iuri Diniz <iuri_at_digizap_dot_com_dot_br>...

Add a DirectFB module. Patch by: Iuri Diniz <iuri_at_digizap_dot_com_dot_br> applied with some coding style cleanup and autoconf fixes.
parent f9350ddf
...@@ -3717,6 +3717,32 @@ then ...@@ -3717,6 +3717,32 @@ then
VLC_ADD_LDFLAGS([svgalib],[-lvgagl -lvga]) VLC_ADD_LDFLAGS([svgalib],[-lvgagl -lvga])
fi fi
dnl
dnl DirectFB module
dnl
AC_ARG_ENABLE(directfb,
[ --enable-directfb DirectFB support (default disabled)])
if test "${enable_directfb}" = "yes"
then
AC_CHECK_HEADER(directfb.h, have_directfb="true",have_directfb="false")
if test "${have_directfb}"= "true" -a "${with_directfb}" = "no"
then
VLC_ADD_PLUGINS([directfb])
VLC_ADD_LDFLAGS([directfb],[-ldirectfb -lfusion -ldirect -lpthread -lz -ldl])
VLC_ADD_CPPFLAGS([directfb],[-I/usr/include/directfb -D_REENTRANT])
else
AC_ARG_WITH(directfb,
[ --with-directfb=PATH path to directfb],
[ if test "${with_directfb}" != "no" -a -n "${with_directfb}"
then
VLC_ADD_PLUGINS([directfb])
VLC_ADD_CPPFLAGS([directfb],[-I${with_directfb}/include -D_REENTRANT])
VLC_ADD_LDFLAGS([directfb],[-L${with_directfb}/lib])
fi ],
[ AC_MSG_ERROR([cannot find directfb headers]) ])
fi
fi
dnl dnl
dnl GGI module dnl GGI module
dnl dnl
......
...@@ -12,3 +12,4 @@ SOURCES_hd1000v = hd1000v.cpp ...@@ -12,3 +12,4 @@ SOURCES_hd1000v = hd1000v.cpp
SOURCES_snapshot = snapshot.c SOURCES_snapshot = snapshot.c
SOURCES_opengl = opengl.c SOURCES_opengl = opengl.c
SOURCES_image = image.c SOURCES_image = image.c
SOURCES_directfb = directfb.c
This diff is collapsed.
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment