Installscript-make.conf
Aus VDR Wiki
(Unterschied zwischen Versionen)
(→Anhang: M) |
(→make.conf: M) |
||
(14 dazwischenliegende Versionen von 6 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 | + | Lediglich die Optionen der Plugins werden aus den Modulen in '''Make-<plugin>.config''' übertragen. |
==make.conf== | ==make.conf== | ||
Zeile 25: | Zeile 25: | ||
#CFLAGS = -O2 | #CFLAGS = -O2 | ||
#CXX = g++ | #CXX = g++ | ||
− | #CXXFLAGS = -fPIC -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 && echo exists)) | + | ifeq (exists, $(shell test -x /usr/bin/crux -o -d /usr/portage && echo exists)) |
− | CXXFLAGS = -fPIC -g -O2 -Wall -Woverloaded-virtual -D__user= | + | 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 | endif | ||
Zeile 38: | Zeile 48: | ||
SRCDIR = $(PREFIX)/src | SRCDIR = $(PREFIX)/src | ||
VDRDIR = $(SRCDIR)/VDR | VDRDIR = $(SRCDIR)/VDR | ||
+ | PKG_CONFIG_PATH = $(PREFIX)/lib/pkgconfig:/usr/lib/pkgconfig | ||
− | ifeq (exists, $(shell test -d / | + | ifeq (exists, $(shell test -d $(SRCDIR)/DVB && echo exists)) |
− | + | ||
− | + | ||
DVBDIR = $(SRCDIR)/DVB | DVBDIR = $(SRCDIR)/DVB | ||
+ | else | ||
+ | DVBDIR = /usr/src/linux | ||
endif | endif | ||
− | export PREFIX | + | export PREFIX VDRDIR DVBDIR PKG_CONFIG_PATH |
#MANDIR = $(PREFIX)/man | #MANDIR = $(PREFIX)/man | ||
#BINDIR = $(PREFIX)/bin | #BINDIR = $(PREFIX)/bin | ||
+ | # set to ./locale to run VDR from within its source directory: | ||
+ | LOCDIR = $(VDRDIR)/locale | ||
#PLUGINDIR = $(VDRDIR)/PLUGINS | #PLUGINDIR = $(VDRDIR)/PLUGINS | ||
Zeile 59: | Zeile 72: | ||
DEFINES += -D_GNU_SOURCE | 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 | ||
# ---------------------------------------------------------------------------- | # ---------------------------------------------------------------------------- | ||
Zeile 71: | Zeile 95: | ||
# ---------------------------------------------------------------------------- | # ---------------------------------------------------------------------------- | ||
− | VFAT = 1 | + | #VFAT = 1 |
# ---------------------------------------------------------------------------- | # ---------------------------------------------------------------------------- | ||
Zeile 79: | Zeile 103: | ||
#DEBUG = 1 | #DEBUG = 1 | ||
#DBG = 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 | |
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | ifeq (exists, $(shell test - | + | |
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
endif | endif | ||
</pre> | </pre> |
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
# ---------------------------------------------------------------------------- # 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