Update with current status
[gnash.git] / packaging / ipkg.am
blob8d4b383ea691073ab824593776bf62cd7b7a871e
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
19 # Build a Debian Familiar .ipk GNU/Linux package. These are always
20 # cross compiled, typically for the ARM or XScale.
23 # this is where the output of "make install" goes, which is what
24 # we use to build the package.
25 IPKG_TMP=/tmp/$(host_alias)-gnash
27 # this is where the gnash gets compiled
28 IPKG_BUILD=gnash-${VERSION}
30 CLEANFILES += ipkg-*
32 ipkg-configure: ipkg-unpack $(IPKG_BUILD)
33         -@rm -f ipkg-configure
34         cd $(IPKG_BUILD); ./configure --host=$(host_alias) \
35           --build=$(build_triplet) --prefix=/usr \
36           --mandir=/usr/share/man \
37           --infodir=/usr/share/info \
38           --with-plugindir=/usr/lib/mozilla/plugins \
39           --enable-static --disable-shared --disable-kparts \
40           --enable-gui=qtopia --enable-media=none
41         @touch ipkg-configure
43 ipkg-unpack: $(top_builddir)/config.status
44         -@rm -f ipkg-*          # nuke everything, we're starting over
45         -@rm -f ipkg-unpack
46         rm -rf $(IPKG_BUILD)
47         tar jxf $(IPKG_BUILD).tar.bz2
48         @touch ipkg-unpack
50 ipkg-build: ipkg-configure
51         -@rm -f ipkg-build
52         $(MAKE) -C $(IPKG_BUILD) all
53         @touch ipkg-build
55 ipkg-install: ipkg-build Makefile
56         -@rm -f ipkg-install
57         $(MAKE) -C $(IPKG_BUILD) install DESTDIR=$(IPKG_TMP)
58         @touch ipkg-install
60 ipkg-depend: 
61         -@rm -f ipkg-depend
62         rsync -avc $(libdir)/libcurl* $(IPKG_TMP)/usr/lib
63         rsync -avc $(libdir)/libagg* $(IPKG_TMP)/usr/lib
64         rsync -avc $(libdir)/libboost_thread* $(IPKG_TMP)/usr/lib
65         rsync -avc $(libdir)/libboost_serialization* $(IPKG_TMP)/usr/lib
66         @touch ipkg-depend
68 ipk ipkg ipkg-bundle: ipkg-install # ipkg-depend
69         if ! test -d $(IPKG_TMP)/CONTROL ; then \
70           mkdir $(IPKG_TMP)/CONTROL; \
71         fi
72         topdir=`cd ${top_srcdir}; pwd`; \
73         for i in control postinst; do \
74           cp -f $${topdir}/packaging/ipkg/$$i $(IPKG_TMP)/CONTROL; \
75         done; \
76         for i in rules Gnash.desktop; do \
77           cp -f $${topdir}/packaging/ipkg/$$i $(IPKG_TMP)/ ; \
78         done;
79         ipkg-build $(IPKG_TMP)
81 ipkg-clean:
82         rm -fr ipkg-* $(IPKG_BUILD) $(IPKG_TMP) gnash*$(VERSION)*.ipk
84 .PHONY : ipkg ipk ipkg-bundle