diff options
-rw-r--r-- | Makefile | 12 |
1 files changed, 11 insertions, 1 deletions
@@ -4,7 +4,7 @@ # See the main source file 'xineliboutput.c' for copyright information and # how to reach the author. # -# $Id: Makefile,v 1.34 2008-04-02 20:18:11 phintuka Exp $ +# $Id: Makefile,v 1.35 2008-04-10 14:30:32 phintuka Exp $ # # The official name of this plugin. @@ -22,6 +22,7 @@ _default: all XINELIBOUTPUT_FB = 0 XINELIBOUTPUT_X11 = 0 HAVE_XRENDER = 0 +HAVE_XDPMS = 0 HAVE_EXTRACTOR_H = 0 APPLE_DARWIN = 0 XINELIBOUTPUT_XINEPLUGIN = 0 @@ -47,6 +48,11 @@ ifeq ($(XINELIBOUTPUT_XINEPLUGIN), 1) $(warning XRender extension not detected ! HUD OSD disabled. ) $(warning ********************************************************) endif + ifeq ($(shell (((echo "\#include <X11/Xlib.h>";echo "\#include <X11/extensions/dpms.h>";echo "int main(int c,char* v[]) {return 0;}") > testx.c && gcc -c testx.c -o testx.o >/dev/null 2>&1) && echo "1") || echo "0" ; rm -f testx.* >/dev/null), 1) + HAVE_XDPMS = 1 + else + $(warning XDPMS extension not detected. ) + endif else $(warning ********************************************************) $(warning X11 not detected ! X11 frontends will not be compiled. ) @@ -70,6 +76,7 @@ endif USE_ICONV = 1 #XINELIBOUTPUT_X11 = 1 #HAVE_XRENDER = 1 +#HAVE_XDPMS = 1 #HAVE_EXTRACTOR_H = 1 #XINELIBOUTPUT_FB = 1 #XINELIBOUTPUT_XINEPLUGIN = 1 @@ -247,6 +254,9 @@ DEFINES += -D_GNU_SOURCE -DPLUGIN_NAME_I18N='"$(PLUGIN)"' \ ifeq ($(HAVE_XRENDER), 1) DEFINES += -DHAVE_XRENDER=1 endif +ifeq ($(HAVE_XDPMS), 1) + DEFINES += -DHAVE_XDPMS=1 +endif ifeq ($(HAVE_EXTRACTOR_H), 1) DEFINES += -DHAVE_EXTRACTOR_H=1 INCLUDES += $(shell pkg-config libextractor --cflags-only-I) |