2 # Copyright (C) 2005, 2006, 2007, 2008, 2009, 2010 Free Software Foundation, Inc.
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.
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
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}
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
43 ipkg-unpack: $(top_builddir)/config.status
44 -@rm -f ipkg-* # nuke everything, we're starting over
47 tar jxf $(IPKG_BUILD).tar.bz2
50 ipkg-build: ipkg-configure
52 $(MAKE) -C $(IPKG_BUILD) all
55 ipkg-install: ipkg-build Makefile
57 $(MAKE) -C $(IPKG_BUILD) install DESTDIR=$(IPKG_TMP)
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
68 ipk ipkg ipkg-bundle: ipkg-install # ipkg-depend
69 if ! test -d $(IPKG_TMP)/CONTROL ; then \
70 mkdir $(IPKG_TMP)/CONTROL; \
72 topdir=`cd ${top_srcdir}; pwd`; \
73 for i in control postinst; do \
74 cp -f $${topdir}/packaging/ipkg/$$i $(IPKG_TMP)/CONTROL; \
76 for i in rules Gnash.desktop; do \
77 cp -f $${topdir}/packaging/ipkg/$$i $(IPKG_TMP)/ ; \
79 ipkg-build $(IPKG_TMP)
82 rm -fr ipkg-* $(IPKG_BUILD) $(IPKG_TMP) gnash*$(VERSION)*.ipk
84 .PHONY : ipkg ipk ipkg-bundle