Gentoo Archives: gentoo-commits

From: Andreas Sturmlechner <asturm@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: media-plugins/vdr-permashift/files/
Date: Sat, 02 Mar 2019 00:04:43
Message-Id: 1551484978.789b08865a283bcc15af704c9610b945b7efc95a.asturm@gentoo
1 commit: 789b08865a283bcc15af704c9610b945b7efc95a
2 Author: Michael Mair-Keimberger <m.mairkeimberger <AT> gmail <DOT> com>
3 AuthorDate: Fri Mar 1 17:40:37 2019 +0000
4 Commit: Andreas Sturmlechner <asturm <AT> gentoo <DOT> org>
5 CommitDate: Sat Mar 2 00:02:58 2019 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=789b0886
7
8 media-plugins/vdr-permashift: remove unused file
9
10 Signed-off-by: Michael Mair-Keimberger <m.mairkeimberger <AT> gmail.com>
11 Closes: https://github.com/gentoo/gentoo/pull/11197
12 Signed-off-by: Andreas Sturmlechner <asturm <AT> gentoo.org>
13
14 media-plugins/vdr-permashift/files/permashift.mk | 124 -----------------------
15 1 file changed, 124 deletions(-)
16
17 diff --git a/media-plugins/vdr-permashift/files/permashift.mk b/media-plugins/vdr-permashift/files/permashift.mk
18 deleted file mode 100644
19 index 9b4fdc092f7..00000000000
20 --- a/media-plugins/vdr-permashift/files/permashift.mk
21 +++ /dev/null
22 @@ -1,124 +0,0 @@
23 -#
24 -# Makefile for a Video Disk Recorder plugin
25 -#
26 -
27 -# The official name of this plugin.
28 -# This name will be used in the '-P...' option of VDR to load the plugin.
29 -# By default the main source file also carries this name.
30 -
31 -# add the name of the plugin, next edit the OBJS line,
32 -PLUGIN = permashift
33 -
34 -### The version number of this plugin (taken from the main source file):
35 -
36 -VERSION = $(shell grep 'static const char \*VERSION *=' $(PLUGIN).c | awk '{ print $$6 }' | sed -e 's/[";]//g')
37 -
38 -### The directory environment:
39 -
40 -# Use package data if installed...otherwise assume we're under the VDR source directory:
41 -PKGCFG = $(if $(VDRDIR),$(shell pkg-config --variable=$(1) $(VDRDIR)/vdr.pc),$(shell pkg-config --variable=$(1) vdr || pkg-config --variable=$(1) ../../../vdr.pc))
42 -LIBDIR = $(call PKGCFG,libdir)
43 -LOCDIR = $(call PKGCFG,locdir)
44 -PLGCFG = $(call PKGCFG,plgcfg)
45 -#
46 -TMPDIR ?= /tmp
47 -
48 -### The compiler options:
49 -
50 -export CFLAGS = $(call PKGCFG,cflags)
51 -export CXXFLAGS = $(call PKGCFG,cxxflags)
52 -
53 -### The version number of VDR's plugin API:
54 -
55 -APIVERSION = $(call PKGCFG,apiversion)
56 -
57 -### Allow user defined options to overwrite defaults:
58 -
59 --include $(PLGCFG)
60 -
61 -### The name of the distribution archive:
62 -
63 -ARCHIVE = $(PLUGIN)-$(VERSION)
64 -PACKAGE = vdr-$(ARCHIVE)
65 -
66 -### The name of the shared object file:
67 -
68 -SOFILE = libvdr-$(PLUGIN).so
69 -
70 -### Includes and Defines (add further entries here):
71 -
72 -INCLUDES +=
73 -
74 -DEFINES += -DPLUGIN_NAME_I18N='"$(PLUGIN)"'
75 -
76 -### The object files (add further files here):
77 -
78 -OBJS = $(PLUGIN).o
79 -
80 -### The main target:
81 -
82 -all: $(SOFILE)
83 -# i18n
84 -
85 -### Implicit rules:
86 -
87 -%.o: %.c
88 - $(CXX) $(CXXFLAGS) -c $(DEFINES) $(INCLUDES) -o $@ $<
89 -
90 -### Dependencies:
91 -
92 -MAKEDEP = $(CXX) -MM -MG
93 -DEPFILE = .dependencies
94 -$(DEPFILE): Makefile
95 - @$(MAKEDEP) $(CXXFLAGS) $(DEFINES) $(INCLUDES) $(OBJS:%.o=%.c) > $@
96 -
97 --include $(DEPFILE)
98 -
99 -### Internationalization (I18N):
100 -
101 -PODIR = po
102 -I18Npo = $(wildcard $(PODIR)/*.po)
103 -I18Nmo = $(addsuffix .mo, $(foreach file, $(I18Npo), $(basename $(file))))
104 -I18Nmsgs = $(addprefix $(DESTDIR)$(LOCDIR)/, $(addsuffix /LC_MESSAGES/vdr-$(PLUGIN).mo, $(notdir $(foreach file, $(I18Npo), $(basename $(file))))))
105 -I18Npot = $(PODIR)/$(PLUGIN).pot
106 -
107 -%.mo: %.po
108 - msgfmt -c -o $@ $<
109 -
110 -$(I18Npot): $(wildcard *.c)
111 - xgettext -C -cTRANSLATORS --no-wrap --no-location -k -ktr -ktrNOOP --package-name=vdr-$(PLUGIN) --package-version=$(VERSION) --msgid-bugs-address='<see README>' -o $@ `ls $^`
112 -
113 -%.po: $(I18Npot)
114 - msgmerge -U --no-wrap --no-location --backup=none -q -N $@ $<#
115 - @touch $@
116 -
117 -$(I18Nmsgs): $(DESTDIR)$(LOCDIR)/%/LC_MESSAGES/vdr-$(PLUGIN).mo: $(PODIR)/%.mo
118 - install -D -m644 $< $@
119 -
120 -.PHONY: i18n
121 -i18n: $(I18Nmo) $(I18Npot)
122 -
123 -install-i18n: $(I18Nmsgs)
124 -
125 -### Targets:
126 -
127 -$(SOFILE): $(OBJS)
128 - $(CXX) $(CXXFLAGS) $(LDFLAGS) -shared $(OBJS) -o $@
129 -
130 -install-lib: $(SOFILE)
131 - install -D $^ $(DESTDIR)$(LIBDIR)/$^.$(APIVERSION)
132 -
133 -install: install-lib
134 -# install-i18n
135 -
136 -dist: $(I18Npo) clean
137 - @-rm -rf $(TMPDIR)/$(ARCHIVE)
138 - @mkdir $(TMPDIR)/$(ARCHIVE)
139 - @cp -a * $(TMPDIR)/$(ARCHIVE)
140 - @tar czf $(PACKAGE).tgz -C $(TMPDIR) $(ARCHIVE)
141 - @-rm -rf $(TMPDIR)/$(ARCHIVE)
142 - @echo Distribution package created as $(PACKAGE).tgz
143 -
144 -clean:
145 - @-rm -f $(PODIR)/*.mo $(PODIR)/*.pot
146 - @-rm -f $(OBJS) $(DEPFILE) *.so *.tgz core* *~