~ubuntu-branches/ubuntu/trusty/vdr-plugin-skinenigmang/trusty

« back to all changes in this revision

Viewing changes to Makefile

  • Committer: Bazaar Package Importer
  • Author(s): Thomas Schmidt, Tobias Grimm
  • Date: 2008-07-19 18:13:38 UTC
  • mfrom: (2.1.4 intrepid)
  • Revision ID: james.westby@ubuntu.com-20080719181338-5gopx0a2tk1hlqvq
Tags: 0.0.6-4
[ Tobias Grimm ]
* Dropped patchlevel control field
* Build-Depend on vdr-dev (>=1.6.0-5)
* Bumped Standards-Version to 3.8.0

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
1
#
2
2
# Makefile for a Video Disk Recorder plugin
3
3
#
4
 
# $Id: Makefile,v 1.16 2007/06/25 10:44:11 amair Exp $
5
 
 
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 $
9
5
 
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
20
16
 
 
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
 
20
 
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
25
23
 
26
 
# EXPERIMENTAL!!! NOT YET OFFICIALY SUPPORTED!!!
27
 
#
28
 
# USE AT OWN RISC!!!
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
30
28
 
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
35
33
 
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\""
39
38
 
40
39
# If you have installed FreeType2 and want to use TrueTypeFonts.
68
67
### Allow user defined options to overwrite defaults:
69
68
#TODO
70
69
CLEAR_BUG_WORKAROUND = 1
 
70
ENABLE_COPYFONT = 1
71
71
-include $(VDRDIR)/Make.config
72
72
 
73
73
### The version number of VDR's plugin API (taken from VDR's "config.h"):
74
74
 
75
75
APIVERSION = $(shell sed -ne '/define APIVERSION/s/^.*"\(.*\)".*$$/\1/p' $(VDRDIR)/config.h)
76
76
 
 
77
### Test whether VDR has locale support
 
78
VDRLOCALE = $(shell grep '^LOCALEDIR' $(VDRDIR)/Makefile)
 
79
 
77
80
### The name of the distribution archive:
78
81
 
79
82
ARCHIVE = $(PLUGIN)-$(VERSION)
85
88
 
86
89
DEFINES += -D_GNU_SOURCE -DPLUGIN_NAME_I18N='"$(PLUGIN)"'
87
90
 
 
91
ifdef SKINENIGMA_USE_PLUGIN_EPGSEARCH 
 
92
DEFINES += -DUSE_PLUGIN_EPGSEARCH
 
93
else
 
94
# for backwards compatibility only
88
95
ifdef SKINENIGMA_HAVE_EPGSEARCH
89
 
DEFINES += -DSKINENIGMA_HAVE_EPGSEARCH
 
96
DEFINES += -DUSE_PLUGIN_EPGSEARCH
 
97
endif
90
98
endif
91
99
 
92
100
ifdef SKINENIGMA_DEBUG
118
126
DEFINES += -DCLEAR_BUG_WORKAROUND
119
127
endif
120
128
 
 
129
ifdef ENABLE_COPYFONT
 
130
DEFINES += -DENABLE_COPYFONT
 
131
endif
 
132
 
121
133
DEFINES += -DSKINENIGMA_FONTS=$(SKINENIGMA_FONTS)
122
134
 
123
135
### The object files (add further files here):
141
153
        OBJS += font.o
142
154
endif
143
155
 
 
156
### The main target:
 
157
 
 
158
all: libvdr-$(PLUGIN).so i18n
 
159
 
144
160
### Implicit rules:
145
161
 
146
162
%.o: %.c
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)) > $@
155
171
 
156
172
-include $(DEPFILE)
157
173
 
 
174
### Internationalization (I18N):
 
175
 
 
176
PODIR     = po
 
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
 
185
endif
 
186
 
 
187
%.mo: %.po
 
188
        msgfmt -c -o $@ $<
 
189
 
 
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))
 
192
 
 
193
$(I18Npo): $(I18Npot)
 
194
        msgmerge -U --no-wrap --no-location --backup=none -q $@ $<
 
195
 
 
196
ifneq ($(strip $(VDRLOCALE)),)
 
197
### do gettext based i18n stuff
 
198
 
 
199
i18n: $(I18Nmo)
 
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);\
 
204
            done
 
205
 
 
206
i18n.c: i18n-template.c
 
207
        @cp i18n-template.c i18n.c
 
208
 
 
209
else ### do i18n.c based i18n stuff
 
210
 
 
211
i18n:
 
212
        @### nothing to do
 
213
 
 
214
#i18n compatibility generator:
 
215
i18n.c: i18n-template.c buildtools/po2i18n.pl $(I18Npo)
 
216
        buildtools/po2i18n.pl < i18n-template.c > i18n.c
 
217
 
 
218
endif
 
219
 
 
220
 
158
221
### Targets:
159
222
 
160
 
all: libvdr-$(PLUGIN).so
161
 
 
162
223
libvdr-$(PLUGIN).so: $(OBJS)
163
224
        $(CXX) $(CXXFLAGS) -shared $(OBJS) $(LIBS) -o $@
164
225
ifndef SKINENIGMA_DEBUG
166
227
endif
167
228
        @cp --remove-destination $@ $(LIBDIR)/$@.$(APIVERSION)
168
229
 
169
 
dist: clean
 
230
dist: clean i18n.c
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
176
237
 
177
238
clean:
178
 
        @-rm -f $(OBJS) $(DEPFILE) *.so *.tgz core* *~
 
239
        @-rm -f $(OBJS) $(DEPFILE) i18n.c *.so *.tgz core* *~ $(PODIR)/*.mo $(PODIR)/*.pot