2
2
# Makefile for a Video Disk Recorder plugin
4
# $Id: Makefile,v 1.16 2007/06/25 10:44:11 amair Exp $
6
# If you are using the epgsearch plugin and want to see the number of
7
# timer conflicts in the main menu's info area.
8
#SKINENIGMA_HAVE_EPGSEARCH = 1
4
# $Id: Makefile,v 1.24 2008/03/09 08:31:30 amair Exp $
10
6
# This turns usage of logos in the main menu complete. This might also
11
7
# improve the performance of the menus. EXPERIMENTAL!!!
18
14
# images in event's and recording's details.
19
15
#HAVE_IMAGEMAGICK = 1
17
# If you are using the epgsearch plugin and want to see the number of
18
# timer conflicts in the main menu's info area.
19
SKINENIGMA_USE_PLUGIN_EPGSEARCH = 1
21
21
# If you use the mailbox plugin this will include support for it.
22
# NOTE: this can also be defined if you don't know if the mailbox
23
# plugin will be used because it has no compile time requirements.
24
22
SKINENIGMA_USE_PLUGIN_MAILBOX = 1
26
# EXPERIMENTAL!!! NOT YET OFFICIALY SUPPORTED!!!
29
#SKINENIGMA_USE_PLUGIN_AVARDS = 1
24
# Include code to support the Avards plugin:
25
# - Dynamic OSD size depending on current WSS mode.
26
# - Display current WSS mode in channel info and replay OSDs.
27
SKINENIGMA_USE_PLUGIN_AVARDS = 1
31
29
# Disable any code that is used for scrolling or blinking text.
32
30
# NOTE: this is only useful if you want to save some bytes because you
33
31
# can disable them in the setup too.
34
#DISABLE_ANIMATED_TEXT = 1
32
#SKINENIGMA_DISABLE_ANIMATED_TEXT = 1
36
34
# Set the descriptions for fonts you've patched in VDR. These fonts then
37
35
# can be selected in EnigmaNG setup.
36
# This is NOT the path to TrueType fonts!
38
37
#SKINENIGMA_FONTS = "\"Test Font\", \"Test2 Font\""
40
39
# If you have installed FreeType2 and want to use TrueTypeFonts.
68
67
### Allow user defined options to overwrite defaults:
70
69
CLEAR_BUG_WORKAROUND = 1
71
71
-include $(VDRDIR)/Make.config
73
73
### The version number of VDR's plugin API (taken from VDR's "config.h"):
75
75
APIVERSION = $(shell sed -ne '/define APIVERSION/s/^.*"\(.*\)".*$$/\1/p' $(VDRDIR)/config.h)
77
### Test whether VDR has locale support
78
VDRLOCALE = $(shell grep '^LOCALEDIR' $(VDRDIR)/Makefile)
77
80
### The name of the distribution archive:
79
82
ARCHIVE = $(PLUGIN)-$(VERSION)
86
89
DEFINES += -D_GNU_SOURCE -DPLUGIN_NAME_I18N='"$(PLUGIN)"'
91
ifdef SKINENIGMA_USE_PLUGIN_EPGSEARCH
92
DEFINES += -DUSE_PLUGIN_EPGSEARCH
94
# for backwards compatibility only
88
95
ifdef SKINENIGMA_HAVE_EPGSEARCH
89
DEFINES += -DSKINENIGMA_HAVE_EPGSEARCH
96
DEFINES += -DUSE_PLUGIN_EPGSEARCH
92
100
ifdef SKINENIGMA_DEBUG
151
167
MAKEDEP = $(CXX) -MM -MG
152
168
DEPFILE = .dependencies
153
169
$(DEPFILE): Makefile
154
@$(MAKEDEP) $(DEFINES) $(INCLUDES) $(OBJS:%.o=%.c) > $@
170
@$(MAKEDEP) $(DEFINES) $(INCLUDES) $(subst i18n.c,,$(OBJS:%.o=%.c)) > $@
156
172
-include $(DEPFILE)
174
### Internationalization (I18N):
177
LOCALEDIR = $(VDRDIR)/locale
178
I18Npo = $(wildcard $(PODIR)/*.po)
179
I18Nmo = $(addsuffix .mo, $(foreach file, $(I18Npo), $(basename $(file))))
180
I18Ndirs = $(notdir $(foreach file, $(I18Npo), $(basename $(file))))
181
I18Npot = $(PODIR)/$(PLUGIN).pot
182
I18Nvdrmo = vdr-$(PLUGIN).mo
183
ifeq ($(strip $(APIVERSION)),1.5.7)
184
I18Nvdrmo = $(PLUGIN).mo
190
$(I18Npot): $(subst i18n.c,,$(wildcard *.c))
191
xgettext -C -cTRANSLATORS --no-wrap --no-location -k -ktr -ktrNOOP --msgid-bugs-address='<andreas@vdr-developer.org>' -o $@ $(subst i18n.c,,$(wildcard *.c))
193
$(I18Npo): $(I18Npot)
194
msgmerge -U --no-wrap --no-location --backup=none -q $@ $<
196
ifneq ($(strip $(VDRLOCALE)),)
197
### do gettext based i18n stuff
200
@mkdir -p $(LOCALEDIR)
201
for i in $(I18Ndirs); do\
202
mkdir -p $(LOCALEDIR)/$$i/LC_MESSAGES;\
203
cp $(PODIR)/$$i.mo $(LOCALEDIR)/$$i/LC_MESSAGES/$(I18Nvdrmo);\
206
i18n.c: i18n-template.c
207
@cp i18n-template.c i18n.c
209
else ### do i18n.c based i18n stuff
214
#i18n compatibility generator:
215
i18n.c: i18n-template.c buildtools/po2i18n.pl $(I18Npo)
216
buildtools/po2i18n.pl < i18n-template.c > i18n.c
160
all: libvdr-$(PLUGIN).so
162
223
libvdr-$(PLUGIN).so: $(OBJS)
163
224
$(CXX) $(CXXFLAGS) -shared $(OBJS) $(LIBS) -o $@
164
225
ifndef SKINENIGMA_DEBUG
167
228
@cp --remove-destination $@ $(LIBDIR)/$@.$(APIVERSION)
170
231
@-rm -rf $(TMPDIR)/$(ARCHIVE)
171
232
@mkdir $(TMPDIR)/$(ARCHIVE)
172
233
@cp -a * $(TMPDIR)/$(ARCHIVE)
173
@tar czf $(PACKAGE).tgz --exclude CVS -C $(TMPDIR) $(ARCHIVE)
234
@tar czf $(PACKAGE).tgz --exclude CVS --exclude '.#*' --exclude '*.bak' -C $(TMPDIR) $(ARCHIVE)
174
235
@-rm -rf $(TMPDIR)/$(ARCHIVE)
175
236
@echo Distribution package created as $(PACKAGE).tgz
178
@-rm -f $(OBJS) $(DEPFILE) *.so *.tgz core* *~
239
@-rm -f $(OBJS) $(DEPFILE) i18n.c *.so *.tgz core* *~ $(PODIR)/*.mo $(PODIR)/*.pot