mirror of
https://github.com/vdr-projects/vdr.git
synced 2025-03-01 10:50:46 +00:00
Modified the Makefiles, by default VDR is now built according to the FHS
This commit is contained in:
14
newplugin
14
newplugin
@@ -12,7 +12,7 @@
|
||||
# See the main source file 'vdr.c' for copyright information and
|
||||
# how to reach the author.
|
||||
#
|
||||
# $Id: newplugin 2.15 2012/12/28 09:52:29 kls Exp $
|
||||
# $Id: newplugin 2.16 2013/01/06 12:22:25 kls Exp $
|
||||
|
||||
$PLUGIN_NAME = $ARGV[0] || die "Usage: newplugin <name>\n";
|
||||
|
||||
@@ -76,8 +76,8 @@ VERSION = \$(shell grep 'static const char \\*VERSION *=' \$(PLUGIN).c | awk '{
|
||||
|
||||
# Use package data if installed...otherwise assume we're under the VDR source directory:
|
||||
PKGCFG = \$(if \$(VDRDIR),\$(shell pkg-config --variable=\$(1) \$(VDRDIR)/vdr.pc),\$(shell pkg-config --variable=\$(1) vdr || pkg-config --variable=\$(1) ../../../vdr.pc))
|
||||
LIBDIR = \$(DESTDIR)\$(call PKGCFG,libdir)
|
||||
LOCDIR = \$(DESTDIR)\$(call PKGCFG,locdir)
|
||||
LIBDIR = \$(call PKGCFG,libdir)
|
||||
LOCDIR = \$(call PKGCFG,locdir)
|
||||
PLGCFG = \$(call PKGCFG,plgcfg)
|
||||
#
|
||||
TMPDIR ?= /tmp
|
||||
@@ -128,7 +128,7 @@ all: \$(SOFILE) i18n
|
||||
MAKEDEP = \$(CXX) -MM -MG
|
||||
DEPFILE = .dependencies
|
||||
\$(DEPFILE): Makefile
|
||||
\@\$(MAKEDEP) \$(DEFINES) \$(INCLUDES) \$(OBJS:%.o=%.c) > \$\@
|
||||
\@\$(MAKEDEP) \$(CXXFLAGS) \$(DEFINES) \$(INCLUDES) \$(OBJS:%.o=%.c) > \$\@
|
||||
|
||||
-include \$(DEPFILE)
|
||||
|
||||
@@ -137,7 +137,7 @@ DEPFILE = .dependencies
|
||||
PODIR = po
|
||||
I18Npo = \$(wildcard \$(PODIR)/*.po)
|
||||
I18Nmo = \$(addsuffix .mo, \$(foreach file, \$(I18Npo), \$(basename \$(file))))
|
||||
I18Nmsgs = \$(addprefix \$(LOCDIR)/, \$(addsuffix /LC_MESSAGES/vdr-\$(PLUGIN).mo, \$(notdir \$(foreach file, \$(I18Npo), \$(basename \$(file))))))
|
||||
I18Nmsgs = \$(addprefix \$(DESTDIR)\$(LOCDIR)/, \$(addsuffix /LC_MESSAGES/vdr-\$(PLUGIN).mo, \$(notdir \$(foreach file, \$(I18Npo), \$(basename \$(file))))))
|
||||
I18Npot = \$(PODIR)/\$(PLUGIN).pot
|
||||
|
||||
%.mo: %.po
|
||||
@@ -150,7 +150,7 @@ I18Npot = \$(PODIR)/\$(PLUGIN).pot
|
||||
msgmerge -U --no-wrap --no-location --backup=none -q -N \$\@ \$<
|
||||
\@touch \$\@
|
||||
|
||||
\$(I18Nmsgs): \$(LOCDIR)/%/LC_MESSAGES/vdr-\$(PLUGIN).mo: \$(PODIR)/%.mo
|
||||
\$(I18Nmsgs): \$(DESTDIR)\$(LOCDIR)/%/LC_MESSAGES/vdr-\$(PLUGIN).mo: \$(PODIR)/%.mo
|
||||
install -D -m644 \$< \$\@
|
||||
|
||||
.PHONY: i18n
|
||||
@@ -164,7 +164,7 @@ install-i18n: \$(I18Nmsgs)
|
||||
\$(CXX) \$(CXXFLAGS) \$(LDFLAGS) -shared \$(OBJS) -o \$\@
|
||||
|
||||
install-lib: \$(SOFILE)
|
||||
install -D \$^ \$(LIBDIR)/\$^.\$(APIVERSION)
|
||||
install -D \$^ \$(DESTDIR)\$(LIBDIR)/\$^.\$(APIVERSION)
|
||||
|
||||
install: install-lib install-i18n
|
||||
|
||||
|
Reference in New Issue
Block a user