"Fossies" - the Fresh Open Source Software Archive

Member "gnash-0.8.10/packaging/alp.am" (19 Jan 2012, 3210 Bytes) of package /linux/www/old/gnash-0.8.10.tar.gz:


As a special service "Fossies" has tried to format the requested text file into HTML format (style: standard) with prefixed line numbers. Alternatively you can here view or download the uninterpreted source code file.

    1 # 
    2 #   Copyright (C) 2005, 2006, 2007, 2008, 2009, 2010 Free Software Foundation, Inc.
    3 # 
    4 # This program is free software; you can redistribute it and/or modify
    5 # it under the terms of the GNU General Public License as published by
    6 # the Free Software Foundation; either version 3 of the License, or
    7 # (at your option) any later version.
    8 # 
    9 # This program is distributed in the hope that it will be useful,
   10 # but WITHOUT ANY WARRANTY; without even the implied warranty of
   11 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
   12 # GNU General Public License for more details.
   13 # You should have received a copy of the GNU General Public License
   14 # along with this program; if not, write to the Free Software
   15 # Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA  02110-1301  USA
   16 # 
   17 
   18 #
   19 # Access Linux Platform support. ALP use netcat to install files,
   20 # as well as a simple remote command set for the phone
   21 #
   22 NETCAT_REMOTE   = $(NETCAT) -q 10 `cat /tmp/alp.ip` 5038
   23 NETCAT_REMOTE_Q = $(NETCAT) -q 8  `cat /tmp/alp.ip` 5038
   24 ALP_UML_IP      = 192.168.3.101
   25 ALP_REMOTE_IP	= 192.168.1.101
   26 ALP_NAMESPACE   = org.gnu.gnash
   27 ALP_BAR         = $(ALP_NAMESPACE).bar
   28 ALP_BUNDLE_DIR  = /opt/alp/bundles/
   29 
   30 ALP_TMP=/tmp/$(host_alias)-gnash
   31 
   32 # this is where the gnash gets compiled
   33 ALP_BUILD=gnash-${VERSION}
   34 
   35 CLEANFILES += alp-* $(ALP_NAMESPACE)
   36 
   37 alp-ip: 
   38 	@if test ! -f /tmp/alp.ip; then \
   39 	  if test "`uname -m`" = "i486" -o "`uname -m`" = "i686" ; then \
   40 	    echo "$(ALP_UML_IP)" | cut -d ' ' -f1 > /tmp/alp.ip ; \
   41 	  else \
   42 	    echo "$(ALP_REMOTE_IP)" | cut -d ' ' -f1 > /tmp/alp.ip ; \
   43 	  fi ; \
   44 	fi	
   45 
   46 alp alp-bundle: alp-install
   47 	rm -f alp-bundle
   48 	$(mkinstalldirs) $(ALP_NAMESPACE)/rsc
   49 	cp -f $(top_srcdir)/packaging/alp/Manifest.xml $(ALP_NAMESPACE)/
   50 	cp -vf $(ALP_TMP)/usr/local/lib/* $(ALP_NAMESPACE)/
   51 	cp -f $(top_srcdir)/gui/images/GnashGTiny.png $(ALP_NAMESPACE)/rsc/
   52 	cp -f $(top_srcdir)/testsuite/movies.all/gravity.swf $(ALP_NAMESPACE)/rsc/
   53 	@touch alp-bundle
   54 
   55 alp-install: 
   56 	-@rm -f alp-install
   57 	$(MAKE) install DESTDIR=$(ALP_TMP)
   58 	@touch alp-install
   59 
   60 # Don't ask me why, but you have to register with bartender
   61 # to get a bar file.
   62 alp-bar: #alp-bundle
   63 	rm -f alp-bar
   64 	$(BARTENDER) pack $(ALP_NAMESPACE) $(ALP_NAMESPACE).bar
   65 	@touch alp-bar
   66 
   67 alp-install-device: # alp-bar alp-install-files
   68 	@echo "Installing new bar file..."
   69 	size=`ls -la $(ALP_BAR) | cut --delim=' ' --fields=6,6`; \
   70 	(echo "install $(ALP_BAR) $$size 0 0 0755" ; cat $(ALP_BAR) ) | $(NETCAT_REMOTE)
   71 	@echo; echo "Registering new bar file with target..."
   72 	@echo 'package install /tmp/$(ALP_BAR)' | $(NETCAT_REMOTE)
   73 	@echo " "
   74 
   75 alp-install-bundle: alp-bundle
   76 	$(mkinstalldirs) $(DEST_BND_ROOT)/$(ALP_NAMESPACE)
   77 	@echo "Installing new bundle files..."
   78 	cp -Rf $(ALP_NAMESPACE) $(DEST_BND_ROOT)
   79 
   80 alp-uninstall-bundle: 
   81 	@# Note: bundle delete requires rdbgd version 11
   82 	@echo " "
   83 	@echo "Removing old bundle..."
   84 	@echo "(If this returns an error, the target is probably not running.)"
   85 	@echo "(In that case, the bundle should be gone when you next boot the target.)"
   86 	@echo " "
   87 	-@echo 'package delete bar:$(ALP_NAMESPACE)' | $(NETCAT_REMOTE)
   88 	@echo " "
   89 
   90 alp-clean:
   91 	rm -fr alp-* $(ALP_NAMESPACE)
   92 
   93 .PHONY : alp alp-bundle alp-ip
   94