1 |
commit: f763efa3983c36dd7e7b1795bfa776ca77e1683e |
2 |
Author: Michael Mair-Keimberger (asterix) <m.mairkeimberger <AT> gmail <DOT> com> |
3 |
AuthorDate: Mon Dec 26 15:02:36 2016 +0000 |
4 |
Commit: Göktürk Yüksek <gokturk <AT> gentoo <DOT> org> |
5 |
CommitDate: Tue Dec 27 19:29:52 2016 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=f763efa3 |
7 |
|
8 |
media-plugins/vdr-vompserver: remove unused file |
9 |
|
10 |
media-plugins/vdr-vompserver/files/vompserver.mk | 150 ----------------------- |
11 |
1 file changed, 150 deletions(-) |
12 |
|
13 |
diff --git a/media-plugins/vdr-vompserver/files/vompserver.mk b/media-plugins/vdr-vompserver/files/vompserver.mk |
14 |
deleted file mode 100644 |
15 |
index 1ea9ac3..00000000 |
16 |
--- a/media-plugins/vdr-vompserver/files/vompserver.mk |
17 |
+++ /dev/null |
18 |
@@ -1,150 +0,0 @@ |
19 |
-# |
20 |
-# Makefile for a Video Disk Recorder plugin |
21 |
-# |
22 |
-# $Id$ |
23 |
- |
24 |
-# The official name of this plugin. |
25 |
-# This name will be used in the '-P...' option of VDR to load the plugin. |
26 |
-# By default the main source file also carries this name. |
27 |
- |
28 |
-# add the name of the plugin, next edit the OBJS line, |
29 |
-PLUGIN = vompserver |
30 |
- |
31 |
-### The version number of this plugin (taken from the main source file): |
32 |
- |
33 |
-VERSION = $(shell grep 'static const char \*VERSION *=' $(PLUGIN).c | awk '{ print $$6 }' | sed -e 's/[";]//g') |
34 |
- |
35 |
-### The directory environment: |
36 |
- |
37 |
-# Use package data if installed...otherwise assume we're under the VDR source directory: |
38 |
-PKGCFG = $(if $(VDRDIR),$(shell pkg-config --variable=$(1) $(VDRDIR)/vdr.pc),$(shell pkg-config --variable=$(1) vdr || pkg-config --variable=$(1) ../../../vdr.pc)) |
39 |
-LIBDIR = $(call PKGCFG,libdir) |
40 |
-LOCDIR = $(call PKGCFG,locdir) |
41 |
-PLGCFG = $(call PKGCFG,plgcfg) |
42 |
-# |
43 |
-TMPDIR ?= /tmp |
44 |
- |
45 |
-### The compiler options: |
46 |
- |
47 |
-export CFLAGS = $(call PKGCFG,cflags) |
48 |
-export CXXFLAGS = $(call PKGCFG,cxxflags) |
49 |
- |
50 |
-### The version number of VDR's plugin API: |
51 |
- |
52 |
-APIVERSION = $(call PKGCFG,apiversion) |
53 |
- |
54 |
-### Allow user defined options to overwrite defaults: |
55 |
- |
56 |
--include $(PLGCFG) |
57 |
- |
58 |
-### The name of the distribution archive: |
59 |
- |
60 |
-ARCHIVE = $(PLUGIN)-$(VERSION) |
61 |
-PACKAGE = vdr-$(ARCHIVE) |
62 |
- |
63 |
-### The name of the shared object file: |
64 |
- |
65 |
-SOFILE = libvdr-$(PLUGIN).so |
66 |
- |
67 |
-### Includes and Defines (add further entries here): |
68 |
- |
69 |
-INCLUDES += |
70 |
- |
71 |
-DEFINES += -DPLUGIN_NAME_I18N='"$(PLUGIN)"' |
72 |
-DEFINES += -DVOMPSERVER |
73 |
- |
74 |
-### The object files (add further files here): |
75 |
- |
76 |
-OBJS = $(PLUGIN).o |
77 |
- |
78 |
-OBJS += dsock.o mvpserver.o udpreplier.o bootpd.o tftpd.o i18n.o vompclient.o tcp.o \ |
79 |
- ringbuffer.o mvprelay.o vompclientrrproc.o \ |
80 |
- config.o log.o thread.o tftpclient.o \ |
81 |
- media.o responsepacket.o \ |
82 |
- mediafile.o mediaplayer.o servermediafile.o serialize.o medialauncher.o |
83 |
- |
84 |
-OBJS2 = recplayer.o mvpreceiver.o |
85 |
- |
86 |
-### The main target: |
87 |
- |
88 |
-all: allbase $(SOFILE) |
89 |
-#i18n |
90 |
-standalone: standalonebase vompserver-standalone |
91 |
- |
92 |
-### Implicit rules: |
93 |
- |
94 |
-%.o: %.c |
95 |
- $(CXX) $(CXXFLAGS) -c $(DEFINES) $(INCLUDES) -o $@ $< |
96 |
- |
97 |
-### Dependencies: |
98 |
- |
99 |
-MAKEDEP = $(CXX) -MM -MG |
100 |
-DEPFILE = .dependencies |
101 |
-$(DEPFILE): Makefile |
102 |
- @$(MAKEDEP) $(CXXFLAGS) $(DEFINES) $(INCLUDES) $(OBJS:%.o=%.c) > $@ |
103 |
- |
104 |
--include $(DEPFILE) |
105 |
- |
106 |
-### Internationalization (I18N): |
107 |
- |
108 |
-PODIR = po |
109 |
-I18Npo = $(wildcard $(PODIR)/*.po) |
110 |
-I18Nmo = $(addsuffix .mo, $(foreach file, $(I18Npo), $(basename $(file)))) |
111 |
-I18Nmsgs = $(addprefix $(DESTDIR)$(LOCDIR)/, $(addsuffix /LC_MESSAGES/vdr-$(PLUGIN).mo, $(notdir $(foreach file, $(I18Npo), $(basename $(file)))))) |
112 |
-I18Npot = $(PODIR)/$(PLUGIN).pot |
113 |
- |
114 |
-%.mo: %.po |
115 |
- msgfmt -c -o $@ $< |
116 |
- |
117 |
-$(I18Npot): $(wildcard *.c) |
118 |
- xgettext -C -cTRANSLATORS --no-wrap --no-location -k -ktr -ktrNOOP --package-name=vdr-$(PLUGIN) --package-version=$(VERSION) --msgid-bugs-address='<see README>' -o $@ `ls $^` |
119 |
- |
120 |
-%.po: $(I18Npot) |
121 |
- msgmerge -U --no-wrap --no-location --backup=none -q -N $@ $< |
122 |
- @touch $@ |
123 |
- |
124 |
-$(I18Nmsgs): $(DESTDIR)$(LOCDIR)/%/LC_MESSAGES/vdr-$(PLUGIN).mo: $(PODIR)/%.mo |
125 |
- install -D -m644 $< $@ |
126 |
- |
127 |
-.PHONY: i18n |
128 |
-i18n: $(I18Nmo) $(I18Npot) |
129 |
- |
130 |
-install-i18n: $(I18Nmsgs) |
131 |
- |
132 |
-### Targets: |
133 |
- |
134 |
-objectsstandalone: $(OBJS) |
135 |
-objects: $(OBJS) $(OBJS2) |
136 |
- |
137 |
-allbase: |
138 |
- ( if [ -f .standalone ] ; then ( rm -f .standalone; make clean ; make objects ) ; else exit 0 ;fi ) |
139 |
-standalonebase: |
140 |
- ( if [ ! -f .standalone ] ; then ( make clean; echo "DEFINES+=-DVOMPSTANDALONE" > .standalone; echo "DEFINES+=-D_FILE_OFFSET_BITS=64" >> .standalone; make objectsstandalone ) ; else exit 0 ;fi ) |
141 |
- |
142 |
-$(SOFILE): objects |
143 |
- $(CXX) $(CXXFLAGS) $(LDFLAGS) -shared $(OBJS) $(OBJS2) -o $@ |
144 |
- @if [ -n "$(DOOLDINSTALL)" ]; then \ |
145 |
-cp $@ $(LIBDIR)/$@.$(APIVERSION) ; \ |
146 |
-echo "done manual copy"; \ |
147 |
-fi |
148 |
- |
149 |
-vompserver-standalone: objectsstandalone |
150 |
- $(CXX) $(CXXFLAGS) $(OBJS) -lpthread -o $@ |
151 |
- chmod u+x $@ |
152 |
- |
153 |
-install-lib: $(SOFILE) |
154 |
- install -D $^ $(DESTDIR)$(LIBDIR)/$^.$(APIVERSION) |
155 |
- |
156 |
-install: install-lib install-i18n |
157 |
- |
158 |
-dist: $(I18Npo) clean |
159 |
- @-rm -rf $(TMPDIR)/$(ARCHIVE) |
160 |
- @mkdir $(TMPDIR)/$(ARCHIVE) |
161 |
- @cp -a * $(TMPDIR)/$(ARCHIVE) |
162 |
- @tar czf $(PACKAGE).tgz -C $(TMPDIR) $(ARCHIVE) |
163 |
- @-rm -rf $(TMPDIR)/$(ARCHIVE) |
164 |
- @echo Distribution package created as $(PACKAGE).tgz |
165 |
- |
166 |
-clean: |
167 |
- @-rm -f $(PODIR)/*.mo $(PODIR)/*.pot |
168 |
- @-rm -f $(OBJS) $(DEPFILE) *.so *.tgz core* *~ |