Drop the bool operator for ObjectURI, to avoid getting the kind of side-effect that...
[gnash.git] / packaging / snapshot.am
blob8a29380b1beb2c758143a20c287bb655b47c2be8
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
18 NOW := $(shell date "+%Y%m%d")
20 # this is used for Debian style naming conventions
21 NEXT_RELEASE = 0.8.9
22 #SNAPSHOT_VERSION := 0.8.8
23 SNAPSHOT_VERSION := $(NEXT_RELEASE)~git.$(BRANCH_REVNO)
25 # these is the directories where the snapshot gets built. Sources are
26 # in the top level, the build goes in a _build subdirectory
27 SNAPSHOT_DIR := gnash-$(SNAPSHOT_VERSION)
28 SNAPSHOT_BUILD := $(SNAPSHOT_DIR)/_build
29 SNAPSHOT_NAME := $(SNAPSHOT_DIR)
31 # this is the name of the actual tarball
32 SNAPSHOT_TAR = gnash-$(SNAPSHOT_VERSION).tar.gz
33 # this is the temporary directory used for DESTDIR
34 SNAPSHOT_TMP = /tmp/$(SNAPSHOT_DIR)
36 # extract info from bazar
39 # build a binary snapshot from of Gnash for systems we don't have
40 # packaging support for.
43 # Do the entire process to build a binary tarball
44 snapshot: snapshot-src snapshot-configure snapshot-build snapshot-install snapshot-bundle
46 # start by creating the source tree using the distdir target,
47 # which builds a source tree only using what's in the DIST variables
48 # from Automake. This uses the default version for Gnash. which is
49 # 'trunk'. Then it gets renamed from the default version from 'trunk'
50 # to a branch-revno stamped version instead of trunk.
51 snapshot-src: revno.h distdir
53 snapshot-configure:
54         -@now=`date "+%Y%m%d"`; \
55         pkgname="gnash-$(BRANCH_NICK)-${BRANCH_REVNO}"; \
56         snapshot_dir=$(SNAPSHOT_DIR); \
57         snapshot_build="$(SNAPSHOT_BUILD)"; \
58         if test ! -d $(snapshot_build); then \
59           $(MKINSTALLDIRS) $${snapshot_build}; \
60         fi; \
61         if test -d /usr/local/mozilla-firefox/plugins; then \
62           plugindir=/usr/local/mozilla-firefox/plugins; \
63         else \
64           plugindir=/usr/lib/mozilla/plugins; \
65         fi; \
66         cd $${snapshot_build}; ../configure \
67         $(SNAPSHOT_CONFIGURE_FLAGS) \
68           --disable-dependency-tracking\
69           --disable-rpath \
70           --prefix=/usr \
71           --mandir=/usr/share/man \
72           --infodir=/usr/share/info \
73           --with-plugindir=$${plugindir} \
74           --disable-static \
75           --enable-shared
76 #         --with-extensions=all 
77 #         --enable-gui=all 
79 snapshot-build: force
80         $(MAKE) $(AM_MAKEFLAGS) -C $(SNAPSHOT_BUILD)
81         $(MAKE) $(AM_MAKEFLAGS) -C $(SNAPSHOT_BUILD)/doc/C info man html
83 # Install a package. Afterwards we link to the prebuilt man pages incase
84 # DocBook and DocBook2X aren't installed on this machine.
85 snapshot-install: force
86         $(MAKE) $(AM_MAKEFLAGS) -C $(SNAPSHOT_BUILD) install DESTDIR=$(SNAPSHOT_TMP)
88 # We only want to bundle an installed gnash, so all the linker paths are
89 # correct
90 snapshot-bundle: 
91         snapshot_tar="$(SNAPSHOT_TMP)-$(host_cpu)-$(host_os).tar.gz"; \
92         if test ! -d $${snapshot_tmp}; then \
93           $(mkinstalldirs) $${snapshot_tmp}; \
94         fi; \
95         rm -f $${snapshot_dest}/usr/lib/*.la; \
96         cp @srcdir@/COPYING $${snapshot_tmp}; \
97         cp @srcdir@/config.guess $${snapshot_tmp}; \
98         cp @srcdir@/packaging/install-gnash.sh $${snapshot_tmp}; \
99         cp -rp $${snapshot_dest}/usr/bin $${snapshot_tmp}; \
100         cp -rp $${snapshot_dest}/usr/lib $${snapshot_tmp}; \
101         cp -rp $${snapshot_dest}/usr/share $${snapshot_tmp}; \
102         cp -rp $${snapshot_dest}/usr/lib/mozilla/plugins $${snapshot_tmp}; \
103         cp -rp $${snapshot_dest}/usr/lib/kde3 $${snapshot_tmp}; \
104         strip $${snapshot_tmp}/bin/*-gnash; \
105         strip $${snapshot_tmp}/bin/gprocessor; \
106         strip $${snapshot_tmp}/bin/dumpshm; \
107         strip $${snapshot_tmp}/bin/flvdumper; \
108         strip $${snapshot_tmp}/bin/rtmpget; \
109         tar zcvCf /tmp $${snapshot_tar} $(SNAPSHOT_NAME)
111 snapshot-clean:
112         -@rm -fr snapshot-* $(SNAPSHOT_BUILD) $(SNAPSHOT_TMP) gnash*$(VERSION)*.ipk
114 .PHONY : snapshot snapshot-build snapshot-install snapshot-clean snapshot-src snapshot-configure