SVN: toys/rsget.pl/Makefile
sparky
sparky at pld-linux.org
Mon Feb 15 19:05:52 CET 2010
Author: sparky
Date: Mon Feb 15 19:05:52 2010
New Revision: 11144
Modified:
toys/rsget.pl/Makefile
Log:
- allow setting perl interpreter
Modified: toys/rsget.pl/Makefile
==============================================================================
--- toys/rsget.pl/Makefile (original)
+++ toys/rsget.pl/Makefile Mon Feb 15 19:05:52 2010
@@ -4,6 +4,11 @@
VER =
PKGDIR = rsget.pl-$(VER)
+PERL =
+ifneq ($(PERL),)
+SETINTERPRETER = 1s|^\(..\).*|\1$(PERL)|;
+endif
+
PLUGIN_DIRS = Get Video Audio Image Link
DIRS = RSGet,Get,Video,Audio,Image,Link,data
@@ -29,7 +34,8 @@
install: clean
install -d $(DESTDIR)$(DATADIR)/{$(DIRS)} $(DESTDIR)$(BINDIR)
- sed 's#\($$install_path\) =.*;#\1 = "$(DATADIR)";#' < rsget.pl > rsget.pl.datadir
+ sed '$(SETINTERPRETER) s#\($$install_path\) =.*;#\1 = "$(DATADIR)";#' \
+ < rsget.pl > rsget.pl.datadir
install rsget.pl.datadir $(DESTDIR)$(BINDIR)/rsget.pl
cp RSGet/*.pm $(DESTDIR)$(DATADIR)/RSGet
cp data/* $(DESTDIR)$(DATADIR)/data
More information about the pld-cvs-commit
mailing list