Mercurial > mplayer.hg
comparison Makefile @ 9470:3c0bc75f380d
Latest version has the following features:
- --language=ab,cd,ef and --language="ab cd ef" are supported, the list
is now used as a fallback for possible message/gui translations
- --language=all is supported
- --language=ab,cd,ef,all and --language="ab cd ef all" are supported
for all man pages, but different message/gui translations than en
- $LINGUAS is honored
- if no --language or $LINGUAS is given it defaults to en
Credits for ideas go out to (in no particular order):
Tobias Diedrich
Sylvain Petreolle
Dan Christiansen
Dominik Mierzejewski
Andriy N. Gritsenko
and everyone I've forgotten
Andreas Hess <jaska@gmx.net>
author | arpi |
---|---|
date | Thu, 20 Feb 2003 23:32:47 +0000 |
parents | 08c717b7b886 |
children | 05a2998c428e |
comparison
equal
deleted
inserted
replaced
9469:f9a1701af199 | 9470:3c0bc75f380d |
---|---|
244 $(INSTALL) -m 755 $(INSTALLSTRIP) $(PRG) $(BINDIR)/$(PRG) | 244 $(INSTALL) -m 755 $(INSTALLSTRIP) $(PRG) $(BINDIR)/$(PRG) |
245 ifeq ($(GUI),yes) | 245 ifeq ($(GUI),yes) |
246 -ln -sf $(PRG) $(BINDIR)/gmplayer | 246 -ln -sf $(PRG) $(BINDIR)/gmplayer |
247 endif | 247 endif |
248 if test ! -d $(MANDIR)/man1 ; then mkdir -p $(MANDIR)/man1; fi | 248 if test ! -d $(MANDIR)/man1 ; then mkdir -p $(MANDIR)/man1; fi |
249 $(INSTALL) -c -m 644 DOCS/en/mplayer.1 $(MANDIR)/man1/mplayer.1 | 249 for i in $(LANGUAGES); do \ |
250 @if [ -n "$(LANGUAGES)" ]; then \ | 250 if test "$$i" = en ; then \ |
251 for i in $(LANGUAGES); do \ | 251 $(INSTALL) -c -m 644 DOCS/en/mplayer.1 $(MANDIR)/man1/mplayer.1 ; \ |
252 if [ -f DOCS/$$i/mplayer.1 ]; then \ | 252 else \ |
253 echo "Installing manual for language $$i" ; \ | 253 mkdir -p $(MANDIR)/$$i/man1 ; \ |
254 mkdir -p $(MANDIR)/$$i/man1 ; \ | 254 $(INSTALL) -c -m 644 DOCS/$$i/mplayer.1 $(MANDIR)/$$i/man1/mplayer.1 ; \ |
255 $(INSTALL) -c -m 644 DOCS/$$i/mplayer.1 $(MANDIR)/$$i/man1/mplayer.1 ; \ | |
256 fi ; \ | 255 fi ; \ |
257 done ; \ | 256 done |
258 fi | |
259 ifeq ($(MENCODER),yes) | 257 ifeq ($(MENCODER),yes) |
260 $(INSTALL) -m 755 $(INSTALLSTRIP) $(PRG_MENCODER) $(BINDIR)/$(PRG_MENCODER) | 258 $(INSTALL) -m 755 $(INSTALLSTRIP) $(PRG_MENCODER) $(BINDIR)/$(PRG_MENCODER) |
261 ln -sf mplayer.1 $(MANDIR)/man1/mencoder.1 | 259 for i in $(LANGUAGES); do \ |
262 @if [ -n "$(LANGUAGES)" ]; then \ | 260 if test "$$i" = en ; then \ |
263 for i in $(LANGUAGES); do \ | 261 ln -sf mplayer.1 $(MANDIR)/man1/mencoder.1 ; \ |
264 if [ -f DOCS/$$i/mplayer.1 ]; then \ | 262 else \ |
265 ln -sf mplayer.1 $(MANDIR)/$$i/man1/mencoder.1 ; \ | 263 ln -sf mplayer.1 $(MANDIR)/$$i/man1/mencoder.1 ; \ |
266 fi ; \ | 264 fi ; \ |
267 done ; \ | 265 done |
268 fi | |
269 endif | 266 endif |
270 @if test ! -d $(DATADIR) ; then mkdir -p $(DATADIR) ; fi | 267 @if test ! -d $(DATADIR) ; then mkdir -p $(DATADIR) ; fi |
271 @if test ! -d $(DATADIR)/font ; then mkdir -p $(DATADIR)/font ; fi | 268 @if test ! -d $(DATADIR)/font ; then mkdir -p $(DATADIR)/font ; fi |
272 @if test ! -f $(DATADIR)/font/font.desc ; then \ | 269 @if test ! -f $(DATADIR)/font/font.desc ; then \ |
273 echo "*** Download font at http://www.mplayerhq.hu/homepage/dload.html" ; \ | 270 echo "*** Download font at http://www.mplayerhq.hu/homepage/dload.html" ; \ |