summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--make/include/tool.defs1
-rw-r--r--pkg/linux/debian/README.Debian74
-rw-r--r--pkg/linux/debian/changelog100
-rw-r--r--pkg/linux/debian/compat1
-rw-r--r--pkg/linux/debian/control30
-rw-r--r--pkg/linux/debian/copyright897
-rw-r--r--pkg/linux/debian/docs4
-rw-r--r--pkg/linux/debian/handbrake-cli.dirs1
-rw-r--r--pkg/linux/debian/handbrake-cli.install1
-rw-r--r--pkg/linux/debian/handbrake-gtk.dirs5
-rw-r--r--pkg/linux/debian/handbrake-gtk.docs1
-rw-r--r--pkg/linux/debian/handbrake-gtk.install5
-rwxr-xr-xpkg/linux/debian/rules87
-rw-r--r--pkg/linux/module.defs12
-rw-r--r--pkg/linux/module.rules15
15 files changed, 1234 insertions, 0 deletions
diff --git a/make/include/tool.defs b/make/include/tool.defs
index 0ccccd728..9a5d109fe 100644
--- a/make/include/tool.defs
+++ b/make/include/tool.defs
@@ -8,3 +8,4 @@ RM.exe = rm
TAR.exe = tar
TOUCH.exe = touch
WGET.exe = wget
+MV.exe = mv
diff --git a/pkg/linux/debian/README.Debian b/pkg/linux/debian/README.Debian
new file mode 100644
index 000000000..541ccc656
--- /dev/null
+++ b/pkg/linux/debian/README.Debian
@@ -0,0 +1,74 @@
+handbrake for Debian
+--------------------
+
+HandBrake bundles its own copies of ffmpeg and related media libraries. This is
+an upstream decision that the Ubuntu maintainers will respect.
+
+This is done by running contrib/getcontrib.sh which wgets each library from
+HandBrake's website.
+
+
+Upstream has asked us to do this because they have modified their libraries to
+address the finickiness of the platforms that they support, along with
+prerelease patches that add support for advanced HandBrake functionality such as
+surround-sound downmixing.
+
+HandBrake then statically links against these libraries, and they are not
+installed to the system so it doesn't interfere with other parts of the system.
+Different or older versions of these packages are included in the Ubuntu
+distribution already, and have passed our guidelines for Multiverse inclusion.
+
+
+=== Detailed Breakdown of Bundled Libraries and Reasons ===
+
+a52dec - 0.7.4
+patch to allow downmix to dolby prologic ii
+
+faad2 2.6.1
+patch to configure.ac so it will build with libtool 2.2.x
+
+ffmpeg svn 15462
+patch for building on beos
+patch that adds aac-latm codec
+patch fixes memory leak provoked by h264 streams with lots of errors
+patch for cygwin
+patch for solaris
+
+libdca svn 81
+newer than released version
+
+libdvdread 0.9.7
+patch for os x, changes path to dvdcss
+patch for cygwin, configure fixes
+
+faac
+patch for cygwin configure
+
+lame version 3.98
+
+libmp4v2 svn 45
+project was stagnant. using a fork that has picked up development
+
+libmkv 0.6.3
+
+mpeg2dec 0.5.1
+
+libogg 1.1.3
+
+libsamplerate 0.1.4
+
+libvorbis aotuv fork b5
+
+libtheora 1.0
+
+libx264 git 1028
+patch for cygwin configure
+patch for solaris build scripts
+patch to allow forcing an IDR frame
+
+xvidcore 1.1.3
+patch for os x configure
+patch for cygwin configure
+patch configure to recognize nasm 2.0
+
+ -- John Dong <[email protected]> Fri, 28 Nov 2008 14:17:16 -0500
diff --git a/pkg/linux/debian/changelog b/pkg/linux/debian/changelog
new file mode 100644
index 000000000..d90ee39b9
--- /dev/null
+++ b/pkg/linux/debian/changelog
@@ -0,0 +1,100 @@
+handbrake (svn2573) jaunty; urgency=low
+ * CORE
+ - Allows sources with no audio to be encoded
+ - TrueHD and DTS-HD demuxing
+ - Transport stream improvements
+ - Better reading of audio source parameters
+ - Support for 8-bit audio sources
+ - Fixed 5.1 Vorbis channel maps
+ - Better DTS handling
+ - Better VC1 handling
+ - Better frame synchronization validation
+ - Better identification of valid tracks in streams
+ - Better handle of New Zealand FreeView broadcasts
+ - Avoids a crash when a user tries to encode the same audio multiple times with file inputs, a big problem with the Universal and AppleTV presets
+ - Preserves metadata when encoding MP4 sources
+ - Avoids libavcodec threading issue by better locking
+ - Fixes aspect ratio rounding bug
+ - ffmpeg libraries update, libmp4v2 update, libx264 update
+ - Other assorted improvements
+
+ * MAC
+ - Live preview encoding
+ - Picture settings split off to its own window instead of a sheet, with a button in the toolbar
+ - Variable number of preview images, default is now 30 not 10
+ - Logging level preference
+ - On launch preference for whether or not to show Open Source window
+ - Autocrop re-enabled for AppleTV Legacy preset
+ - Support dropped for user presets generated in 0.9.2 or earlier
+ - Correct dates for single-serving activity logs
+ - Fixes issue where changing format reset video codec selection
+ - Other assorted interface enhancements and bug fixes
+
+ * WIN
+ - XML-based queue system
+ - Removed RAM limitation
+ - Better memory alignment in Cygwin
+ - Other assorted interface enhancements and bug fixes
+
+ * LIN
+ - Live preview encoding
+ - Picture settings split off to its own window with a button in the toolbar
+ - Variable number of preview images, default is now 30 not 10
+ - Interface improvements
+ - Logging level preference
+ - Other assorted interface enhancements and bug fixes
+
+ * CLI
+ - Added a --previews option to control how many preview images are scanned and whether or not they're written to disk (now defaults to not storing them)
+
+ -- John Stebbins <[email protected]> Sun, 21 Dec 2008 9:51:07 -0800
+
+handbrake (0.9.3+repack1-0ubuntu0~8.04jdong4) hardy; urgency=low
+
+ * Incorporate fixes suggested by John Stebbins:
+ - Don't have the buildsys override HB's optimized CFLAGS
+ - Do an official build (not a snapshot)
+ - dh_icons/dh_desktop to correctly install menu icon
+
+ -- John Dong <[email protected]> Wed, 17 Dec 2008 21:15:07 -0500
+
+handbrake (0.9.3+repack1-0ubuntu0~8.04jdong3) hardy; urgency=low
+
+ * Switch to bzip2 compression
+
+ -- John Dong <[email protected]> Mon, 01 Dec 2008 14:19:06 -0500
+
+handbrake (0.9.3+repack1-0ubuntu0~8.04jdong2) hardy; urgency=low
+
+ * Split the GUI from the CLI:
+ - handbrake-gtk: GUI frontend
+ - handbrake-cli: CLI frontend
+ - handbrake-common: README files and documentations common to both.
+
+ -- John Dong <[email protected]> Mon, 01 Dec 2008 12:39:22 -0500
+
+handbrake (0.9.3+repack1-0ubuntu0~8.10jdong1) intrepid; urgency=low
+
+ * Repacked orig.tar.gz:
+ - Bundled contribs/ libraries so they don't get fetched as a part of the
+ build process.
+ - Documented this process in README.Debian
+ * TODO:
+ - Document debian/copyright for contrib libraries
+ - Split handbrake-cli and handbrake-gtk
+
+ -- John Dong <[email protected]> Sat, 29 Nov 2008 00:31:50 -0500
+
+handbrake (0.9.3-0ubuntu0~8.10jdong2) jaunty; urgency=low
+
+ * UNRELEASED:
+ - Work-in-progress documenting debian/copyright
+
+ -- John Dong <[email protected]> Sat, 29 Nov 2008 00:26:56 -0500
+
+handbrake (0.9.3-0ubuntu0~8.10jdong1) jaunty; urgency=low
+
+ * Initial attempt at packaging
+
+ -- John Dong <[email protected]> Fri, 28 Nov 2008 14:17:16 -0500
+
diff --git a/pkg/linux/debian/compat b/pkg/linux/debian/compat
new file mode 100644
index 000000000..7f8f011eb
--- /dev/null
+++ b/pkg/linux/debian/compat
@@ -0,0 +1 @@
+7
diff --git a/pkg/linux/debian/control b/pkg/linux/debian/control
new file mode 100644
index 000000000..95feec481
--- /dev/null
+++ b/pkg/linux/debian/control
@@ -0,0 +1,30 @@
+Source: handbrake
+Section: graphics
+Priority: optional
+Maintainer: John Stebbins <[email protected]>
+Build-Depends: debhelper (>= 7), autotools-dev, libtool, libgtkhtml3.14-dev, libhal-storage-dev, intltool, autoconf, yasm (>= 0.7.0), libbz2-dev, zlib1g-dev
+Standards-Version: 3.7.3
+Homepage: http://www.handbrake.fr/
+
+Package: handbrake-cli
+Architecture: any
+Depends: ${shlibs:Depends}, ${misc:Depends}
+Conflicts: handbrake
+Description: versatile DVD ripper and video transcoder - command line
+ HandBrake is a versatile, easy-to-use tool for converting DVDs and other videos
+ into H.264, MPEG-4, or OGG formatted media. It's particularly useful for making
+ videos that are compatible with portable video devices such as the Apple
+ iPod/iPhone. This package contains the command-line variant,
+ HandBrakeCLI
+
+Package: handbrake-gtk
+Architecture: any
+Depends: ${shlibs:Depends}, ${misc:Depends}
+Conflicts: handbrake
+Description: versatile DVD ripper and video transcoder - GTK GUI
+ HandBrake is a versatile, easy-to-use tool for converting DVDs and other videos
+ into H.264, MPEG-4, or OGG formatted media. It's particularly useful for making
+ videos that are compatible with portable video devices such as the Apple
+ iPod/iPhone. This package contains the graphical variant, ghb.
+
+
diff --git a/pkg/linux/debian/copyright b/pkg/linux/debian/copyright
new file mode 100644
index 000000000..30c423a16
--- /dev/null
+++ b/pkg/linux/debian/copyright
@@ -0,0 +1,897 @@
+This package was debianized by John Dong <[email protected]> on
+Fri, 28 Nov 2008 14:17:16 -0500.
+
+It was downloaded from http://handbrake.fr/
+
+Upstream Author(s): See AUTHORS file for details
+
+ Eric Petit <[email protected]>
+ Laurent Aimar <[email protected]>
+ John Allen (?) <[email protected]> (johnallen)
+ Joe Crain <[email protected]> (dynaflash)
+ Damiano Galassi <[email protected]> (ritsuka)
+ Edward Groenendaal <[email protected]> (eddyg)
+ Rodney Hester <[email protected]> (rhester)
+ Andrew Kimpton <[email protected]> (awk)
+ Chris Lee <[email protected]>
+ Chris Long <[email protected]> (chrislong)
+ Brian Mario <Unknown> (brianmario)
+ Maurj <[email protected]> (maurj)
+ Mirkwood <[email protected]> (mirkwood)
+ Nyx <unknown> (Nyx)
+ Philippe Rigaux <[email protected]> (prigaux)
+ Jonathon Rubin <[email protected]> (jbrjake)
+ Scott <[email protected]> (sr55)
+ Chris Thoman <[email protected]> (huevos_rancheros)
+ Mark Krenek <[email protected]> (travistex)
+ Van Jacobson <[email protected]> (van)
+
+Copyright:
+
+ Copyright (C) 2008 by the HandBrake team (See AUTHORS)
+
+License:
+
+ This program is free software; you can redistribute it and/or modify
+ it under the terms of the GNU General Public License as published by
+ the Free Software Foundation; either version 2 of the License, or
+ (at your option) any later version.
+
+ This program is distributed in the hope that it will be useful,
+ but WITHOUT ANY WARRANTY; without even the implied warranty of
+ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ GNU General Public License for more details.
+
+ You should have received a copy of the GNU General Public License
+ along with this program; if not, write to the Free Software
+ Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
+
+The full text of this license is at `/usr/share/common-licenses/GPL'.
+
+---
+
+The Debian packaging is (C) 2008, John Dong <[email protected]> and
+is licensed under the GPL, see `/usr/share/common-licenses/GPL'.
+
+
+==== Contrib Libraries ====
+
+HandBrake also includes and statically links against several open source
+supporting libraries. The source code for these libraries may be found in the
+`contribs/' directory. The projects and authors are listed in the
+CREDITS file of the source. A copy is installed to
+`/usr/share/doc/handbrake-common/CREDITS' when HandBrake is installed. The
+source for each library is found in a .txt in the contribs directory. For
+example, `contribs/a52dec.tar.gz' is downloaded from the URL in
+`contribs/version_a52dec.txt'.
+
+--- a52dec ---
+
+License:
+
+ Copyright (C) 2000-2002 Michel Lespinasse <[email protected]>
+ Copyright (C) 1999-2000 Aaron Holtzman <[email protected]>
+
+ This program is free software; you can redistribute it and/or modify
+ it under the terms of the GNU General Public License as published by
+ the Free Software Foundation; either version 2 of the License, or
+ (at your option) any later version.
+
+ This program is distributed in the hope that it will be useful,
+ but WITHOUT ANY WARRANTY; without even the implied warranty of
+ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ GNU General Public License for more details.
+
+ You should have received a copy of the GNU General Public License
+ along with this program; 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 General Public License
+can be found in /usr/share/common-licenses/GPL file.
+
+--- faad2 ---
+Upstream Authors: menno <[email protected]>
+ Alexander Kurpiers <[email protected]>
+ M. Bakker <[email protected]>
+ Ahead Software AG
+ Nero AG
+Copyright: 2002-2005 M. Bakker
+ 2003-2005 Ahead Software AG
+ 2003-2005 Nero AG
+
+Other Authors: John Edwards
+ Bill May <[email protected]>
+ Quinnware
+ VideoLAN
+Copyright: 2002 John Edwards
+ 2003 Bill May
+ 1997-2002 Quinnware
+ 2004 VideoLAN
+
+License Declaration:
+
+The GPL may be found in the file /usr/share/common-licenses/GPL.
+
+The upstream source has the follwing license declaration:
+---
+This program is free software; you can redistribute it and/or modify it under
+the terms of the GNU General Public License as published by the Free Software
+Foundation; either version 2 of the License, or (at your option) any later
+version.
+
+This program is distributed in the hope that it will be useful, but WITHOUT ANY
+WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A
+PARTICULAR PURPOSE. See the GNU General Public License for more details.
+
+You should have received a copy of the GNU General Public License along with
+this program; if not, write to the Free Software Foundation, Inc., 59 Temple
+Place - Suite 330, Boston, MA 02111-1307, USA.
+
+Any non-GPL usage of this software or parts of this software is strictly
+forbidden.
+
+The "appropriate copyright message" mentioned in section 2c of the GPLv2 must
+read: "Code from FAAD2 is copyright (c) Nero AG, www.nero.com"
+---
+
+The aacDECdrop module has the following license declaration:
+---
+This program is distributed under the GNU General Public License, version 2. A
+copy of this license is included with this source.
+---
+
+Some files (extra components and plugins) and the Debian packaging have the
+following license declaration:
+---
+This program is free software; you can redistribute it and/or modify it under
+the terms of the GNU General Public License as published by the Free Software
+Foundation; either version 2 of the License, or (at your option) any later
+version.
+
+This program is distributed in the hope that it will be useful, but WITHOUT ANY
+WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A
+PARTICULAR PURPOSE. See the GNU General Public License for more details.
+---
+
+--- ffmpeg ---
+
+Upstream Authors: Fabrice Bellard
+ Alex Beregszaszi
+ BERO
+ Mario Brito
+ Ronald Bultje
+ Tim Ferguson
+ Brian Foley
+ Arpad Gereoffy
+ Philip Gladstone
+ Vladimir Gneushev
+ Wolfgang Hesseler
+ Falk Hueffner
+ Zdenek Kabelac
+ Robin Kay
+ Todd Kirby
+ Nick Kurshev
+ Mike Melanson
+ Michael Niedermayer
+ François Revol
+ Roman Shaposhnik
+ Dieter Shirley
+ Juan J. Sierralta
+ Ewald Snel
+ Leon van Stuivenberg
+ Roberto Togni
+ Lionel Ulmer
+
+Copyright (c) 2000-2004 Fabrice Bellard et al.
+
+The following files are licensed under the GNU GPL, as clarified below:
+
+ * ffmpeg.c
+ * libavcodec:
+ + dtsdec.c
+ + i386/idct_mmx.c
+ + liba52/*.[ch]
+ * libavformat:
+ + x11grab.c
+ + gxfenc.c
+ * libpostproc:
+ + postprocess_internal.h
+ + postprocess_altivec_template.c
+ + postprocess.h
+ + postprocess_template.c
+ + postprocess.c
+ + mangle.h
+ * libswscale:
+ + swscale.c
+ + swscale-example.c
+ + yuv2rgb_template.c
+ + swscale_altivec_template.c
+ + yuv2rgb_altivec.c
+ + swscale_template.c
+ + rgb2rgb_template.c
+ + rgb2rgb.c
+ + cs_test.c
+ + yuv2rgb_mlib.c
+ + yuv2rgb.c
+
+ | This library is free software; you can redistribute it and/or
+ | modify it under the terms of the GNU General Public License as
+ | published by the Free Software Foundation; either version 2 of
+ | the License, or (at your option) any later version.
+ |
+ | This library is distributed in the hope that it will be useful,
+ | but WITHOUT ANY WARRANTY; without even the implied warranty of
+ | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ | Lesser General Public License for more details.
+ |
+ | You should have received a copy of the GNU General Public License
+ | along with this program; if not, write to the Free Software
+ | Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
+
+The debian/libfaad directory contains header from the libfaad-dev package.
+
+ | Upstream Authors: menno <[email protected]>
+ | Alexander Kurpiers <[email protected]>
+ | M. Bakker <[email protected]>
+ | Ahead Software AG
+ | Nero AG
+ | Copyright: 2002-2005 M. Bakker
+ | 2003-2005 Ahead Software AG
+ | 2003-2005 Nero AG
+ |
+ | Other Authors: John Edwards
+ | Bill May <[email protected]>
+ | Quinnware
+ | VideoLAN
+ | Copyright: 2002 John Edwards
+ | 2003 Bill May
+ | 1997-2002 Quinnware
+ | 2004 VideoLAN
+ |
+ | License Declaration:
+ |
+ | The GPL may be found in the file /usr/share/common-licenses/GPL.
+ |
+ | The upstream source has the follwing license declaration:
+ | ---
+ | This program is free software; you can redistribute it and/or modify it under
+ | the terms of the GNU General Public License as published by the Free Software
+ | Foundation; either version 2 of the License, or (at your option) any later
+ | version.
+ |
+ | This program is distributed in the hope that it will be useful, but WITHOUT ANY
+ | WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A
+ | PARTICULAR PURPOSE. See the GNU General Public License for more details.
+ |
+ | You should have received a copy of the GNU General Public License along with
+ | this program; if not, write to the Free Software Foundation, Inc., 59 Temple
+ | Place - Suite 330, Boston, MA 02111-1307, USA.
+
+The debian/liba52 directory contains a copy of the header file from the
+liba52-0.7.4-dev package.
+
+ | License:
+ |
+ | Copyright (C) 2000-2002 Michel Lespinasse <[email protected]>
+ | Copyright (C) 1999-2000 Aaron Holtzman <[email protected]>
+ |
+ | This program is free software; you can redistribute it and/or modify
+ | it under the terms of the GNU General Public License as published by
+ | the Free Software Foundation; either version 2 of the License, or
+ | (at your option) any later version.
+ |
+ | This program is distributed in the hope that it will be useful,
+ | but WITHOUT ANY WARRANTY; without even the implied warranty of
+ | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ | GNU General Public License for more details.
+ |
+ | You should have received a copy of the GNU General Public License
+ | along with this program; if not, write to the Free Software
+ | Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
+
+The rest of the code is licensed under the GNU LGPL:
+
+ | This library is free software; you can redistribute it and/or
+ | modify it under the terms of the GNU Lesser General Public License as
+ | published by the Free Software Foundation; either version 2.1 of
+ | the License, or (at your option) any later version.
+ |
+ | This library is distributed in the hope that it will be useful,
+ | but WITHOUT ANY WARRANTY; without even the implied warranty of
+ | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ | Lesser General Public License for more details.
+ |
+ | You should have received a copy of the GNU General Public License
+ | along with this program; if not, write to the Free Software
+ | Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
+
+On Debian GNU/Linux systems, the complete text of the GNU General Public
+License can be found in `/usr/share/common-licenses/GPL' and the text of the
+GNU Lesser General Public License is in `/usr/share/common-licenses/LGPL'.
+
+--- libdca ---
+
+Authors:
+Gildas Bazin <[email protected]> implementation of the
+DTS Coherent Acoustics decoder and current maintainer of libdts.
+
+Other libdts contributors include:
+ Sam Hocevar <[email protected]> - build system improvements and debian package
+
+While the libdts part of the source code was mostly written from scratch, this
+project was started from the a52dec code base so the original credits for
+a52dec are preserved:
+
+Aaron Holtzman <[email protected]> started the project and
+made the initial working implementation.
+
+Michel Lespinasse <[email protected]> did major changes for speed and
+conformance and is the current maintainer.
+
+Other contributors include:
+ Gildas Bazin <[email protected]> - mingw32 port
+ Billy Biggs <[email protected]> - most of liba52.txt
+ Jeroen Dobbelaere <[email protected]> - fixed point version
+ Eduard Hasenleithner <[email protected]> - gcc 3.0 fixes
+ H�kan Hjort <[email protected]> - Solaris output, mlib code
+ Charles M. Hannum <[email protected]> - fixes
+ Chris Hodges <[email protected]> - made the library reentrant
+ Michael Holzt <[email protected]> - OSS output.c and misc errata
+ Angelos Keromytis <[email protected]> - OpenBSD fixes
+ David I. Lehn <[email protected]> - API cleanup suggestion
+ Don Mahurin <[email protected]> - stdin support for extract_a52
+ Jim Miller <[email protected]> - IRIX output.c
+ Takefumi Sayo <[email protected]> - FreeBSD tweak
+ Shoji Tokunaga <[email protected]> - aif file output
+
+Copyright:
+
+ <Copyright © 2004-2008 Gildas Bazin <[email protected]>
+
+License:
+
+ You should have received a copy of the GNU General Public License with the
+ Debian GNU/Linux distribution in file /usr/share/common-licenses/GPL; if
+ not, write to the Free Software Foundation, Inc., 51 Franklin St, Fifth
+ Floor, Boston, MA 02110-1301, USA.
+
+--- libdvdread ---
+
+Author: Bjorn Englund <[email protected]>
+
+Copyright:
+ (C) 2000-2001 Bjorn Englund <[email protected]>
+ (C) 2000-2001 Hakan Hjort <[email protected]>
+ (C) 2000-2001 Billy Biggs <[email protected]>
+ (C) 2000-2001 Christian Wolff <[email protected]>
+License: GPL-2+
+ This program is free software; you can redistribute it and/or
+ modify it under the terms of the GNU General Public License
+ as published by the Free Software Foundation; either version 2
+ of the License, or (at your option) any later version.
+ .
+ This program is distributed in the hope that it will be useful,
+ but WITHOUT ANY WARRANTY; without even the implied warranty of
+ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ GNU General Public License for more details.
+ .
+ You should have received a copy of the GNU General Public License
+ along with this program; if not, write to the Free Software
+ Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
+ .
+ On Debian systems, the complete text of the GNU General Public License
+ can be found in /usr/share/common-licenses/GPL-2 file.
+
+
+--- faac ---
+
+Authors: (see AUTHORS in contrib/faac.tar.gz for more information)
+ lenox (Tony Lenox)
+ menno
+ oxygene2000/oxygene (?)
+ thebard ([email protected])
+ prkoat (?)
+ xfhobbes (?)
+ flyingfox (?)
+ eraser (?)
+ knik (Krzysztof Nikiel)
+ stux (Stuart Espey)
+ ca5e (Janne Hyvärinen)
+ danchr (Dan Christiansen)
+ corrados (Volker Fischer)
+
+
+Copyright: 2001 M. Bakker
+ You should have received a copy of the GNU General Public License with the
+ Debian GNU/Linux distribution in file /usr/share/common-licenses/GPL; if
+ not, write to the Free Software Foundation, Inc., 51 Franklin St, Fifth
+ Floor, Boston, MA 02110-1301, USA.
+
+--- LAME ---
+
+Authors:
+ The following people contributed to the LAME development:
+
+ Lauri Ahonen
+ Sakari Ailus
+ Tero Auvinen
+ Michal Bacik
+ Alex Ballegooy
+ Wilfried Behne
+ Bob Bell
+ Simon Blandford
+ Segher Boessenkool
+ Florian Bome
+ Lionel Bonnet
+ Gabriel Bouvigne
+ Rogério Theodoro de Brito
+ Erik de Castro Lopo
+ David Chandler
+ Michael Cheng
+ John Dahlstrom
+ Goran Dokic
+ James Droppo
+ Sergey Dubov
+ Dominique Duvivier
+ John Edwards
+ Alvaro Martinez Echevarria
+ Joakim Enerstam
+ Albert Faber
+ Nils Faerber
+ Sami Farin
+ Mikhail M. Fedotov
+ Joseph Fourier
+ Jani Frilander
+ Richard Gorton
+ Casper Gripenberg
+ Steffan Haeuser
+ Jeremy Hall
+ Paul Hartman
+ John Hayward-Warburton
+ Peder Hedlund
+ Robert Hegemann
+ Mathew Hendry
+ Magnus Holmgren
+ Vitaly Ivanov
+ Ben "Jacobs"
+ Tamito Kajiyama
+ Ti Kan
+ Mo Katz
+ Iwasa Kazmi
+ Ralf Kempkens
+ Frank Klemm
+ Aleksander Korzynski
+ Joachim Kuebart
+ Leonid Kulakov
+ Dmitry Kutsanov
+ Jarmo Laakkonen
+ An van Lam
+ Dennis Lambe Jr
+ Juha Laukala
+ Greg Lehey
+ Felix von Leitner
+ Rafael Luebbert
+ Macik
+ Lars Magne Ingebrigtsen
+ Scott Manley
+ Vladimir Marek
+ Goran Markovic
+ Sergey A. Maslyakov
+ Chris Matrakidis
+ Greg Maxwell
+ Chris Miller
+ Scott Miller
+ Darin Morrison
+ Tomasz Motylewski
+ Kimmo Mustonen
+ Dan Nelson
+ Nyaochi
+ Anton Oleynikov
+ Mike Oliphant
+ André Osterhues
+ Johannes Overmann
+ Gian-Carlo Pascutto
+ Jan Peman
+ Jan Rafaj
+ Gertjan van Ratingen
+ Miguel Revilla Rodriguez
+ Shawn Riley
+ Tim Ruddick
+ Ingo Saitz
+ Conrad Sanderson
+ Sergey Sapelin
+ William Schelter
+ Justin Schoeman
+ Anton Sergunov
+ Naoki Shibata
+ Sigbjørn Skjæret
+ Nathan Slingerland
+ Patrick De Smet
+ Acy Stapp
+ Mark Stephens
+ Jonathan Stott
+ Alexander Stumpf
+ Stephane Tavenard
+ Mark Taylor
+ Mikhail Teterin
+ Brad Threatt
+ Takehiro Tominaga
+ Warren Toomey
+ Atro Tossavainen
+ Roel Van Den Berghe
+ Kyle VanderBeek
+ Linus Walleij
+ Martin Weghofer
+ William Welch
+ Gerhard Wesp
+ Alfred Weyers
+ Christopher Wise
+ Ethan Yeo
+ Chuck Zenkus
+
+
+
+ Original ISO contributors:
+
+ Bill Aspromonte
+ Shaun Astarabadi
+ R. Bittner
+ Karlheinz Brandenburg
+ W. Joseph Carter
+ Jack Chang
+ Mike Coleman
+ Johnathan Devine
+ Ernst Eberlein
+ Dan Ellis
+ Peter Farrett
+ Jean-Georges Fritsch
+ Vlad Fruchter
+ Hendrik Fuchs
+ Bernhard Grill
+ Amit Gulati
+ Munsi Haque
+ Chuck Hsiao
+ Toshiyuki Ishino
+ Masahiro Iwadare
+ Earl Jennings
+ James Johnston
+ Leon v.d. Kerkhof
+ Don Lee
+ Mike Li
+ Yu-Tang Lin
+ Soren Neilsen
+ Simao F. Campos Neto
+ Mark Paley
+ Davis Pan
+ Tan Ah Peng
+ Kevin Peterson
+ Juan Pineda
+ Ernst F. Schroeder
+ Peter Siebert
+ Jens Spille
+ John Stewart
+ Sam Stewart
+ Al Tabayoyon
+ Kathy Wang
+ Franz-Otto Witte
+ Douglas Wong
+
+
+Copyright: 1999-2008 by LAME authors
+
+ LAME is free software; you can redistribute it and/or
+ modify it under the terms of the GNU Lesser General Public
+ License as published by the Free Software Foundation; either
+ version 2 of the License, or (at your option) any later version.
+
+ LAME is distributed in the hope that it will be useful,
+ but WITHOUT ANY WARRANTY; without even the implied warranty of
+ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ Lesser General Public License for more details.
+
+ You should have received a copy of the GNU Lesser General Public
+ License along with this 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'.
+
+
+--- libmp4v2 (mpeg4ip) ---
+
+libmp4v2 is a subset of the mpeg4ip project.
+Upstream Authors: menno ([email protected]) Alexander Kurpiers
+
+The mpeg4ip subset in libmp4v2.tar.gz is original code by menno
+and Alexander Kurpiers. It is licensed under the terms of the Mozilla Public
+License (MPL) version 1.1. The complete text of the license is reproduced at the
+end of this section.
+
+
+
+ MOZILLA PUBLIC LICENSE
+ Version 1.1
+
+ ---------------
+
+1. Definitions.
+
+ 1.0.1. "Commercial Use" means distribution or otherwise making the
+ Covered Code available to a third party.
+
+ 1.1. "Contributor" means each entity that creates or contributes to
+ the creation of Modifications.
+
+ 1.2. "Contributor Version" means the combination of the Original
+ Code, prior Modifications used by a Contributor, and the Modifications
+ made by that particular Contributor.
+
+ 1.3. "Covered Code" means the Original Code or Modifications or the
+ combination of the Original Code and Modifications, in each case
+ including portions thereof.
+
+ 1.4. "Electronic Distribution Mechanism" means a mechanism generally
+ accepted in the software development community for the electronic
+ transfer of data.
+
+ 1.5. "Executable" means Covered Code in any form other than Source
+ Code.
+
+ 1.6. "Initial Developer" means the individual or entity identified
+ as the Initial Developer in the Source Code notice required by Exhibit
+ A.
+
+ 1.7. "Larger Work" means a work which combines Covered Code or
+ portions thereof with code not governed by the terms of this License.
+
+ 1.8. "License" means this document.
+
+ 1.8.1. "Licensable" means having the right to grant, to the maximum
+ extent possible, whether at the time of the initial grant or
+ subsequently acquired, any and all of the rights conveyed herein.
+
+ 1.9. "Modifications" means any addition to or deletion from the
+ substance or structure of either the Original Code or any previous
+ Modifications. When Covered Code is released as a series of files, a
+ Modification is:
+ A. Any addition to or deletion from the contents of a file
+ containing Original Code or previous Modifications.
+
+ B. Any new file that contains any part of the Original Code or
+ previous Modifications.
+
+ 1.10. "Original Code" means Source Code of computer software code
+ which is described in the Source Code notice required by Exhibit A as
+ Original Code, and which, at the time of its release under this
+ License is not already Covered Code governed by this License.
+
+ 1.10.1. "Patent Claims" means any patent claim(s), now owned or
+ hereafter acquired, including without limitation, method, process,
+ and apparatus claims, in any patent Licensable by grantor.
+
+ 1.11. "Source Code" means the preferred form of the Covered Code for
+ making modifications to it, including all modules it contains, plus
+ any associated interface definition files, scripts used to control
+ compilation and installation of an Executable, or source code
+ differential comparisons against either the Original Code or another
+ well known, available Covered Code of the Contributor's choice. The
+ Source Code can be in a compressed or archival form, provided the
+ appropriate decompression or de-archiving software is widely available
+ for no charge.
+
+ 1.12. "You" (or "Your") means an individual or a legal entity
+ exercising rights under, and complying with all of the terms of, this
+ License or a future version of this License issued under Section 6.1.
+ For legal entities, "You" includes any entity which controls, is
+ controlled by, or is under common control with You. For purposes of
+ this definition, "control" means (a) the power, direct or indirect,
+ to cause the direction or management of such entity, whether by
+ contract or otherwise, or (b) ownership of more than fifty percent
+ (50%) of the outstanding shares or beneficial ownership of such
+ entity.
+
+2. Source Code License.
+
+ 2.1. The Initial Developer Grant.
+ The Initial Developer hereby grants You a world-wide, royalty-free,
+ non-exclusive license, subject to third party intellectual property
+ claims:
+ (a) under intellectual property rights (other than patent or
+ trademark) Licensable by Initial Developer to use, reproduce,
+ modify, display, perform, sublicense and distribute the Original
+ Code (or portions thereof) with or without Modifications, and/or
+ as part of a Larger Work; and
+
+ (b) under Patents Claims infringed by the making, using or
+ selling of Original Code, to make, have made, use, practice,
+ sell, and offer for sale, and/or otherwise dispose of the
+ Original Code (or portions thereof).
+
+ (c) the licenses granted in this Section 2.1(a) and (b) are
+ effective on the date Initial Developer first distributes
+ Original Code under the terms of this License.
+
+ (d) Notwithstanding Section 2.1(b) above, no patent license is
+ granted: 1) for code that You delete from the Original Code; 2)
+ separate from the Original Code; or 3) for infringements caused
+ by: i) the modification of the Original Code or ii) the
+ combination of the Original Code with other software or devices.
+
+ 2.2. Contributor Grant.
+ Subject to third party intellectual property claims, each Contributor
+ hereby grants You a world-wide, royalty-free, non-exclusive license
+
+ (a) under intellectual property rights (other than patent or
+ trademark) Licensable by Contributor, to use, reproduce, modify,
+ display, perform, sublicense and distribute the Modifications
+ created by such Contributor (or portions thereof) either on an
+ unmodified basis, with other Modifications, as Covered Code
+ and/or as part of a Larger Work; and
+
+ (b) under Patent Claims infringed by the making, using, or
+ selling of Modifications made by that Contributor either alone
+ and/or in combination with its Contributor Version (or portions
+ of such combination), to make, use, sell, offer for sale, have
+ made, and/or otherwise dispose of: 1) Modifications made by that
+ Contributor (or portions thereof); and 2) the combination of
+ Modifications made by that Contributor with its Contributor
+ Version (or portions of such combination).
+
+ (c) the licenses granted in Sections 2.2(a) and 2.2(b) are
+ effective on the date Contributor first makes Commercial Use of
+ the Covered Code.
+
+ (d) Notwithstanding Section 2.2(b) above, no patent license is
+ granted: 1) for any code that Contributor has deleted from the
+ Contributor Version; 2) separate from the Contributor Version;
+ 3) for infringements caused by: i) third party modifications of
+ Contributor Version or ii) the combination of Modifications made
+ by that Contributor with other software (except as part of the
+ Contributor Version) or other devices; or 4) under Patent Claims
+ infringed by Covered Code in the absence of Modifications made by
+ that Contributor.
+
+3. Distribution Obligations.
+
+ 3.1. Application of License.
+ The Modifications which You create or to which You contribute are
+ governed by the terms of this License, including without limitation
+ Section 2.2. The Source Code version of Covered Code may be
+ distributed only under the terms of this License or a future version
+ of this License released under Section 6.1, and You must include a
+ copy of this License with every copy of the Source Code You
+ distribute. You may not offer or impose any terms on any Source Code
+ version that alters or restricts the applicable version of this
+ License or the recipients' rights hereunder. However, You may include
+ an additional document offering the additional rights described in
+ Section 3.5.
+
+ 3.2. Availability of Source Code.
+ Any Modification which You create or to which You contribute must be
+ made available in Source Code form under the terms of this License
+ either on the same media as an Executable version or via an accepted
+ Electronic Distribution Mechanism to anyone to whom you made an
+ Executable version available; and if made available via Electronic
+ Distribution Mechanism, must remain available for at least twelve (12)
+ months after the date it initially became available, or at least six
+ (6) months after a subsequent version of that particular Modification
+ has been made available to.
+
+--- libmkv ---
+
+Authors:
+
+ Most of this code was taken from Mike Mastnev's matroska muxer included in
+ x264.
+
+ Glue provided by [email protected]
+
+Copyright:
+ Copyright (C) [email protected]
+
+ This program is free software; you can redistribute it and/or modify
+ it under the terms of the GNU General Public License as published by
+ the Free Software Foundation; either version 2, or (at your option)
+ any later version.
+
+ This program is distributed in the hope that it will be useful,
+ but WITHOUT ANY WARRANTY; without even the implied warranty of
+ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ General Public License for more details.
+
+ You should have received a copy of the GNU General Public License
+ along with this program; if not, write to the Free Software
+ Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
+
+--- mpeg2dec ---
+
+Upstream Authors:
+
+ Aaron Holtzman <[email protected]>
+ Michel Lespinasse <[email protected]>
+
+ Bruno Barreyra <[email protected]> - build fixes
+ Gildas Bazin <[email protected]> - mingw32 port
+ Alexander W. Chin <[email protected]> - progressive_seq fix
+ Stephen Crowley <[email protected]> - build fixes
+ Didier Gautheron <[email protected]> - bug fixes
+ Ryan C. Gordon <[email protected]> - SDL support
+ Peter Gubanov <[email protected]> - MMX IDCT scheduling
+ Håkan Hjort <[email protected]> - Solaris fixes, mlib code
+ Nicolas Joly <[email protected]> - assorted bug fixes
+ Gerd Knorr <[email protected]> - Xv support
+ David I. Lehn <[email protected]> - motion_comp mmx code
+ Olie Lho <[email protected]> - MMX yuv2rgb routine
+ David S. Miller <[email protected]> - sparc VIS optimizations
+ Rick Niles <[email protected]> - build fixes
+ Real Ouellet <[email protected]> - g200 fixes
+ Bajusz Peter <[email protected]> - motion comp fixes
+ Franck Sicard <[email protected]> - x11 fixes
+ Brion Vibber <[email protected]> - x11 fixes
+ Martin Vogt <[email protected]> - reentrancy fixes
+ Fredrik Vraalsen <[email protected]> - general hackage and stuff
+
+mpeg2dec is Copyright (C) 1999-2000 Aaron Holtzman <[email protected]>
+ Copyright (C) 2000-2003 Michel Lespinasse <[email protected]>
+ Copyright (C) 2000-2003 Silicon Integrated System Corp.
+ Copyright (C) 2000-2003 Ryan C. Gordon <[email protected]>
+ Copyright (C) 2000-2003 Dominik Schnitzer <[email protected]>
+ Copyright (C) 2003 Regis Duchesne <[email protected]>
+ Copyright (C) 2003 David S. Miller <[email protected]>
+ Copyright (C) 2003 Peter Gubanov <[email protected]>
+
+ This program is free software; you can redistribute it and/or modify
+ it under the terms of the GNU General Public License as published by
+ the Free Software Foundation; either version 2, or (at your option)
+ any later version.
+
+ This program is distributed in the hope that it will be useful,
+ but WITHOUT ANY WARRANTY; without even the implied warranty of
+ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ General Public License for more details.
+
+ You should have received a copy of the GNU General Public License
+ along with this program; 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 General Public License can
+be found in `/usr/share/common-licenses/GPL'.
+
+--- libogg ---
+
+
+Upstream Author: Christopher Montgomery <[email protected]>
+
+Copyright:
+Copyright (c) 2002-2004, Xiph.org Foundation
+
+Redistribution and use in source and binary forms, with or without
+modification, are permitted provided that the following conditions
+are met:
+
+- Redistributions of source code must retain the above copyright
+notice, this list of conditions and the following disclaimer.
+
+- Redistributions in binary form must reproduce the above copyright
+notice, this list of conditions and the following disclaimer in the
+documentation and/or other materials provided with the distribution.
+
+- Neither the name of the Xiph.Org Foundation nor the names of its
+contributors may be used to endorse or promote products derived from
+this software without specific prior written permission.
+
+THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
+``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
+LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
+A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR
+CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
+EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
+PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
+PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF
+LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
+NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
+SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
+
+
+
diff --git a/pkg/linux/debian/docs b/pkg/linux/debian/docs
new file mode 100644
index 000000000..b516c7239
--- /dev/null
+++ b/pkg/linux/debian/docs
@@ -0,0 +1,4 @@
+../NEWS
+../AUTHORS
+../CREDITS
+../THANKS
diff --git a/pkg/linux/debian/handbrake-cli.dirs b/pkg/linux/debian/handbrake-cli.dirs
new file mode 100644
index 000000000..415f082dd
--- /dev/null
+++ b/pkg/linux/debian/handbrake-cli.dirs
@@ -0,0 +1 @@
+/usr/bin
diff --git a/pkg/linux/debian/handbrake-cli.install b/pkg/linux/debian/handbrake-cli.install
new file mode 100644
index 000000000..0c81f0eb6
--- /dev/null
+++ b/pkg/linux/debian/handbrake-cli.install
@@ -0,0 +1 @@
+usr/bin/HandBrakeCLI
diff --git a/pkg/linux/debian/handbrake-gtk.dirs b/pkg/linux/debian/handbrake-gtk.dirs
new file mode 100644
index 000000000..d909ef4b4
--- /dev/null
+++ b/pkg/linux/debian/handbrake-gtk.dirs
@@ -0,0 +1,5 @@
+/usr/share/icons
+/usr/share/doc/ghb
+/usr/bin/
+/usr/share/applications
+
diff --git a/pkg/linux/debian/handbrake-gtk.docs b/pkg/linux/debian/handbrake-gtk.docs
new file mode 100644
index 000000000..d4f454258
--- /dev/null
+++ b/pkg/linux/debian/handbrake-gtk.docs
@@ -0,0 +1 @@
+#DOCS#
diff --git a/pkg/linux/debian/handbrake-gtk.install b/pkg/linux/debian/handbrake-gtk.install
new file mode 100644
index 000000000..620b0db95
--- /dev/null
+++ b/pkg/linux/debian/handbrake-gtk.install
@@ -0,0 +1,5 @@
+usr/bin/ghb
+usr/share/applications/*
+usr/share/doc/ghb/*
+usr/share/icons/*
+#DOCS#
diff --git a/pkg/linux/debian/rules b/pkg/linux/debian/rules
new file mode 100755
index 000000000..a30f4fb1d
--- /dev/null
+++ b/pkg/linux/debian/rules
@@ -0,0 +1,87 @@
+#!/usr/bin/make -f
+# -*- makefile -*-
+# This file was originally written by Joey Hess and Craig Small.
+# As a special exception, when this file is copied by dh-make into a
+# dh-make output file, you may use that output file without restriction.
+# This special exception was added by Craig Small in version 0.37 of dh-make.
+
+# Uncomment this to turn on verbose mode.
+#export DH_VERBOSE=1
+
+
+# These are used for cross-compiling and for saving the configure script
+# from having to guess our platform (since we know it already)
+DEB_HOST_GNU_TYPE ?= $(shell dpkg-architecture -qDEB_HOST_GNU_TYPE)
+DEB_BUILD_GNU_TYPE ?= $(shell dpkg-architecture -qDEB_BUILD_GNU_TYPE)
+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
+
+PKGDESTDIR = ../
+CONFIGURE = ./configure
+BUILDDIR = build
+FORCEVERSION =
+
+$(BUILDDIR)/GNUmakefile: $(CONFIGURE)
+ dh_testdir
+ unset CFLAGS; unset CPPLAGS; unset CXXLAGS; $(CONFIGURE) --prefix=/usr
+
+build: $(BUILDDIR)/GNUmakefile
+ dh_testdir
+ #We must build both the main project and the GTK project
+ unset CFLAGS ; unset CPPLAGS ; unset CXXLAGS; $(MAKE) -C $(BUILDDIR)
+
+clean:
+ dh_testdir
+ dh_testroot
+
+ dh_clean
+
+install: build
+ dh_testdir
+ dh_testroot
+ dh_installdirs
+ $(MAKE) -C $(BUILDDIR) PREFIX=$(CURDIR)/debian/tmp/usr PREFIX/=$(CURDIR)/debian/tmp/usr/ install
+
+# Build architecture-independent files here.
+binary-indep: build install
+ dh_testdir
+ dh_testroot
+ dh_installchangelogs -i
+ dh_installdocs -i
+ dh_install -i
+ dh_icons -i
+ dh_desktop -i
+ dh_link -i
+ dh_compress -i
+ dh_fixperms -i
+ dh_installdeb -i
+ dh_gencontrol -i $(FORCEVERSION)
+ dh_md5sums -i
+ dh_builddeb --destdir=$(PKGDESTDIR) -i
+
+# Build architecture-dependent files here.
+binary-arch: build install
+ dh_testdir
+ dh_testroot
+ dh_install -a
+ dh_installchangelogs -a
+ dh_installdocs -a
+ dh_installexamples -a
+ dh_installman -a
+ dh_link -a
+ dh_icons -a
+ dh_desktop -a
+ dh_strip -a
+ dh_compress -a
+ dh_fixperms -a
+ dh_installdeb -a
+ dh_shlibdeps -a
+ dh_gencontrol -a $(FORCEVERSION)
+ dh_md5sums -a
+ dh_builddeb -a --destdir=$(PKGDESTDIR) -- -Zbzip2
+
+binary: binary-indep binary-arch
+.PHONY: build clean binary-indep binary-arch binary install
diff --git a/pkg/linux/module.defs b/pkg/linux/module.defs
new file mode 100644
index 000000000..7606aed7e
--- /dev/null
+++ b/pkg/linux/module.defs
@@ -0,0 +1,12 @@
+PKG.deb.machine = `dpkg --print-architecture`
+PKG.debian = $(PKG.in/)linux/debian
+PKG.cli.deb = $(PKG.out/)$(HB.name)-$(HB.version)-Ubuntu_CLI_$(BUILD.machine).deb
+PKG.gui.deb = $(PKG.out/)$(HB.name)-$(HB.version)-Ubuntu_GUI_$(BUILD.machine).deb
+
+PKG.cli.tmp.deb = $(PKG.out/)handbrake-cli_$(HB.version)_$(PKG.deb.machine).deb
+PKG.gui.tmp.deb = $(PKG.out/)handbrake-gtk_$(HB.version)_$(PKG.deb.machine).deb
+
+###############################################################################
+
+BUILD.out += $(PKG.cli.deb)
+BUILD.out += $(PKG.gui.deb)
diff --git a/pkg/linux/module.rules b/pkg/linux/module.rules
new file mode 100644
index 000000000..60a4cdf52
--- /dev/null
+++ b/pkg/linux/module.rules
@@ -0,0 +1,15 @@
+pkg.create:: $(PKG.cli.deb) $(PKG.gui.deb)
+
+
+$(PKG.cli.deb): | $(dir $(PKG.cli.deb))
+$(PKG.gui.deb) $(PKG.cli.deb):
+ -rm $(BUILD/)debian
+ ln -s $(PKG.debian) $(BUILD/)debian
+ fakeroot $(MAKE) -f debian/rules clean
+ $(MAKE) BUILDDIR=$(BUILD) CONFIGURE=$(SRC/)configure -f debian/rules build
+ echo $(PKG.out/)
+ fakeroot $(MAKE) FORCEVERSION="-- -v$(HB.version)" BUILDDIR=$(BUILD) CONFIGURE=$(SRC/)configure PKGDESTDIR=$(PKG.out/) -f debian/rules binary
+
+ $(MV.exe) $(PKG.cli.tmp.deb) $(PKG.cli.deb)
+ $(MV.exe) $(PKG.gui.tmp.deb) $(PKG.gui.deb)
+