Imported Debian patch 0.4.5-0.3ubuntu6
authorReinhard Tartler <siretart@tauware.de>
Tue, 19 Jan 2010 19:57:37 +0000 (20:57 +0100)
committerAndres Mejia <mcitadel@gmail.com>
Tue, 4 May 2010 03:28:18 +0000 (23:28 -0400)
17 files changed:
debian/changelog [new file with mode: 0644]
debian/compat [new file with mode: 0644]
debian/control [new file with mode: 0644]
debian/control-mozilla-gpac [new file with mode: 0644]
debian/copyright [new file with mode: 0644]
debian/gpac.install [new file with mode: 0644]
debian/libgpac-dev.install [new file with mode: 0644]
debian/libgpac0.4.5.install [new file with mode: 0644]
debian/menu [new file with mode: 0644]
debian/mozilla-gpac.links [new file with mode: 0644]
debian/patches/01_soname.patch [new file with mode: 0644]
debian/patches/02_amd64.diff [new file with mode: 0644]
debian/patches/03_memeset-typo.diff [new file with mode: 0644]
debian/patches/04_glx-func-def.diff [new file with mode: 0644]
debian/patches/series [new file with mode: 0644]
debian/rules [new file with mode: 0755]
debian/watch [new file with mode: 0644]

diff --git a/debian/changelog b/debian/changelog
new file mode 100644 (file)
index 0000000..6e269f8
--- /dev/null
@@ -0,0 +1,222 @@
+gpac (0.4.5-0.3ubuntu6) lucid; urgency=low
+
+  * rebuild for ffmpeg versioned symbols
+
+ -- Reinhard Tartler <siretart@tauware.de>  Tue, 19 Jan 2010 20:57:37 +0100
+
+gpac (0.4.5-0.3ubuntu5) lucid; urgency=low
+
+  * Xvidcore transition (LP: #486169).
+  * Don't use ccache and -j option for make.
+  * Add ${misc:Depends} macro to the Depends fields.
+
+ -- Alessio Treglia <quadrispro@ubuntu.com>  Tue, 24 Nov 2009 00:04:42 +0100
+
+gpac (0.4.5-0.3ubuntu4) karmic; urgency=low
+
+  * debian/04_glx-func-def.diff: Define a glXGetProcAddress prototype so
+    that gcc doesn't assume it returns an int.  LP: #402177
+
+ -- Michael Terry <michael.terry@canonical.com>  Thu, 10 Sep 2009 10:06:36 -0400
+
+gpac (0.4.5-0.3ubuntu3) karmic; urgency=low
+
+  * Remove libmozjs-dev build dependency. Fixes FTBFS.
+
+ -- Onkar Shinde <onkarshinde@ubuntu.com>  Fri, 04 Sep 2009 01:19:48 +0530
+
+gpac (0.4.5-0.3ubuntu2) karmic; urgency=low
+
+  * No-change rebuild to pick up new ffmpeg shlibs file.
+
+ -- Stefan Potyra <sistpoty@ubuntu.com>  Sat, 29 Aug 2009 22:38:25 +0200
+
+gpac (0.4.5-0.3ubuntu1) karmic; urgency=low
+
+  * Merge from debian-multimedia.org (LP: #354825).
+   - Fix a double-free/heap corruption (LP: #135071).
+  * Remaining Ubuntu changes :
+   - Remove libamrnb-dev and libamrwb-dev build-depends. These packages don't 
+     exist in Ubuntu repositories.
+   - Increment libgpac-dev Replaces: gpac version to 0.4.2~rc2-0ubuntu1
+   - Build-depends on libxmlrpc-c3-dev because libxmlrpc-c-dev is not provided
+     in the Ubuntu package.
+
+ -- Julien Lavergne <julien.lavergne@gmail.com>  Fri, 01 May 2009 16:10:06 +0200
+
+gpac (0.4.5-0.3) unstable; urgency=low
+
+  * Added a patch from Ubuntu to fix a crash in MP4Box (Thanks to Kees Cook).
+
+ -- Christian Marillat <marillat@debian.org>  Fri, 06 Mar 2009 13:50:23 +0100
+
+gpac (0.4.5-0.2) unstable; urgency=low
+
+  * Don't Build-Depends for now on libopenjpeg-dev for alpha.
+
+ -- Christian Marillat <marillat@debian.org>  Thu, 29 Jan 2009 11:17:07 +0100
+
+gpac (0.4.5-0.1) unstable; urgency=low
+
+  * New patch : Don't install library in /usr/lib64.
+  * Build with '-fPIC -DPIC' for all arch.
+  * Add more cflags (-I/usr/include/mozjs -DXP_UNIX) for amd64.
+
+ -- Christian Marillat <marillat@debian.org>  Sun, 07 Dec 2008 10:05:15 +0100
+
+gpac (0.4.5-0.0) unstable; urgency=low
+
+  * New upstream release.
+
+ -- Christian Marillat <marillat@debian.org>  Thu, 04 Dec 2008 16:06:59 +0100
+
+gpac (0.4.4.svn20080612-0.1) unstable; urgency=low
+
+  * Fix bad library symlink in -dev package.
+  * Move libgpac-dev in libdevel section.
+
+ -- Christian Marillat <marillat@debian.org>  Fri, 13 Jun 2008 09:06:03 +0200
+
+gpac (0.4.4.svn20080612-0.0) unstable; urgency=low
+
+  * New cvs release.
+  * Added libgpac-dev in Build-Conflicts.
+
+ -- Christian Marillat <marillat@debian.org>  Thu, 12 Jun 2008 19:57:14 +0200
+
+gpac (0.4.4-0.5) unstable; urgency=low
+
+  * Added ccache support.
+  * Rebuild against latest ffmpeg libraries.
+
+ -- Christian Marillat <marillat@debian.org>  Wed, 21 May 2008 19:13:01 +0200
+
+gpac (0.4.4-0.4) unstable; urgency=low
+
+  * Rebuild agains't the latest libavformat.
+
+ -- Christian Marillat <marillat@debian.org>  Sun, 17 Feb 2008 12:34:30 +0100
+
+gpac (0.4.4-0.3ubuntu4) jaunty; urgency=low
+
+  * Add 20_memset_typo.dpatch: correct the chpl_New function to not
+    overwrite memory during initialization (LP: #273075).
+
+ -- Kees Cook <kees@ubuntu.com>  Thu, 05 Mar 2009 10:56:07 -0800
+
+gpac (0.4.4-0.3ubuntu3) jaunty; urgency=low
+
+  * Rebuild to pickup ffmpeg's new shlibs (LP: #289600).
+
+ -- Lionel Le Folgoc <mrpouit@ubuntu.com>  Sat, 15 Nov 2008 16:58:35 +0100
+
+gpac (0.4.4-0.3ubuntu2) intrepid; urgency=low
+
+  * Rebuild for the ffmpeg -> ffmpeg-free transition (LP: #245565). 
+
+ -- Michael Bienia <geser@ubuntu.com>  Tue, 08 Jul 2008 15:59:27 +0200
+
+gpac (0.4.4-0.3ubuntu1) hardy; urgency=low
+
+  * Merge with debian-multimedia (LP: #160403)
+  * Ubuntu changes:
+    - libav*cvs51-dev -> libav*-dev in Build-Depends
+    - Increment libgpac-dev Replaces: gpac version to 0.4.2~rc2-0ubuntu1
+    - Set Maintainer to MOTUs
+
+ -- John Dong <jdong@ubuntu.com>  Sun, 18 Nov 2007 02:27:19 -0500
+
+gpac (0.4.4-0.3) unstable; urgency=low
+
+  * New patch from Carlo Wood to add support for files larger than 2GB.
+
+ -- Christian Marillat <marillat@debian.org>  Wed, 01 Aug 2007 19:28:14 +0200
+
+gpac (0.4.4-0.2) unstable; urgency=low
+
+  * ligpac-dev should replace gpac.
+
+ -- Christian Marillat <marillat@debian.org>  Thu, 14 Jun 2007 11:45:11 +0200
+
+gpac (0.4.4-0.1) unstable; urgency=low
+
+  * Don't try to build the mozilla plugin. Doesn't build at least on amd64.
+
+ -- Christian Marillat <marillat@debian.org>  Wed, 13 Jun 2007 22:49:06 +0200
+
+gpac (0.4.4-0.0) unstable; urgency=low
+
+  * New upstream release.
+
+ -- Christian Marillat <marillat@debian.org>  Fri, 01 Jun 2007 17:59:15 +0200
+
+gpac (0.4.2-0.0) unstable; urgency=low
+
+  * New upstream release.
+  * Add libssl-dev in Builde-Depends.
+
+ -- Christian Marillat <marillat@debian.org>  Mon,  7 Aug 2006 11:23:27 +0200
+
+gpac (0.4.0+rc2-0.4) unstable; urgency=low
+
+  * Build with -fPIC for all archs.
+  * Small patch from cvs to build on 64 bits arch.
+
+ -- Christian Marillat <marillat@debian.org>  Wed, 14 Jun 2006 16:17:48 +0200
+
+gpac (0.4.0+rc2-0.3) unstable; urgency=low
+
+  * Build for amd64.
+
+ -- Christian Marillat <marillat@debian.org>  Mon, 12 Jun 2006 10:41:51 +0200
+
+gpac (0.4.0+rc2-0.2) unstable; urgency=low
+
+  * Add libxml2-dev in Build-depends.
+  * Use --extra-cflags to add more flags to gcc.
+
+ -- Christian Marillat <marillat@debian.org>  Wed,  3 May 2006 10:08:29 +0200
+
+gpac (0.4.0+rc2-0.1) unstable; urgency=low
+
+  * Rebuild against the latest libfaad.
+
+ -- Christian Marillat <marillat@debian.org>  Sun, 23 Apr 2006 15:12:49 +0200
+
+gpac (0.4.0+rc2-0.0) unstable; urgency=low
+
+  * New upstream release.
+
+ -- Christian Marillat <marillat@debian.org>  Thu, 22 Dec 2005 16:55:33 +0100
+
+gpac (0.3.0-0.0) unstable; urgency=low
+
+  * New upstream release.
+
+ -- Christian Marillat <marillat@debian.org>  Thu, 28 Jul 2005 15:23:16 +0200
+
+gpac (0.2.3-0.0) unstable; urgency=low
+
+  * New upstream release.
+
+ -- Christian Marillat <marillat@debian.org>  Wed, 26 Jan 2005 14:56:57 +0100
+
+gpac (0.2.0-0.0) unstable; urgency=low
+
+  * New upstream release.
+
+ -- Christian Marillat <marillat@debian.org>  Wed, 15 Sep 2004 16:03:58 +0200
+
+gpac (0.1.4-0.1) unstable; urgency=low
+
+  * Add fix from Oliver Cordes for amd64.
+  * Add support for SpiderMonkey JS library from Peter Chiocchetti.
+
+ -- Christian Marillat <marillat@debian.org>  Thu,  8 Jul 2004 23:38:18 +0200
+
+gpac (0.1.4-0.0) unstable; urgency=low
+
+  * Initial Release.
+
+ -- Christian Marillat <marillat@debian.org>  Fri, 18 Jun 2004 20:39:34 +0200
+
diff --git a/debian/compat b/debian/compat
new file mode 100644 (file)
index 0000000..7f8f011
--- /dev/null
@@ -0,0 +1 @@
+7
diff --git a/debian/control b/debian/control
new file mode 100644 (file)
index 0000000..55d868f
--- /dev/null
@@ -0,0 +1,50 @@
+Source: gpac
+Section: graphics
+Priority: optional
+Maintainer: Ubuntu Developers <ubuntu-devel-discuss@lists.ubuntu.com>
+XSBC-Original-Maintainer: Christian Marillat <marillat@debian.org>
+Homepage: http://gpac.sourceforge.net
+Standards-Version: 3.8.0
+Build-Conflicts: libgpac-dev
+Build-Depends: debhelper (>= 7), libxvidcore-dev, libsdl1.2-dev,
+ libpng-dev, libfreetype6-dev, libjpeg62-dev, libmad0-dev, libwxgtk2.8-dev,
+ libxml2-dev, quilt, libssl-dev, libasound2-dev, freeglut3-dev,
+ xulrunner-dev, libpulse-dev, libfaad-dev, libogg-dev, libjack-dev, libxv-dev,
+ libxmlrpc-c3-dev, libvorbis-dev, libtheora-dev, liba52-0.7.4-dev,
+ libopenjpeg-dev [!alpha], libavcodec-dev, libavformat-dev
+
+Package: gpac
+Architecture: any
+Depends: ${shlibs:Depends}, ${misc:Depends}
+Description: multimedia framework based on the MPEG-4 Systems standard
+ The main development goal is to provide a clean (a.k.a. readable by as many
+ people as possible), small and flexible alternative to the MPEG-4 Systems
+ reference software (known as IM1 and distributed in ISO/IEC 14496-5). The
+ MPEG-4 Reference software is indeed a very large piece of software,
+ designed to verify the standard rather than provide a small,
+ production-stable software.
+
+Package: libgpac0.4.5
+Architecture: any
+Provides: libgpac
+Depends: ${shlibs:Depends}, ${misc:Depends}
+Description: multimedia framework based on the MPEG-4 Systems standard
+ The main development goal is to provide a clean (a.k.a. readable by as many
+ people as possible), small and flexible alternative to the MPEG-4 Systems
+ reference software (known as IM1 and distributed in ISO/IEC 14496-5). The
+ MPEG-4 Reference software is indeed a very large piece of software,
+ designed to verify the standard rather than provide a small,
+ production-stable software.
+
+Package: libgpac-dev
+Architecture: any
+Section: libdevel
+Depends: libgpac0.4.5, ${misc:Depends}
+Replaces: gpac (<= 0.4.2~rc2-0ubuntu1)
+Description: multimedia framework based on the MPEG-4 Systems standard
+ The main development goal is to provide a clean (a.k.a. readable by as many
+ people as possible), small and flexible alternative to the MPEG-4 Systems
+ reference software (known as IM1 and distributed in ISO/IEC 14496-5). The
+ MPEG-4 Reference software is indeed a very large piece of software,
+ designed to verify the standard rather than provide a small,
+ production-stable software.
diff --git a/debian/control-mozilla-gpac b/debian/control-mozilla-gpac
new file mode 100644 (file)
index 0000000..082da7e
--- /dev/null
@@ -0,0 +1,62 @@
+Source: gpac
+Section: graphics
+Priority: optional
+Maintainer: Christian Marillat <marillat@debian.org>
+Bugs: mailto:marillat@debian.org
+Standards-Version: 3.7.2
+Build-Depends: debhelper (>= 5), libxvidcore4-dev, libsdl1.2-dev,
+ libpng-dev, libfreetype6-dev, libjpeg62-dev, libavcodeccvs51-dev, libmad0-dev,
+ libmozjs-dev [i386], libwxgtk2.6-dev, libxml2-dev, dpatch, libssl-dev, libavformatcvs51-dev,
+ freeglut3-dev, libasound2-dev
+
+Package: gpac
+Architecture: any
+Depends: ${shlibs:Depends}
+Description: multimedia framework based on the MPEG-4 Systems standard
+ The main development goal is to provide a clean (a.k.a. readable by as many
+ people as possible), small and flexible alternative to the MPEG-4 Systems
+ reference software (known as IM1 and distributed in ISO/IEC 14496-5). The
+ MPEG-4 Reference software is indeed a very large piece of software,
+ designed to verify the standard rather than provide a small,
+ production-stable software.
+ . 
+ http://gpac.sourceforge.net
+
+Package: libgpac
+Architecture: any
+Depends: ${shlibs:Depends}
+Description: multimedia framework based on the MPEG-4 Systems standard
+ The main development goal is to provide a clean (a.k.a. readable by as many
+ people as possible), small and flexible alternative to the MPEG-4 Systems
+ reference software (known as IM1 and distributed in ISO/IEC 14496-5). The
+ MPEG-4 Reference software is indeed a very large piece of software,
+ designed to verify the standard rather than provide a small,
+ production-stable software.
+ . 
+ http://gpac.sourceforge.net
+
+Package: libgpac-dev
+Architecture: any
+Depends: ${shlibs:Depends}
+Description: multimedia framework based on the MPEG-4 Systems standard
+ The main development goal is to provide a clean (a.k.a. readable by as many
+ people as possible), small and flexible alternative to the MPEG-4 Systems
+ reference software (known as IM1 and distributed in ISO/IEC 14496-5). The
+ MPEG-4 Reference software is indeed a very large piece of software,
+ designed to verify the standard rather than provide a small,
+ production-stable software.
+ . 
+ http://gpac.sourceforge.net
+
+Package: mozilla-gpac
+Architecture: i386
+Depends: ${shlibs:Depends}
+Description: multimedia framework based on the MPEG-4 Systems standard
+ The main development goal is to provide a clean (a.k.a. readable by as many
+ people as possible), small and flexible alternative to the MPEG-4 Systems
+ reference software (known as IM1 and distributed in ISO/IEC 14496-5). The
+ MPEG-4 Reference software is indeed a very large piece of software,
+ designed to verify the standard rather than provide a small,
+ production-stable software.
+ . 
+ http://gpac.sourceforge.net
diff --git a/debian/copyright b/debian/copyright
new file mode 100644 (file)
index 0000000..388ab61
--- /dev/null
@@ -0,0 +1,19 @@
+This package was debianized by Christian Marillat <marillat@debian.org> on
+Fri, 18 Jun 2004 20:39:34 +0200.
+
+It was downloaded from http://sourceforge.net/project/showfiles.php?group_id=84101
+
+Upstream Author: Jean Le Feuvre <jeanlf@users.sourceforge.net>
+
+Copyright: 2000 - 2004 Jean Le Feuvre
+
+    You should have received a copy of the GNU Lesser General Public
+    License along with the GNU C Library; if not, write to the Free
+    Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
+    02110-1301 USA.
+
+On Debian systems, the complete text of the GNU Library
+General Public License can be found in `/usr/share/common-licenses/LGPL-2.1'.
+
+The Debian packaging is copyright 2004, Christian Marillat <marillat@debian.org> and
+is licensed under the GPL, see `/usr/share/common-licenses/GPL-2'.
diff --git a/debian/gpac.install b/debian/gpac.install
new file mode 100644 (file)
index 0000000..68ba559
--- /dev/null
@@ -0,0 +1,4 @@
+usr/bin
+usr/share/man/man1
+usr/lib/gpac
+usr/share/gpac/gpac.mp4
diff --git a/debian/libgpac-dev.install b/debian/libgpac-dev.install
new file mode 100644 (file)
index 0000000..d2bf241
--- /dev/null
@@ -0,0 +1,2 @@
+usr/include
+usr/lib/libgpac_static.a
diff --git a/debian/libgpac0.4.5.install b/debian/libgpac0.4.5.install
new file mode 100644 (file)
index 0000000..ca6b0fc
--- /dev/null
@@ -0,0 +1 @@
+usr/lib/libgpac.so.0.4.5
diff --git a/debian/menu b/debian/menu
new file mode 100644 (file)
index 0000000..6870a0f
--- /dev/null
@@ -0,0 +1,2 @@
+?package(gpac):needs="text" section="Applications/Viewers"\
+  title="gpac" command="/usr/bin/MP4Client"
diff --git a/debian/mozilla-gpac.links b/debian/mozilla-gpac.links
new file mode 100644 (file)
index 0000000..aa95528
--- /dev/null
@@ -0,0 +1,4 @@
+usr/lib/mozilla/plugins/nposmozilla.so usr/lib/iceape/plugins/nposmozilla.so
+usr/lib/mozilla/plugins/nposmozilla.xpt usr/lib/iceape/plugins/nposmozilla.xpt
+usr/lib/mozilla/plugins/nposmozilla.so usr/lib/iceweasel/plugins/nposmozilla.so
+usr/lib/mozilla/plugins/nposmozilla.xpt usr/lib/iceweasel/plugins/nposmozilla.xpt
diff --git a/debian/patches/01_soname.patch b/debian/patches/01_soname.patch
new file mode 100644 (file)
index 0000000..b086ea3
--- /dev/null
@@ -0,0 +1,13 @@
+Index: gpac-0.4.5/src/Makefile
+===================================================================
+--- gpac-0.4.5.orig/src/Makefile       2008-12-04 18:57:33.000000000 +0100
++++ gpac-0.4.5/src/Makefile    2008-12-04 18:58:30.000000000 +0100
+@@ -179,7 +179,7 @@
+ OBJSPIC=$(OBJS)
+ endif
+-LD_SONAME="-Wl,-soname,$(LIB)"
++LD_SONAME="-Wl,-soname,libgpac.so.0.4.5"
+ ifeq ($(CONFIG_DARWIN), yes)
+ LD_SONAME=""
+ endif
diff --git a/debian/patches/02_amd64.diff b/debian/patches/02_amd64.diff
new file mode 100644 (file)
index 0000000..f0eadd6
--- /dev/null
@@ -0,0 +1,13 @@
+Index: gpac-0.4.5/configure
+===================================================================
+--- gpac-0.4.5.orig/configure  2008-12-04 22:23:57.000000000 +0100
++++ gpac-0.4.5/configure       2008-12-04 22:24:07.000000000 +0100
+@@ -222,7 +222,7 @@
+     if [ x"$canon_arch" = x"x86_64" -o x"$canon_arch" = x"amd64" ]; then
+       if [ -z "`echo $CFLAGS | grep -- -m32`"  ]; then
+         cpu="x86_64"
+-      libdir="lib64"
++      libdir="lib"
+         #that's a bit crude...
+         PIC_CFLAGS="-fPIC -DPIC"
+         want_pic="yes"
diff --git a/debian/patches/03_memeset-typo.diff b/debian/patches/03_memeset-typo.diff
new file mode 100644 (file)
index 0000000..a165028
--- /dev/null
@@ -0,0 +1,13 @@
+Index: gpac-0.4.5/src/isomedia/box_code_base.c
+===================================================================
+--- gpac-0.4.5.orig/src/isomedia/box_code_base.c       2009-03-06 13:39:59.000000000 +0100
++++ gpac-0.4.5/src/isomedia/box_code_base.c    2009-03-06 13:40:23.000000000 +0100
+@@ -109,7 +109,7 @@
+       
+       tmp = (GF_ChapterListBox *) malloc(sizeof(GF_ChapterListBox));
+       if (tmp == NULL) return NULL;
+-      memset(tmp, 0, sizeof(GF_CopyrightBox));
++      memset(tmp, 0, sizeof(GF_ChapterListBox));
+       tmp->list = gf_list_new();
+       gf_isom_full_box_init((GF_Box *)tmp);
+       tmp->type = GF_ISOM_BOX_TYPE_CHPL;
diff --git a/debian/patches/04_glx-func-def.diff b/debian/patches/04_glx-func-def.diff
new file mode 100644 (file)
index 0000000..8f02adc
--- /dev/null
@@ -0,0 +1,12 @@
+Index: gpac-0.4.5/src/compositor/visual_manager_3d_gl.c
+===================================================================
+--- gpac-0.4.5.orig/src/compositor/visual_manager_3d_gl.c      2009-09-10 09:52:37.000000000 -0400
++++ gpac-0.4.5/src/compositor/visual_manager_3d_gl.c   2009-09-10 09:58:53.000000000 -0400
+@@ -70,6 +70,7 @@
+ #elif defined (WIN32)
+ #define GET_GLFUN(__name) (PFNGLARBMULTITEXTUREPROC) wglGetProcAddress(__name) 
+ #else
++extern void (*glXGetProcAddress(const GLubyte *procname))( void );
+ #define GET_GLFUN(__name) (PFNGLARBMULTITEXTUREPROC) glXGetProcAddress(__name) 
+ #endif
diff --git a/debian/patches/series b/debian/patches/series
new file mode 100644 (file)
index 0000000..2a2620b
--- /dev/null
@@ -0,0 +1,4 @@
+01_soname.patch
+02_amd64.diff
+03_memeset-typo.diff
+04_glx-func-def.diff
diff --git a/debian/rules b/debian/rules
new file mode 100755 (executable)
index 0000000..7f2d25a
--- /dev/null
@@ -0,0 +1,104 @@
+#!/usr/bin/make -f
+
+#export DH_VERBOSE=1
+
+include /usr/share/quilt/quilt.make
+
+DEB_HOST_GNU_TYPE   ?= $(shell dpkg-architecture -qDEB_HOST_GNU_TYPE)
+DEB_BUILD_GNU_TYPE  ?= $(shell dpkg-architecture -qDEB_BUILD_GNU_TYPE)
+DEBIAN_ARCH = $(shell dpkg-architecture -qDEB_BUILD_ARCH)
+
+CFLAGS = -Wall -g
+LDFLAGS=-Wl,--as-needed
+
+ifeq "$(DEBIAN_ARCH)" "amd64"
+       MOREOPTIONS= --use-js=no
+endif
+
+ifneq ($(DEB_HOST_GNU_TYPE),$(DEB_BUILD_GNU_TYPE))
+        CROSS= --build $(DEB_BUILD_GNU_TYPE) --host $(DEB_HOST_GNU_TYPE)
+else
+        CROSS= --build $(DEB_BUILD_GNU_TYPE)
+endif
+
+configure: configure-stamp
+configure-stamp: debian/stamp-patched
+       dh_testdir
+
+       chmod 755 configure
+       ./configure $(CROSS) --prefix=/usr --mandir=\$${prefix}/share/man \
+       --extra-cflags="-fPIC -DPIC -I/usr/include/mozjs -DXP_UNIX $(CFLAGS)" \
+       --cc="$(CC)" CXX="$(CXX)" --enable-joystick
+
+       touch $@
+
+build: build-stamp
+build-stamp: configure-stamp
+       dh_testdir
+
+# -j doesn't work (06 march 2009).
+       $(MAKE)
+
+       touch $@
+
+clean:
+       dh_testdir
+       dh_testroot
+       rm -f build-stamp configure-stamp
+
+       [ ! -f config.mak ] || $(MAKE) distclean
+
+       debian/rules unpatch
+
+       dh_clean config.h bin/gcc/libgpac*
+
+install: build
+       dh_testdir
+       dh_testroot
+       dh_prep
+       dh_installdirs
+
+ifeq "$(DEBIAN_ARCH)" "amd64"
+       dh_installdirs usr/lib64
+endif
+
+
+
+       $(MAKE) install prefix=$(CURDIR)/debian/tmp/usr \
+       moddir=$(CURDIR)/debian/tmp/usr/lib/gpac
+
+       $(MAKE) install-lib prefix=$(CURDIR)/debian/tmp/usr
+
+       mv debian/tmp/usr/lib/libgpac-0.4.5.so \
+       debian/tmp/usr/lib/libgpac.so.0.4.5
+
+       rm debian/tmp/usr/lib/libgpac.so
+       dh_link -plibgpac-dev usr/lib/libgpac.so.0.4.5 usr/lib/libgpac.so
+
+       dh_install --fail-missing
+
+# Build architecture-independent files here.
+binary-indep: build install
+# We have nothing to do by default.
+
+# Build architecture-dependent files here.
+binary-arch: build install
+       dh_testdir
+       dh_testroot
+       dh_installchangelogs Changelog
+       dh_installdocs doc/configuration.html
+       dh_installmenu
+       dh_installman doc/man/*.1
+       dh_link
+       dh_strip
+       dh_compress
+       dh_fixperms
+       dh_makeshlibs -V --major=0.4.5
+       dh_installdeb
+       dh_shlibdeps -ldebian/libgpac0.4.5/usr/lib
+       dh_gencontrol
+       dh_md5sums
+       dh_builddeb
+
+binary: binary-indep binary-arch
+.PHONY: build clean binary-indep binary-arch binary install 
diff --git a/debian/watch b/debian/watch
new file mode 100644 (file)
index 0000000..36dacde
--- /dev/null
@@ -0,0 +1,3 @@
+version=3
+
+http://sf.net/gpac/gpac-(.*).tar.gz