Installscript-make.conf

Aus VDR Wiki
(Unterschied zwischen Versionen)
Wechseln zu: Navigation, Suche
K (make.conf)
(make.conf: M)
 
(33 dazwischenliegende Versionen von 17 Benutzern werden nicht angezeigt)
Zeile 2: Zeile 2:
 
Makefile ist identisch mit der [[Make.config.template]] aus den VDR Sourcen, siehe: [[VDR_Installation#Kompilieren|VDR Installation]].
 
Makefile ist identisch mit der [[Make.config.template]] aus den VDR Sourcen, siehe: [[VDR_Installation#Kompilieren|VDR Installation]].
  
Lediglich die Optionen der Plugins werden aus den Modulen in diese Datei übertragen.
+
Lediglich die Optionen der Plugins werden aus den Modulen in '''Make-<plugin>.config''' übertragen.
  
 
==make.conf==
 
==make.conf==
 +
{{Box Datei|../setup/config/make.conf|
 
<pre>
 
<pre>
 
# ----------------------------------------------------------------------------
 
# ----------------------------------------------------------------------------
Zeile 24: Zeile 25:
 
#CFLAGS  = -O2
 
#CFLAGS  = -O2
 
#CXX      = g++
 
#CXX      = g++
#CXXFLAGS = -g -O2 -Wall -Woverloaded-virtual
+
#CXXFLAGS = -fPIC -g -O2 -Wall -Woverloaded-virtual -Wno-parentheses
 +
#CXXFLAGS = -fPIC -g -O2 -Wall -Woverloaded-virtual -Wno-parentheses -D__user=
  
# ----------------------------------------------------------------------------
+
ifeq (exists, $(shell test -x /usr/bin/crux -o -d /usr/portage && echo exists))
# The directory environment
+
CXXFLAGS = -fPIC -g -O2 -Wall -Woverloaded-virtual -Wno-parentheses -D__user=
# ----------------------------------------------------------------------------
+
 
+
PREFIX  = /usr/local
+
SRCDIR  = $(PREFIX)/src
+
VDRDIR  = $(SRCDIR)/VDR
+
FFMDIR  = $(SRCDIR)/ffmpeg
+
 
+
ifeq (exists, $(shell test -d /usr/src/dvb-kernel && echo exists))
+
DVBDIR  = /usr/src/dvb-kernel
+
else
+
DVBDIR  = $(SRCDIR)/DVB
+
 
endif
 
endif
  
export PREFIX
+
ifdef PLUGIN
 
+
CFLAGS  += -fPIC
#MANDIR  = /usr/local/man
+
CXXFLAGS += -fPIC
#BINDIR  = /usr/local/bin
+
VDR_APIVERSION = $(shell sed -ne '/define APIVERSION/ { s/^.*"\(.*\)".*$$/\1/; p }' $(VDRDIR)/config.h)
 
+
ifeq (exists, $(shell test $(VDR_APIVERSION) \> 1.6.0 && echo exists))
#PLUGINDIR= ./PLUGINS
+
DEFINES += -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE
#PLUGINLIBDIR= $(PLUGINDIR)/lib
+
#VIDEODIR = /video
+
 
+
# ----------------------------------------------------------------------------
+
# Includes and Defines (add further entries here)
+
# ----------------------------------------------------------------------------
+
 
+
DEFINES += -D_GNU_SOURCE
+
 
+
# ----------------------------------------------------------------------------
+
# If your video directory will be on a VFAT partition
+
# ----------------------------------------------------------------------------
+
 
+
VFAT=1
+
 
+
# ----------------------------------------------------------------------------
+
# Enable Debuging
+
# ----------------------------------------------------------------------------
+
 
+
#DEBUG=1
+
#DBG=1
+
</pre>
+
 
+
Ab hier wird ''angehangen'', sollte man anpassen (logisch, deshalb die Erweiterung '''conf''').
+
 
+
<pre>
+
# ----------------------------------------------------------------------------
+
# burn
+
# ----------------------------------------------------------------------------
+
 
+
# use DEV as DVD Writer (= -D --dvd=DEV in config/plugins/burn).
+
#DDVDDEV=/dev/dvd
+
 
+
# use DIR to store ISO images (= -i DIR  --iso=DIR in config/plugins/burn).
+
#ISODIR=/video
+
 
+
# ----------------------------------------------------------------------------
+
# console
+
# ----------------------------------------------------------------------------
+
 
+
# This program will be used to realize a console.
+
# Be carefull! If your VDR runs as root, then every.
+
# user can kill your machine if you don't protect.
+
# the consoles.
+
# So the default is /bin/login.
+
#CONSOLE_USE_SHELL_INSTEAD_LOGIN=1
+
 
+
# ----------------------------------------------------------------------------
+
# epgsearch
+
# ----------------------------------------------------------------------------
+
 
+
# comment this out if you want to use Perl compatible regular expressions (PCRE).
+
ifeq (exists, $(shell test -e $(PREFIX)/include/pcre.h -o -e /usr/include/pcre.h && echo exists))
+
HAVE_PCREPOSIX=1
+
 
endif
 
endif
 
# ----------------------------------------------------------------------------
 
# femon
 
# ----------------------------------------------------------------------------
 
 
# added preliminary NTSC support.
 
#NTSC_SYSTEM=1
 
 
# ----------------------------------------------------------------------------
 
# graphtft
 
# ----------------------------------------------------------------------------
 
 
# Install imlib2, set path below and uncomment the lines.
 
# to enable support for dvb- and fb-devices.
 
HAVE_IMLIB=1
 
 
# Install directFB and libsoftmpeg to use an directFB-output-device.
 
# If you wont use libsoftmpeg, in future(dosent work at the moment) ffmpeg will be used for PbP.
 
# You can use only directFB without ffmpeg, imlib and libsoftmpeg, but without Pbp.
 
#HAVE_DFB=1
 
#HAVE_SOFTMPEG=1
 
 
# USE FASTMEMCPY WITH CPUACCEL.
 
HAVE_FAST_MEMCPY=1
 
 
# FIX FOR USING PVR350-FRAMEBUFFER.
 
#HAVE_PVRFB=1
 
 
# ----------------------------------------------------------------------------
 
# mediamvp
 
# ----------------------------------------------------------------------------
 
 
# Uncomment these if you have the appropriate libraries.
 
HAVE_LIBJPEG=1
 
#HAVE_LIBID3TAG=1
 
 
ifeq (exists, $(shell test `which xml2-config 2>/dev/null` && echo exists))
 
HAVE_LIBXML2=1
 
 
endif
 
endif
 
ifeq (exists, $(shell test `which Magick-config 2>/dev/null` && echo exists))
 
HAVE_MAGICK=1
 
MAGICK_VERSION=$(shell Magick-config --version|cut -d. -f1)
 
endif
 
 
# VDR Plugin Only, Uncomment this if you only have a single device in your vdr machine.
 
#SINGLE_DEVICE=1
 
 
# If you're having problems with CAMs and switching channels uncomment, this line.
 
#CAM_CHANGE_HACK=1
 
  
 
# ----------------------------------------------------------------------------
 
# ----------------------------------------------------------------------------
# mp3
+
# The directory environment
 
# ----------------------------------------------------------------------------
 
# ----------------------------------------------------------------------------
  
# uncomment the following line, if you want OSS sound output.
+
PREFIX = /usr/local
#WITH_OSS_OUTPUT=1
+
SRCDIR = $(PREFIX)/src
 +
VDRDIR = $(SRCDIR)/VDR
 +
PKG_CONFIG_PATH = $(PREFIX)/lib/pkgconfig:/usr/lib/pkgconfig
  
# if you dont want one of the plugins.
+
ifeq (exists, $(shell test -d $(SRCDIR)/DVB && echo exists))
#WITHOUT_MP3=1
+
DVBDIR = $(SRCDIR)/DVB
#WITHOUT_MPLAYER=1
+
else
 
+
DVBDIR = /usr/src/linux
# if you dont have libsndfile installed.
+
ifeq (notexists, $(shell test -z `which sndfile-info 2>/dev/null` && echo notexists))
+
WITHOUT_LIBSNDFILE=1
+
 
endif
 
endif
  
# uncomment the following line, if you dont have libvorbisfile installed.
+
export PREFIX VDRDIR DVBDIR PKG_CONFIG_PATH
ifeq (notexists, $(shell test ! -e $(PREFIX)/lib/libvorbisfile.a -a ! -e /usr/lib/libvorbisfile.a && echo notexists))
+
WITHOUT_LIBVORBISFILE=1
+
endif
+
  
# see HISTORY.
+
#MANDIR = $(PREFIX)/man
#BROKEN_PCM=1
+
#BINDIR = $(PREFIX)/bin
 +
# set to ./locale to run VDR from within its source directory:
 +
LOCDIR  = $(VDRDIR)/locale
  
# ----------------------------------------------------------------------------
+
#PLUGINDIR = $(VDRDIR)/PLUGINS
# muggle
+
#PLUGINLIBDIR = $(PLUGINDIR)/lib
# ----------------------------------------------------------------------------
+
VIDEODIR = $(shell echo $${VIDEODIR:-/video0})
 
+
# optionally libvorbis and libvorbisfile to replay OGG Vorbis files.
+
ifeq (exists, $(shell test -e $(PREFIX)/lib/libvorbisfile.a -o -e /usr/lib/libvorbisfile.a && echo exists))
+
HAVE_VORBISFILE=1
+
endif
+
 
+
# optionally libFLAC++ to replay FLAC files.
+
ifeq (exists, $(shell test `which flac 2>/dev/null` && echo exists))
+
HAVE_FLAC=1
+
endif
+
 
+
# if you do not want to compile in code for embedded sql.
+
HAVE_ONLY_SERVER=1
+
  
 
# ----------------------------------------------------------------------------
 
# ----------------------------------------------------------------------------
# pvr350
+
# Includes and Defines (add further entries here)
 
# ----------------------------------------------------------------------------
 
# ----------------------------------------------------------------------------
  
# enable to fully support yaepg plugin.
+
DEFINES += -D_GNU_SOURCE
ifeq (exists, $(shell test -f $(VDRDIR)/fontyaepg.c && echo exists))
+
ifeq (exists, $(shell test -d $(SRCDIR)/DVB && echo exists))
SET_VIDEO_WINDOW=1
+
INCLUDES += -I$(DVBDIR)/include/dvb
 +
else
 +
INCLUDES += -I$(DVBDIR)/include
 
endif
 
endif
  
 
# ----------------------------------------------------------------------------
 
# ----------------------------------------------------------------------------
# radio
+
# Define if you want vdr to not run as root
 
# ----------------------------------------------------------------------------
 
# ----------------------------------------------------------------------------
  
# If your Primary Device doesn't support Stillpicture, you can deactivate it here.
+
#VDR_USER = vdr
USE_STILLPICTURE=1
+
  
 
# ----------------------------------------------------------------------------
 
# ----------------------------------------------------------------------------
# softdevice
+
# The remote control
 
# ----------------------------------------------------------------------------
 
# ----------------------------------------------------------------------------
  
# XV support by Stefan Lucke.
+
LIRC_DEVICE = /dev/lircd
ifeq (exists, $(shell test `which xf86version 2>/dev/null` && echo exists))
+
RCU_DEVICE = /dev/ttyS1
XV_SUPPORT=1
+
# Set this if you want to be able to toggle suspend mode by keyboard (XV only).
+
SUSPEND_BY_KEY=1
+
endif
+
 
+
# DFB is very experimental (works only with my matrox G200, comments are welcome).
+
ifeq (exists, $(shell test `which directfb-config dfb++-config 2>/dev/null | wc -l` -eq 2 && echo exists))
+
DFB_SUPPORT=1
+
endif
+
 
+
# FB is unaccellerated and should work with any FB with 16bit color depth.
+
FB_SUPPORT=1
+
 
+
# Vidix support by Vadim Catana.
+
ifeq (exists, $(shell test -e $(PREFIX)/include/vidix/vidixlib.h -o -e /usr/include/vidix/vidixlib.h && echo exists))
+
VIDIX_SUPPORT=1
+
# installation directory
+
VIDIX_DIR = $(PREFIX)
+
endif
+
 
+
# Enable the usage from some deinterlacing pp-filters of libavcodec.
+
ifeq (exists, $(shell test -e $(PREFIX)/include/postproc/postprocess.h -o -e /usr/include/postproc/postprocess.h && echo exists))
+
PP_LIBAVCODEC=1
+
endif
+
 
+
# Set this if you want to use DPMS.
+
LIBXDPMS_SUPPORT=1
+
 
+
# if you want output methods build as a single lib comment the following line.
+
#USE_SUBPLUGINS=1
+
  
 
# ----------------------------------------------------------------------------
 
# ----------------------------------------------------------------------------
# text2skin
+
# If your video directory will be on a VFAT partition
 
# ----------------------------------------------------------------------------
 
# ----------------------------------------------------------------------------
  
# Uncomment these if you have the appropriate libraries.
+
#VFAT = 1
HAVE_IMAGEMAGICK=1
+
#HAVE_IMLIB2=1
+
 
+
# comment this out if you don't want to use FreeType font rendering.
+
ifeq (exists, $(shell test `which freetype-config 2>/dev/null` && echo exists))
+
HAVE_FREETYPE=1
+
endif
+
  
 
# ----------------------------------------------------------------------------
 
# ----------------------------------------------------------------------------
# vdrrip
+
# Enable Debuging
 
# ----------------------------------------------------------------------------
 
# ----------------------------------------------------------------------------
  
# uncomment this line, if you want to encode DVD's.
+
#DEBUG = 1
VDRRIP_DVD=1
+
#DBG = 1
  
 
# ----------------------------------------------------------------------------
 
# ----------------------------------------------------------------------------
# xine
+
# Plugin(s)
 
# ----------------------------------------------------------------------------
 
# ----------------------------------------------------------------------------
  
# enable to fully support yaepg plugin.
+
INCLUDEFILE = $(shell echo $$PWD | sed 's,.*/,,;s,-.*,,')
ifeq (exists, $(shell test -f $(VDRDIR)/fontyaepg.c && echo exists))
+
ifeq (exists, $(shell test -e $(VDRDIR)/Make-$(INCLUDEFILE).config && echo exists))
VDR_XINE_SET_VIDEO_WINDOW=1
+
-include $(VDRDIR)/Make-$(INCLUDEFILE).config
 
endif
 
endif
 +
</pre>
 +
}}
  
# where are these utilities for image grabbing? (default: anywhere on your PATH)
 
ifeq (exists, $(shell test `which y4mscaler 2>/dev/null` && echo exists))
 
VDR_XINE_Y4MSCALER = $(shell which y4mscaler)
 
endif
 
ifeq (exists, $(shell test `which y4mtoppm 2>/dev/null` && echo exists))
 
VDR_XINE_Y4MTOPPM = $(shell which y4mtoppm)
 
endif
 
ifeq (exists, $(shell test `which pnmcut 2>/dev/null` && echo exists))
 
VDR_XINE_PNMCUT = $(shell which pnmcut)
 
endif
 
ifeq (exists, $(shell test `which pnmtojpeg 2>/dev/null` && echo exists))
 
VDR_XINE_PNMTOJPEG = $(shell which pnmtojpeg)
 
endif
 
</pre>
 
 
[[Kategorie:Installscript]]
 
[[Kategorie:Installscript]]

Aktuelle Version vom 6. Februar 2009, 20:39 Uhr

[Bearbeiten] Beschreibung

Makefile ist identisch mit der Make.config.template aus den VDR Sourcen, siehe: VDR Installation.

Lediglich die Optionen der Plugins werden aus den Modulen in Make-<plugin>.config übertragen.

[Bearbeiten] make.conf

Datei
../setup/config/make.conf
# ----------------------------------------------------------------------------
# User defined Makefile options for the Video Disk Recorder
# ----------------------------------------------------------------------------
#
# Change the parameters as necessary.
#
# See the main source file 'vdr.c' for copyright information and
# how to reach the author.
#
# $Id: Make.config.template 1.3 2003/08/09 11:03:25 kls Exp $

# ----------------------------------------------------------------------------
# The C compiler and options
# ----------------------------------------------------------------------------

#CC       = gcc
#CFLAGS   = -O2
#CXX      = g++
#CXXFLAGS = -fPIC -g -O2 -Wall -Woverloaded-virtual -Wno-parentheses
#CXXFLAGS = -fPIC -g -O2 -Wall -Woverloaded-virtual -Wno-parentheses -D__user=

ifeq (exists, $(shell test -x /usr/bin/crux -o -d /usr/portage && echo exists))
CXXFLAGS = -fPIC -g -O2 -Wall -Woverloaded-virtual -Wno-parentheses -D__user=
endif

ifdef PLUGIN
CFLAGS   += -fPIC
CXXFLAGS += -fPIC
VDR_APIVERSION = $(shell sed -ne '/define APIVERSION/ { s/^.*"\(.*\)".*$$/\1/; p }' $(VDRDIR)/config.h)
ifeq (exists, $(shell test $(VDR_APIVERSION) \> 1.6.0 && echo exists))
DEFINES += -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE
endif
endif

# ----------------------------------------------------------------------------
# The directory environment
# ----------------------------------------------------------------------------

PREFIX = /usr/local
SRCDIR = $(PREFIX)/src
VDRDIR = $(SRCDIR)/VDR
PKG_CONFIG_PATH = $(PREFIX)/lib/pkgconfig:/usr/lib/pkgconfig

ifeq (exists, $(shell test -d $(SRCDIR)/DVB && echo exists))
DVBDIR = $(SRCDIR)/DVB
else
DVBDIR = /usr/src/linux
endif

export PREFIX VDRDIR DVBDIR PKG_CONFIG_PATH

#MANDIR = $(PREFIX)/man
#BINDIR = $(PREFIX)/bin
# set to ./locale to run VDR from within its source directory:
LOCDIR  = $(VDRDIR)/locale

#PLUGINDIR = $(VDRDIR)/PLUGINS
#PLUGINLIBDIR = $(PLUGINDIR)/lib
VIDEODIR = $(shell echo $${VIDEODIR:-/video0})

# ----------------------------------------------------------------------------
# Includes and Defines (add further entries here)
# ----------------------------------------------------------------------------

DEFINES += -D_GNU_SOURCE
ifeq (exists, $(shell test -d $(SRCDIR)/DVB && echo exists))
INCLUDES += -I$(DVBDIR)/include/dvb
else
INCLUDES += -I$(DVBDIR)/include
endif

# ----------------------------------------------------------------------------
# Define if you want vdr to not run as root
# ----------------------------------------------------------------------------

#VDR_USER = vdr

# ----------------------------------------------------------------------------
# The remote control
# ----------------------------------------------------------------------------

LIRC_DEVICE = /dev/lircd
RCU_DEVICE = /dev/ttyS1

# ----------------------------------------------------------------------------
# If your video directory will be on a VFAT partition
# ----------------------------------------------------------------------------

#VFAT = 1

# ----------------------------------------------------------------------------
# Enable Debuging
# ----------------------------------------------------------------------------

#DEBUG = 1
#DBG = 1

# ----------------------------------------------------------------------------
# Plugin(s)
# ----------------------------------------------------------------------------

INCLUDEFILE = $(shell echo $$PWD | sed 's,.*/,,;s,-.*,,')
ifeq (exists, $(shell test -e $(VDRDIR)/Make-$(INCLUDEFILE).config && echo exists))
-include $(VDRDIR)/Make-$(INCLUDEFILE).config
endif