--- witty-3.1.2.orig/debian/libwt-doc.doc-base.reference
+++ witty-3.1.2/debian/libwt-doc.doc-base.reference
@@ -0,0 +1,10 @@
+Document: libwt-reference
+Title: Wt online documentation
+Author: Emweb bvba
+Abstract: This set of documents provides help for developing applications
+ using the Wt libraries and application server.
+Section: Web Development
+
+Format: html
+Index: /usr/share/doc/libwt-doc/reference/html/index.html
+Files: /usr/share/doc/libwt-doc/reference/html/*.html
--- witty-3.1.2.orig/debian/libwtdbosqlite3.install
+++ witty-3.1.2/debian/libwtdbosqlite3.install
@@ -0,0 +1,2 @@
+usr/lib/libwtdbosqlite3.so.3
+usr/lib/libwtdbosqlite3.so.3.1.2
--- witty-3.1.2.orig/debian/libwtfcgi8.install
+++ witty-3.1.2/debian/libwtfcgi8.install
@@ -0,0 +1,2 @@
+usr/lib/libwtfcgi.so.8
+usr/lib/libwtfcgi.so.3.1.2
--- witty-3.1.2.orig/debian/libwt-doc.docs
+++ witty-3.1.2/debian/libwt-doc.docs
@@ -0,0 +1 @@
+debian/README.Debian
--- witty-3.1.2.orig/debian/libwt-dev.install
+++ witty-3.1.2/debian/libwt-dev.install
@@ -0,0 +1,7 @@
+usr/lib/libwt.a
+usr/lib/libwt.so
+usr/include/Wt/Chart/*
+usr/include/Wt/Http/*
+usr/include/Wt/Test/*
+usr/include/Wt/W*
+usr/share/cmake-2.8/Modules/FindWt.cmake
--- witty-3.1.2.orig/debian/copyright
+++ witty-3.1.2/debian/copyright
@@ -0,0 +1,281 @@
+This package was debianized by Pau Garcia i Quiles <pgquiles@elpauer.org> on
+Sat, 05 Jul 2008 10:37:30 +0100.
+
+It was downloaded from http://www.webtoolkit.eu/
+
+Upstream Author: Koen Deforche (koen@emweb.be), Wim Dumon (wim@emweb.be),
+Pieter Libin (pieter@emweb.be)
+
+Copyright: 2005-2010, Koen Deforche, Wim Dumon
+
+License:
+
+   This package is dual licensed under the GPLv2 and a commercial license
+
+   * GPLv2
+
+   In addition to the license terms of the GNU General Public License,
+   Version 2, as copied below, Emweb bvba gives permission to link the
+   code of its release of Wt with the OpenSSL project's "OpenSSL" library
+   (or with modified versions of it that use the same license as the
+   "OpenSSL" library), and distribute the linked executables. You must
+   obey the GNU General Public License in all respects for all of the
+   code used other than "OpenSSL". If you modify this file, you may
+   extend this exception to your version of the file, but you are not
+   obligated to do so. If you do not wish to do so, delete this exception
+   statement from your version.
+
+   Wt is licensed under the GNU GPL Version 2. Other versions of the GPL do
+   not apply.
+
+   This package 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 package; 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 version 2 can be found in `/usr/share/common-licenses/GPL-2'.
+
+   In addition to the license terms of the GNU General Public License,
+   Version 2, as copied below, Emweb bvba gives permission to link the
+   code of its release of Wt with the OpenSSL project's "OpenSSL" library
+   (or with modified versions of it that use the same license as the
+   "OpenSSL" library), and distribute the linked executables. You must
+   obey the GNU General Public License in all respects for all of the
+   code used other than "OpenSSL". If you modify this file, you may
+   extend this exception to your version of the file, but you are not
+   obligated to do so. If you do not wish to do so, delete this exception
+   statement from your version."
+
+   * Commercial
+
+   Developer-based Commercial License Terms
+
+   Each developer which uses the Wt API requires a Commercial License during
+   the entire development and maintenance period of the web application. The
+   Developer-based Commercial Licenses are valid for the duration of one year,
+   and for any released version of Wt.
+
+   There are no additional charges for distribution of the application, and the
+   license allows the developer to work on an unlimited number of products.
+
+   The license may not be passed on between developers, unless permission is
+   granted by Emweb.
+
+   Commercial licensed developers have access to the public community-driven
+   mailing list for their support questions. A commercial license does not
+   include guaranteed responses from Emweb's Wt developers, nor training. For
+   support contracts, please consult our support offerings.
+
+   Project-based Commercial License Terms
+
+   As an alternative to the Developer-based Commercial License, a License may
+   be purchased on a per-project basis. This License allows the usage of Wt by
+   as many developers as necessary to complete a single pre-defined project.
+
+   There are usually no additional charges for distribution of the application.
+
+   Support options are usually negotiated together with the license. This
+   guarantees, if required, personalized high-priority support in addition to
+   the public, community-driven mailing lists.
+
+
+Wt also includes in its tarball several other licenses for third party
+components:
+
+   * The 'libwt/src/http' directory is copyright (c) 2003-2006 
+     Christopher M. Kohlhoff and copyright (c) 2008-2010 Emweb bvba and is under 
+     the Boost license:
+
+   Boost Software License - Version 1.0 - August 17th, 2003
+
+   Permission is hereby granted, free of charge, to any person or organization
+   obtaining a copy of the software and accompanying documentation covered by
+   this license (the "Software") to use, reproduce, display, distribute,
+   execute, and transmit the Software, and to prepare derivative works of the
+   Software, and to permit third-parties to whom the Software is furnished to
+   do so, all subject to the following:
+
+   The copyright notices in the Software and this entire statement, including
+   the above license grant, this restriction and the following disclaimer,
+   must be included in all copies of the Software, in whole or in part, and
+   all derivative works of the Software, unless such copies or derivative
+   works are solely in the form of machine-executable object code generated by
+   a source language processor.
+
+   THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
+   IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
+   FITNESS FOR A PARTICULAR PURPOSE, TITLE AND NON-INFRINGEMENT. IN NO EVENT
+   SHALL THE COPYRIGHT HOLDERS OR ANYONE DISTRIBUTING THE SOFTWARE BE LIABLE
+   FOR ANY DAMAGES OR OTHER LIABILITY, WHETHER IN CONTRACT, TORT OR OTHERWISE,
+   ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
+   DEALINGS IN THE SOFTWARE.
+
+
+   * The 'libwt/src/threadpool' directory is copyright (c) 2005-2007
+     Philipp Henkel and is under the Boost license (see above)
+
+
+   * The 'libwt/src/web/randomdevice.cpp' file is copyright (c) 2000 Jens
+     Maurer and is under the Boost license (see above)
+
+
+   * The WtWithQt example is under a MIT license:
+
+   Copyright (C) 2008 Emweb bvba, Kessel-Lo, Belgium.
+
+   Permission is hereby granted, free of charge, to any person
+   obtaining a copy of this software and associated documentation
+   files (the "Software"), to deal in the Software without
+   restriction, including without limitation the rights to use,
+   copy, modify, merge, publish, distribute, sublicense, and/or sell
+   copies of the Software, and to permit persons to whom the
+   Software is furnished to do so, subject to the following
+   conditions:
+
+   The above copyright notice and this permission notice shall be
+   included in all copies or substantial portions of the Software.
+
+   THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
+   EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES
+   OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
+   NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT
+   HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
+   WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
+   FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
+   OTHER DEALINGS IN THE SOFTWARE.
+
+
+   * The src/Wt/Dbo/backend/amalgamation contains the sqlite 3.6.20 library in
+     its amalgamated form
+
+   Copyright (C) 2000-2009, D. Richard Hipp <drh@hwaci.com>
+
+   The author disclaims all copyright. The library is in the public domain.
+
+
+   * The src/rapidxml directory contains the RapidXML library and is licensed
+     under the MIT license and the Boost Software License 1.0
+
+    Boost Software License - Version 1.0 - August 17th, 2003
+
+    Copyright (c) 2006, 2007 Marcin Kalicinski
+
+    Permission is hereby granted, free of charge, to any person or organization
+    obtaining a copy of the software and accompanying documentation covered by
+    this license (the "Software") to use, reproduce, display, distribute,
+    execute, and transmit the Software, and to prepare derivative works of the
+    Software, and to permit third-parties to whom the Software is furnished to
+    do so, all subject to the following:
+
+    The copyright notices in the Software and this entire statement, including
+    the above license grant, this restriction and the following disclaimer,
+    must be included in all copies of the Software, in whole or in part, and
+    all derivative works of the Software, unless such copies or derivative
+    works are solely in the form of machine-executable object code generated by
+    a source language processor.
+
+    THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
+    IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
+    FITNESS FOR A PARTICULAR PURPOSE, TITLE AND NON-INFRINGEMENT. IN NO EVENT
+    SHALL THE COPYRIGHT HOLDERS OR ANYONE DISTRIBUTING THE SOFTWARE BE LIABLE
+    FOR ANY DAMAGES OR OTHER LIABILITY, WHETHER IN CONTRACT, TORT OR OTHERWISE,
+    ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
+    DEALINGS IN THE SOFTWARE.
+
+    MIT License
+
+    Copyright (c) 2006, 2007 Marcin Kalicinski
+
+    Permission is hereby granted, free of charge, to any person obtaining a copy
+    of this software and associated documentation files (the "Software"), to
+    deal in the Software without restriction, including without limitation the 
+    rights to use, copy, modify, merge, publish, distribute, sublicense, and/or 
+    sell copies of the Software, and to permit persons to whom the Software is 
+    furnished to do so, subject to the following conditions:
+
+    The above copyright notice and this permission notice shall be included in
+    all copies or substantial portions of the Software.
+
+    THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
+    IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
+    FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL
+    THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
+    LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
+    FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS
+    IN THE SOFTWARE.
+
+
+   * src/web/skeleton/jquery.min.js is a minified version of the JQuery library 
+     together with the Sizzle.js library.
+     
+     JQuery is released under the MIT or GPL Version 2 licenses and the original 
+     copyright (c) belongs to The JQuery Project
+
+     Sizze.js is released under the MIT, BSD and GPL Version 2 licenses and the 
+     original copyright belongs to The Dojo Foundation
+
+   * resources/swfobject.js in the orig tarball is a compressed form of
+     SWFObject version 2.2, whose preferred form for modification can be found
+     in debian/dfsg-compliance/swfobject-2.2.js.
+
+     No copyright holders are stated. The header, and the upstream website at
+     <http://code.google.com/p/swfobject/>, state that it is released under
+     the MIT License.
+
+   * The 'history' function in libwt/src/web/skeleton/Wt.js is a simplified
+     version of code developed by Yahoo under the BSD license. Original 
+     copyright (c) 2008, Yahoo! Inc. All rights reserved. Code licensed under 
+     the BSD License: http://developer.yahoo.com/yui/license.html
+
+   Software License Agreement (BSD License)
+   Copyright (c) 2008, Yahoo! Inc.
+   All rights reserved.
+
+   Redistribution and use of this software 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 Yahoo! Inc. nor the names of its contributors may
+        be used to endorse or promote products derived from this software
+        without specific prior written permission of Yahoo! Inc.
+
+   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 COPYRIGHT OWNER 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.
+
+
+   * The 'arrayRemove' function in libwt/src/web/skeleton/Wt.js is copyright 
+     (c) John Resig and is distributed under the MIT license (see above)
+
+
+   * Patch 20_hurd_locking_style comes from the sqlite3 package in Debian,
+     author is Laszlo Boszormenyi. Licensed under the GPL (see above)
+
+
+
+   * The cmake/FindWt.cmake file is copyright (c) 2007-2008 Pau Garcia i
+     Quiles, with modifications by Emweb bvba, and is distributed under the
+     BSD license (see above)
+
+ 
+The Debian packaging is Copyright (C) 2008-2010, Pau Garcia i Quiles 
+<pgquiles@elpauer.org> and is licensed under the GPL, see above.
--- witty-3.1.2.orig/debian/libwt-doc.doc-base.dbotutorial
+++ witty-3.1.2/debian/libwt-doc.doc-base.dbotutorial
@@ -0,0 +1,10 @@
+Document: libwt-dbo-tutorial
+Title: A gentle introduction to the Wt::Dbo ORM for use with Wt
+Author: Koen Deforche, Wim Dumon
+Abstract: This is an introductory tutorial that shows how to develop 
+ web applications using the Wt::Dbo ORM and Wt libraries.
+Section: Web Development
+
+Format: html
+Index: /usr/share/doc/libwt-doc/tutorial/dbo/tutorial.html
+Files: /usr/share/doc/libwt-doc/tutorial/dbo/tutorial.html
--- witty-3.1.2.orig/debian/libwtext-dev.install
+++ witty-3.1.2/debian/libwtext-dev.install
@@ -0,0 +1,3 @@
+usr/lib/libwtext.a
+usr/lib/libwtext.so
+usr/include/Wt/Ext/*
--- witty-3.1.2.orig/debian/libwt-doc.install
+++ witty-3.1.2/debian/libwt-doc.install
@@ -0,0 +1 @@
+usr/share/doc/libwt-doc/*
--- witty-3.1.2.orig/debian/rules
+++ witty-3.1.2/debian/rules
@@ -0,0 +1,133 @@
+#!/usr/bin/make -f
+# -*- makefile -*-
+# debian.rules file for Wt
+# Copyright 2008-2010 by Pau Garcia i Quiles <pgquiles@elpauer.org>
+# Based on the dh-make-generated rules file
+
+include /usr/share/dpatch/dpatch.make
+
+version=3.1.2
+major=3
+
+CMAKEVERSION:=$(shell cmake --version | grep -o -P \(\\d\\.\\d\) | tr -d '\n')
+
+build-static/Makefile: patch-stamp
+	dh_testdir
+	mkdir -p build-static
+	cd build-static && cmake .. -DCMAKE_INSTALL_PREFIX:PATH=/usr \
+                                -DCMAKE_C_FLAGS="$(CFLAGS)" -DCMAKE_CXX_FLAGS="$(CFLAGS)" \
+                                -DSTATIC_LIBRARY_FLAGS="-Wl,--no-undefined -Wl,--as-needed" \
+                                -DCMAKE_MODULE_LINKER_FLAGS="-Wl,--no-undefined -Wl,--as-needed" \
+				-DUSE_SYSTEM_SQLITE3:BOOL=ON \
+				-DCONFIGDIR:PATH=/etc/wt/ \
+				-DBUILD_TESTS:BOOL=OFF \
+				-DCMAKE_VERBOSE_MAKEFILE:BOOL=1 \
+				-DCONNECTOR_FCGI:BOOL=ON \
+				-DSHARED_LIBS:BOOL=OFF \
+				-DMULTI_THREADED:BOOL=ON \
+				-DWT_CMAKE_FINDER_INSTALL_DIR:PATH=/share/cmake-$(CMAKEVERSION)/Modules \
+				-DCMAKE_BUILD_TYPE:STRING=Release \
+				-DCMAKE_SKIP_RPATH:BOOL=ON \
+				-DWEBUSER:STRING=www-data \
+				-DWEBGROUP:STRING=www-data
+
+build-shared/Makefile: patch-stamp
+	mkdir -p build-shared
+	cd build-shared && cmake .. -DCMAKE_INSTALL_PREFIX:PATH=/usr \
+                                -DCMAKE_C_FLAGS="$(CFLAGS)" -DCMAKE_CXX_FLAGS="$(CFLAGS)" \
+                                -DCMAKE_SHARED_LINKER_FLAGS="-Wl,--no-undefined -Wl,--as-needed" \
+                                -DCMAKE_MODULE_LINKER_FLAGS="-Wl,--no-undefined -Wl,--as-needed" \
+                                -DCMAKE_EXE_LINKER_FLAGS="-Wl,--no-undefined -Wl,--as-needed" \
+				-DUSE_SYSTEM_SQLITE3:BOOL=ON \
+				-DCONFIGDIR:PATH=/etc/wt/ \
+				-DBUILD_TESTS:BOOL=OFF \
+				-DCMAKE_VERBOSE_MAKEFILE:BOOL=1 \
+				-DCONNECTOR_FCGI:BOOL=ON \
+				-DSHARED_LIBS:BOOL=ON \
+				-DMULTI_THREADED:BOOL=ON \
+				-DWT_CMAKE_FINDER_INSTALL_DIR:PATH=/share/cmake-$(CMAKEVERSION)/Modules \
+				-DCMAKE_BUILD_TYPE:STRING=RelWithDebInfo \
+				-DCMAKE_SKIP_RPATH:BOOL=ON \
+				-DWEBUSER:STRING=www-data \
+				-DWEBGROUP:STRING=www-data
+
+build: build-stamp
+build-stamp: build-static/Makefile build-shared/Makefile build-resources
+	dh_testdir
+	cd build-static && $(MAKE)
+	cd build-shared && $(MAKE) && $(MAKE) doc
+	touch $@
+
+build-resources:
+	yui-compressor -o resources/swfobject.js \
+		debian/dfsg-compliance/swfobject-2.2.js
+	mtasc -main -swf resources/WtSoundManager.swf \
+		src/flash/WtSoundManager.as -version 8 -header 16:16:30
+
+clean: unpatch
+	rm -rf build-static
+	rm -rf build-shared
+	rm -f resources/WtSoundManager.swf resources/swfobject.js
+	dh_clean
+
+install: build
+	dh_testdir
+	dh_testroot
+	dh_clean -k 
+	dh_installdirs
+
+	# Commands to install the package into debian/tmp
+	cd build-static && $(MAKE) install DESTDIR=$(CURDIR)/debian/tmp/
+	cd build-shared && $(MAKE) install DESTDIR=$(CURDIR)/debian/tmp/
+
+	mkdir -p $(CURDIR)/debian/tmp/usr/share/doc/libwt-doc/
+	cp -R $(CURDIR)/doc/* $(CURDIR)/debian/tmp/usr/share/doc/libwt-doc/
+	cp -R $(CURDIR)/examples $(CURDIR)/debian/tmp/usr/share/doc/libwt-doc/
+	cp -R $(CURDIR)/resources $(CURDIR)/debian/tmp/usr/share/doc/libwt-doc/examples/wt-homepage/
+	rm -f $(CURDIR)/debian/tmp/usr/share/doc/libwt-doc/examples/wt-homepage/resources/themes/default/stripes/generate.sh
+	rm -f $(CURDIR)/debian/tmp/usr/share/doc/libwt-doc/examples/wt-homepage/resources/themes/polished/stripes/generate.sh
+	chmod 644 debian/tmp/usr/share/doc/libwt-doc/examples/wt-homepage/resources/WtSoundManager.swf
+	cp -R $(CURDIR)/cmake $(CURDIR)/debian/tmp/usr/share/doc/libwt-doc/
+	cp -R $(CURDIR)/test $(CURDIR)/debian/tmp/usr/share/doc/libwt-doc/
+	rm $(CURDIR)/debian/tmp/usr/share/doc/libwt-doc/cmake/FindWt.cmake
+	cp $(CURDIR)/deploy.sh $(CURDIR)/debian/tmp/usr/share/doc/libwt-doc/
+	cp $(CURDIR)/ReleaseNotes.html $(CURDIR)/debian/tmp/usr/share/doc/libwt-doc/
+
+	# Fix examples and tests to make them buildable standalone
+	patch -p1 -d debian/tmp/usr/share/doc/libwt-doc < debian/patches/05_examples_cmake_check_dependencies.dpatch
+	patch -p1 -d debian/tmp/usr/share/doc/libwt-doc < debian/patches/05_examples_cmake_link_dependencies.dpatch
+	patch -p1 -d debian/tmp/usr/share/doc/libwt-doc < debian/patches/07_tests_cmake_check_dependencies.dpatch
+	patch -p1 -d debian/tmp/usr/share/doc/libwt-doc < debian/patches/07_tests_cmake_link_dependencies.dpatch
+
+	rm $(CURDIR)/debian/tmp/usr/share/doc/libwt-doc/examples/wtwithqt/LICENSE
+	rm $(CURDIR)/debian/tmp/usr/share/doc/libwt-doc/examples/wtwithqt/lib/LICENSE
+
+# Build architecture-independent files here.
+binary-indep: build install
+
+# Build architecture-dependent files here.
+binary-arch: build install
+	dh_testdir
+	dh_testroot
+	dh_installchangelogs Changelog
+	dh_installdocs
+	dh_installexamples
+	dh_install --sourcedir=debian/tmp/
+	dh_install --sourcedir=debian/tmp/
+	dh_installman
+	dh_lintian
+	dh_link
+	dh_strip --dbg-package=libwt-dbg
+	dh_compress -Xwt-sdj.xhtml -Xwt-sdj.pdf -XDoxyfile -X.C -X.h -X.txt -X.map -X.xml -X.js -X.csv -XWQApplication -A
+#	dh_makeshlibs -pwitty -V'witty (>= 3.1.1a-1~)'
+	dh_makeshlibs -V
+#	LD_LIBRARY_PATH=$(CURDIR)/debian/tmp/usr/lib/ dh_shlibdeps -a
+	dh_shlibdeps -a -- -S$(CURDIR)/debian/tmp/usr/lib/
+	dh_fixperms
+	dh_installdeb
+	dh_gencontrol
+	dh_md5sums
+	dh_builddeb
+
+binary: binary-indep binary-arch
+.PHONY: build clean binary-indep binary-arch binary install configure
--- witty-3.1.2.orig/debian/libwtdbopostgres3.lintian-overrides
+++ witty-3.1.2/debian/libwtdbopostgres3.lintian-overrides
@@ -0,0 +1 @@
+libwtdbopostgres3: package-name-doesnt-match-sonames libwtdbopostgres3-3
--- witty-3.1.2.orig/debian/README.Debian
+++ witty-3.1.2/debian/README.Debian
@@ -0,0 +1,58 @@
+* Wt 3.x packages: split packages, static libraries
+
+  In the Wt 2.x package series, you had to install all the development libraries
+  or none of them. In the Wt 3.x packages, libraries are split in
+  several packages: 
+   - libwt-dev (core)
+   - libwthttp-dev (HTTP connector, the application is its own web server)
+   - libwtfcgi-dev (FastCGI connector, the  application will be served through 
+     a web server such as Apache)
+   - libwtext-dev (additional widgets using ExtJS)
+   - libwtdbo-dev (Wt::Dbo ORM)
+   - libwtdbosqlite-dev (Wt::Dbo sqlite3 backend)
+
+  For Wt 2.x, the Debian packages installed only shared libraries. 
+  Since Wt 3.x, there are packages for shared and for static libraries.
+
+* Building the examples
+
+  To build the examples, call CMake this way:
+
+    $ cmake -DWT_SOURCE_DIR=/usr/share/doc/libwt-doc/ \
+       -DEXAMPLES_CONNECTOR="wt;wthttp" -DCMAKE_BUILD_TYPE=Release \
+       /usr/share/doc/libwt-doc/examples
+    $ make
+
+  Then go to /usr/share/doc/libwt-doc/examples and enter the directory of the 
+  example you want to run. When running the example, set the docroot to "." 
+
+  For instance, if you compiled the examples in /home/user/dev/wtexamples, you would do:
+
+    $ mkdir /home/user/dev/wtexamples
+    $ cd /home/user/dev/wtexamples
+    $ cmake -DWT_SOURCE_DIR=/usr/share/doc/libwt-doc/ \
+       -DEXAMPLES_CONNECTOR="wt;wthttp" -DCMAKE_BUILD_TYPE=Release \
+       /usr/share/doc/libwt-doc/examples
+    $ make
+    $ cd /usr/share/doc/libwt-doc/examples/gitmodel
+    $ /home/user/dev/wtexamples/gitmodel/gitview.wt --http-port 10000 \
+      --http-addr 0.0.0.0 --docroot .
+
+  Important:
+    - The wt-homepage example will not run properly unless you download
+      ExtJS 2.0 and extract it the proper place. See 
+      /usr/share/doc/libwt-doc/reference/html/group__ext.html#_details to find
+      out where to download ExtJS 2.0 from.
+
+    - Take a look at the console output, particularly to the 404 errors: those 
+      are files which the webapp did not find (resources, icons, etc) 
+
+    - The wtwithqt example needs Qt 4.x to run
+
+* Building the tests
+
+  To build the tests, call CMake this way:
+
+    $ cmake -DWT_SOURCE_DIR=/usr/share/doc/libwt-doc/ \ 
+      -DCMAKE_BUILD_TYPE=Release /usr/share/doc/libwt-doc/test/
+    $ make
--- witty-3.1.2.orig/debian/libwthttp8.install
+++ witty-3.1.2/debian/libwthttp8.install
@@ -0,0 +1,2 @@
+usr/lib/libwthttp.so.8
+usr/lib/libwthttp.so.3.1.2
--- witty-3.1.2.orig/debian/libwtdbo3.install
+++ witty-3.1.2/debian/libwtdbo3.install
@@ -0,0 +1,2 @@
+usr/lib/libwtdbo.so.3
+usr/lib/libwtdbo.so.3.1.2
--- witty-3.1.2.orig/debian/libwtfcgi-dev.install
+++ witty-3.1.2/debian/libwtfcgi-dev.install
@@ -0,0 +1,2 @@
+usr/lib/libwtfcgi.a
+usr/lib/libwtfcgi.so
--- witty-3.1.2.orig/debian/libwtdbo-dev.install
+++ witty-3.1.2/debian/libwtdbo-dev.install
@@ -0,0 +1,3 @@
+usr/lib/libwtdbo.a
+usr/lib/libwtdbo.so
+usr/include/Wt/Dbo/*
--- witty-3.1.2.orig/debian/libwtdbopostgres-dev.install
+++ witty-3.1.2/debian/libwtdbopostgres-dev.install
@@ -0,0 +1,2 @@
+usr/lib/libwtdbopostgres.a
+usr/lib/libwtdbopostgres.so
--- witty-3.1.2.orig/debian/compat
+++ witty-3.1.2/debian/compat
@@ -0,0 +1 @@
+6
--- witty-3.1.2.orig/debian/README.source
+++ witty-3.1.2/debian/README.source
@@ -0,0 +1,26 @@
+This package uses dpatch(1) to manage all modifications to the upstream source.
+Changes are stored in the source package as dpatch format diffs, and applied 
+from debian/patches at build-time.
+
+To get the fully patched source after unpacking the source package, cd to the 
+root level of the source package and run:
+
+	dpatch apply-all
+
+To add new patches, first apply all existing patches, and then run:
+
+	dpatch-edit-patch <patchname>
+
+Dpatch opens a new shell in a copy of the source tree. Edit the files 
+appropriately and then exit the shell, and dpatch will generate a file called 
+debian/patches/<patchname>. To have new patches applied automatically during 
+build and with dpatch apply-all, add <patchname> to debian/patches/00list.
+
+To reverse all patching, run:
+
+	dpatch deapply-all
+
+  -- Pau Garcia i Quiles <pgquiles@elpauer.org>, Tue, 09 December 2008
+
+(this text is original by Jonathan Wiltshire <debian@jwiltshire.org.uk>, 
+ Wed, 26 November 2008, for the webcpp package)
--- witty-3.1.2.orig/debian/libwtext14.install
+++ witty-3.1.2/debian/libwtext14.install
@@ -0,0 +1,2 @@
+usr/lib/libwtext.so.14
+usr/lib/libwtext.so.3.1.2
--- witty-3.1.2.orig/debian/libwtdbopostgres3.install
+++ witty-3.1.2/debian/libwtdbopostgres3.install
@@ -0,0 +1,2 @@
+usr/lib/libwtdbopostgres.so.3
+usr/lib/libwtdbopostgres.so.3.1.2
--- witty-3.1.2.orig/debian/libwt21.install
+++ witty-3.1.2/debian/libwt21.install
@@ -0,0 +1,2 @@
+usr/lib/libwt.so.21
+usr/lib/libwt.so.3.1.2
--- witty-3.1.2.orig/debian/libwt-doc.doc-base.tutorial
+++ witty-3.1.2/debian/libwt-doc.doc-base.tutorial
@@ -0,0 +1,13 @@
+Document: libwt-tutorial
+Title: A gentle introduction to the Wt C++ Toolkit for Web Applications
+Author: Koen Deforche, Wim Dumon
+Abstract: This is an introductory tutorial that shows how to develop 
+ web applications using the Wt libraries and application server.
+Section: Web Development
+
+Format: html
+Index: /usr/share/doc/libwt-doc/tutorial/wt/wt-sdj.xhtml
+Files: /usr/share/doc/libwt-doc/tutorial/wt/wt-sdj.xhtml
+
+Format: PDF
+Files: /usr/share/doc/libwt-doc/tutorial/wt/wt-sdj.pdf
--- witty-3.1.2.orig/debian/libwt-common.install
+++ witty-3.1.2/debian/libwt-common.install
@@ -0,0 +1 @@
+etc/wt/wt_config.xml
--- witty-3.1.2.orig/debian/watch
+++ witty-3.1.2/debian/watch
@@ -0,0 +1,2 @@
+version=3
+http://sf.net/witty/wt-([\d\.]+)([a-z]*)\.tar\.gz
--- witty-3.1.2.orig/debian/changelog
+++ witty-3.1.2/debian/changelog
@@ -0,0 +1,205 @@
+witty (3.1.2-3) unstable; urgency=low
+
+  * Build resources/WtSoundManager.swf from the provided source code
+    src/flash/WtSoundManager.as, using the mtasc command line suggested
+    in the source code. Thanks to Simon McVittie for
+    reporting. (Closes: #591209)
+  * Provide the source code for SWFObject 2.2 in
+    debian/dfsg-compliance/swfobject-2.2.js, and build resources/swfobject.js
+    by compressing that with yui-compressor
+  * Update standards to 3.9.1.0 (no change required)
+
+ -- Pau Garcia i Quiles <pgquiles@elpauer.org>  Sun, 28 Nov 2010 13:44:45 +0100
+
+witty (3.1.2-2) unstable; urgency=low
+
+  * Add patch by Mike Teehan to install Wt::Dbo headers
+
+ -- Pau Garcia i Quiles <pgquiles@elpauer.org>  Fri, 09 Apr 2010 14:02:28 +0200
+
+witty (3.1.2-1) unstable; urgency=low
+
+  * New upstream release
+  * Add build-dependency on libpq-dev, for Wt::Dbo PostgreSQL backend
+  * Update copyright file to add JQuery and Sizzle.js
+  * Explicitly set source format to 1.0 until Launchpad PPAs support source 
+    format 3.0 for Ubuntu releases prior to Lucid or I stop supporting Jaunty 
+    and Karmic in my PPA
+
+ -- Pau Garcia i Quiles <pgquiles@elpauer.org>  Sat, 27 Mar 2010 00:28:13 +0100
+
+witty (3.1.1a-1) UNRELEASED; urgency=low
+
+  * New upstream release
+  * Remove MiniXML from 'copyright', add RapidXML
+  * Add libwt-common package, containing the wt_config.xml file to make it
+    possible to coinstall several versions of the runtime libraries
+  * Bump standards to 3.8.4.0 (no changes needed)
+  * Update build-depends from Boost 1.35.0 to 1.36.0, as did upstream
+  * Bump soversion: wt 20, wtext 13, wtdbo/wtdbosqlite 2
+  * Update patch 05_examples_cmake_link_dependencies
+  * Drop patch 08_wt_config_in_builddir (fixed upstream)
+  * Update patch 09_wtdbosqlite3_needs_threads
+  * Drop patch 10_fix_zlib_use_definition_in_wconfig (fixed upstream)
+  * Drop patch 11_use_system_sqlite3 (fixed upstream)
+  * Update watch file to cope with patch releases such as 3.1.1a (with a
+    letter at the end)
+
+ -- Pau Garcia i Quiles <pgquiles@elpauer.org>  Thu, 18 Feb 2010 09:58:06 +0100
+
+witty (3.1.0a-1) unstable; urgency=low
+
+  * New upstream release
+  * New ORM library: Wt::Dbo
+  * Rename binary packages (witty -> libwt) and provide transition plan as
+    http://wiki.debian.org/Renaming_a_Package, method A recommends. Use
+    "Replaces/Conflics (<< 3.1.0a~)" instead of << 3.1.0a so that backports 
+    work fine.
+  * Build static libraries in addition to dynamic libraries
+  * Split witty-dev into several packages, one for each library: libwt-dev, 
+    libwthttp-dev, libwtfcgi-dev, libwtdbo-dev, libwtext-dev, etc and
+    properly soversion package names
+  * Update README.Debian to with the static libraries and the split
+    packaging information
+  * Register Wt::Dbo tutorial in doc-base and update the Wt tutorial
+    location
+  * Add asciidoc and source-highlight to build-dependencies to generate the 
+    Wt::Dbo tutorial
+  * As dh_strip is unable to extract debug information from the static
+    libraries if CMAKE_BUILD_TYPE=RelWithDebInfo, tell CMake to use 
+    CMAKE_BUILD_TYPE=Release for the static build
+  * Suggest libboost-test-dev for libwt-doc, as it's required for the tests
+  * Make libmysql++-dev a suggestion for libwt-doc (for the Hangman DB
+    example) instead of a build-depends
+  * Drop patches
+    - 03_build_with_gcc44 (fixed upstream)
+    - 04_if_variablename_instead_of_variablevalue (fixed upstream)
+    - 06_hangman_build_with_mysqlpp3 (fixed upstream)
+    - 07_link_to_threads_library (fixed upstream)
+  * Update patch 05_examples_cmake_check_dependencies to properly check for 
+    dependencies when building the examples from /usr/share/doc/libwt-doc
+  * Add patch 05_examples_cmake_link_dependencies to properly link examples
+    from /usr/share/doc/libwt-doc when not building Wt.
+  * Add patch 07_tests_cmake_check_dependencies to properly check for 
+    dependencies when building the tests from /usr/share/doc/libwt-doc
+  * Add patch 07_tests_cmake_link_dependencies to properly link dependencies 
+    when building the tests from /usr/share/doc/libwt-doc.
+  * Add patch 08_wt_config_in_builddir to generate files in the build
+    directory instead of the source directory (submitted & applied upstream)
+  * Add patch 09_wtdbosqlite3_needs_threads to fix linkage with pthreads 
+    library (submitted & applied upstream)
+  * Add patch 10_fix_zlib_use_definition_in_wconfig to remove the 
+    WTHTTP_WITH_ZLIB definition from /usr/include/WConfig.h because it was 
+    wrong (always undefined) and it was internal (submitted & applied upstream)
+  * Add patch 11_use_system_sqlite3 to use Debian's Sqlite3 package instead
+    of the bundled version (submitted & applied upstream)
+  * Update copyright: 
+    - Add Pieter Libin to upstream authors
+    - Remove Orbited library, as it has been replaced by Wt's own
+      implementation in Wt 3.0
+  * Change section (web -> libdevel) to make lintian happy. Wt belongs to
+    either of them, anyway.
+
+ -- Pau Garcia i Quiles <pgquiles@elpauer.org>  Tue, 29 Dec 2009 16:53:11 +0100
+
+witty (2.2.4-3) unstable; urgency=low
+
+  * Build-depend on default Boost version in Debian. Bump shlibs as we were
+    building against Boost 1.38.0 and this means we will now build against
+    1.40.0
+  * Fix building some examples from /usr/share/doc/witty-doc/examples, see
+    http://thread.gmane.org/gmane.comp.web.witty.general/3356. Wt's own CMake
+    modules (WtFindXXX.txt) are now installed to /usr/share/doc/witty-doc,
+    just for this purpose.
+  * Make witty-dev depend on libboost-dev packages, libssl-dev, etc. Otherwise, 
+    the user would need to install the manually or it would be impossible to 
+    build applications
+  * Register docs using doc-base and make witty-doc recommend doc-base
+  * Bump standards to 3.8.3.0
+
+ -- Pau Garcia i Quiles <pgquiles@elpauer.org>  Sun, 11 Oct 2009 14:40:49 +0200
+
+witty (2.2.4-2) unstable; urgency=low
+
+  * Update shlibs
+
+ -- Pau Garcia i Quiles <pgquiles@elpauer.org>  Sun, 24 May 2009 23:17:57 +0200
+
+witty (2.2.4-1) unstable; urgency=low
+
+  * New upstream release 
+  * Fix bug #524109 (/etc/wt/wt_config.xml being ignored)
+  * Build against Boost 1.38.0 to fix bug #527803 (FTBFS with Boost 1.35.0)
+  * Add missing includes to fix bug #526664 (FTBFS with gcc 4.4, patch
+    03_build_with_gcc44.dpatch )
+  * Move the -dbg package to the debug section
+  * Recommend installing TinyMCE
+  * Point to GPL-2 instead of just "GPL", which now refers to GPL-3
+  * Fix wrong IF in hello-widgetset example (patch
+    04_cmake_if_variablename_instead_of_variablevalue.dpatch )
+
+ -- Pau Garcia i Quiles <pgquiles@elpauer.org>  Fri, 24 Apr 2009 17:22:32 +0200
+
+witty (2.2.3-1) unstable; urgency=low
+
+  * New upstream release
+  * Do not run 'ldconfig' in the 'postinst' script as this is automatically
+    done by dh_makeshlibs
+  * Remove patch 02_fix_soversion (this was needed in 2.2.2 because upstream
+    forgot to bump soversion)
+  * Add "Copyright" wherever debian/changelog contained "(C)" to make
+    lintian happy
+
+ -- Pau Garcia i Quiles <pgquiles@elpauer.org>  Wed, 28 Jan 2009 11:19:12 +0100
+
+witty (2.2.2-1) unstable; urgency=low
+
+  * New upstream release
+  * Add information about dpatch
+  * Fix typo in the 'remove' section of the postinst script ('lconfig' ->
+    'ldconfig')
+  * Install FindWt in /usr/share/cmake-2.6/Modules, as CMake 2.6 is 
+    what Debian Sid carries these days
+
+ -- Pau Garcia i Quiles <pgquiles@elpauer.org>  Sun, 07 Dec 2008 16:46:39 +0100
+
+witty (2.2.1-1) unstable; urgency=low
+
+  * New upstream release
+
+ -- Pau Garcia i Quiles <pgquiles@elpauer.org>  Tue, 04 Nov 2008 00:31:11 +0100
+
+witty (2.2.0-1) unstable; urgency=low
+
+  * New upstream release 
+  * Modify .install files as needed by the new soversions
+  * Copyright: Amended my notes in the copyright file: MXML is under LGPL2 
+    and the license included in the copyright file was LGPL2 but for some 
+    reason, my notes said it was under GPL2
+  * Copyright: specify witty/src/web/random_device.cpp license and copyright
+  * Copyright: removed rsh license from copyright as rsh is no longer used in 
+    Wt 2.2
+  * Copyright: add license and copyright for the 'history' function in 
+    src/web/skeleton/Wt.js
+  * Copyright: add license and copyright for the 'arrayRemove' function in
+    src/web/skeleton/Wt.js
+  * Copyright: specify witty/cmake/FindWt.cmake license and copyright
+
+ -- Pau Garcia i Quiles <pgquiles@elpauer.org>  Fri, 12 Sep 2008 22:16:30 +0200
+
+witty (2.1.5-1) unstable; urgency=low
+
+  * New upstream version
+  * Dropping patch to install headers in /usr/include/Wt instead of
+    /usr/include (02_install_headers_to_include_Wt.dpatch) due to
+    inclusion in upstream
+  * witty-dev now suggests installing libqt4-dev, as the wtwithqt 
+    example/library need Qt4
+
+ -- Pau Garcia i Quiles <pgquiles@elpauer.org>  Sun, 10 Aug 2008 10:37:28 +0100
+
+witty (2.1.4-1) unstable; urgency=low
+
+  * Initial release (Closes: #473096)
+
+ -- Pau Garcia i Quiles <pgquiles@elpauer.org>  Thu, 24 Jul 2008 01:42:28 +0100
--- witty-3.1.2.orig/debian/control
+++ witty-3.1.2/debian/control
@@ -0,0 +1,336 @@
+Source: witty
+Priority: extra
+Maintainer: Pau Garcia i Quiles <pgquiles@elpauer.org>
+Build-Depends: debhelper (>= 6.0.7), dpatch, libfcgi-dev, source-highlight,
+ libgd2-xpm-dev | libgd2-noxpm-dev, zlib1g-dev, cmake, libboost-dev (>= 1.36.0), 
+ libboost-date-time-dev (>= 1.36.0), libboost-filesystem-dev (>= 1.36.0), 
+ libboost-signals-dev (>= 1.36.0),libboost-regex-dev (>= 1.36.0),
+ libboost-program-options-dev (>= 1.36.0), libboost-thread-dev (>= 1.36.0), 
+ libssl-dev, libsqlite3-dev, libpq-dev, doxygen, graphviz, asciidoc,
+ mtasc, yui-compressor
+Standards-Version: 3.9.1.0
+Section: libdevel
+Homepage: http://www.webtoolkit.eu/
+
+Package: libwt-common
+Replaces: witty (<< 3.1.0a-1~), libwt19
+Conflicts: witty (<< 3.1.0a-1~), libwt19
+Architecture: all
+Depends: ${shlibs:Depends}, ${cli:Depends}, ${misc:Depends}
+Recommends: libwt21 (= ${binary:Version})
+Description: C++ library and application server for web applications [common]
+ Wt (pronounced 'witty') is a C++ library and application server for
+ developing and deploying web applications. The API is widget-centric
+ and offers complete abstraction of any web-specific application details.
+ .
+ This package contains only the Wt common files, such as config files, etc
+
+Package: libwt21
+Provides: witty
+Replaces: witty (<< 3.1.0a-1~), libwt19
+Conflicts: witty (<< 3.1.0a-1~), libwt19
+Architecture: any
+Depends: ${shlibs:Depends}, ${cli:Depends}, ${misc:Depends}, 
+ libwt-common (>= 3.1.0a-1~)
+Recommends: tinymce (>= 3.0.7),
+ libwthttp8 (= ${binary:Version}) | libwtfcgi8 (= ${binary:Version})
+Description: C++ library and application server for web applications [runtime]
+ Wt (pronounced 'witty') is a C++ library and application server for
+ developing and deploying web applications. The API is widget-centric
+ and offers complete abstraction of any web-specific application details.
+ .
+ This package contains the Wt core library but you still need to install
+ a connector, either the HTTP connector (libwthttp) or the FastCGI 
+ connector (libwtfcgi).
+
+Package: libwt-dev
+Provides: witty-dev
+Replaces: witty-dev (<< 3.1.0a-1~)
+Conflicts: witty-dev (<< 3.1.0a-1~)
+Architecture: any
+Depends: ${shlibs:Depends}, ${cli:Depends}, ${misc:Depends},
+ libwt21 (= ${binary:Version}),
+ libboost-dev (>= 1.36.0), libboost-date-time-dev (>= 1.36.0),
+ libssl-dev, libfcgi-dev, libboost-filesystem-dev (>= 1.36.0),
+ libboost-regex-dev (>=1.36.0), libboost-program-options-dev (>= 1.36.0),
+ libboost-signals-dev (>= 1.36.0), libboost-thread-dev (>= 1.36.0)
+Recommends: libwthttp-dev (= ${binary:Version}) | libwtfcgi-dev (= ${binary:Version})
+Description: C++ library and application server for web applications [development]
+ Wt (pronounced 'witty') is a C++ library and application server for
+ developing and deploying web applications. The API is widget-centric
+ and offers complete abstraction of any web-specific application details.
+ .
+ This package contains the development files for the Wt core library but you 
+ still need to install a connector, either the HTTP connector (libwthttp-dev) 
+ or the FastCGI connector (libwtfcgi-dev).
+
+Package: libwthttp8
+Provides: witty
+Replaces: witty (<< 3.1.0a-1~)
+Conflicts: witty (<< 3.1.0a-1~)
+Architecture: any
+Depends: ${shlibs:Depends}, ${cli:Depends}, ${misc:Depends}, 
+ libwt21 (= ${binary:Version})
+Description: the HTTP(S) connector library for Wt [runtime]
+ Wt (pronounced 'witty') is a C++ library and application server for
+ developing and deploying web applications. The API is widget-centric
+ and offers complete abstraction of any web-specific application details.
+ .
+ This package contains the Wt embedded HTTP server connector
+ library.
+
+Package: libwthttp-dev
+Provides: witty-dev
+Replaces: witty-dev (<< 3.1.0a-1~)
+Conflicts: witty-dev (<< 3.1.0a-1~)
+Architecture: any
+Depends: ${shlibs:Depends}, ${cli:Depends}, ${misc:Depends},
+ libwthttp8 (= ${binary:Version}), libwt-dev (= ${binary:Version})
+Description: the HTTP(S) connector library for Wt [development]
+ Wt (pronounced 'witty') is a C++ library and application server for
+ developing and deploying web applications. The API is widget-centric
+ and offers complete abstraction of any web-specific application details.
+ .
+ This package contains the development files for the Wt embedded HTTP server 
+ connector library.
+
+Package: libwtfcgi8
+Provides: witty
+Replaces: witty (<< 3.1.0a-1~)
+Conflicts: witty (<< 3.1.0a-1~)
+Architecture: any
+Depends: ${shlibs:Depends}, ${cli:Depends}, ${misc:Depends},
+ libwt21 (= ${binary:Version})
+Description: the FastCGI connector library for Wt [runtime]
+ Wt (pronounced 'witty') is a C++ library and application server for
+ developing and deploying web applications. The API is widget-centric
+ and offers complete abstraction of any web-specific application details.
+ .
+ This package contains the Wt FastCGI connector library.
+
+Package: libwtfcgi-dev
+Provides: witty-dev
+Replaces: witty-dev (<< 3.1.0a-1~)
+Conflicts: witty-dev (<< 3.1.0a-1~)
+Architecture: any
+Depends: ${shlibs:Depends}, ${cli:Depends}, ${misc:Depends},
+ libwtfcgi8 (= ${binary:Version}), libwt-dev (= ${binary:Version})
+Description: the FastCGI connector library for Wt [development]
+ Wt (pronounced 'witty') is a C++ library and application server for
+ developing and deploying web applications. The API is widget-centric
+ and offers complete abstraction of any web-specific application details.
+ .
+ This package contains the development files for the Wt FastCGI connector 
+ library.
+
+Package: libwtext14
+Provides: witty
+Replaces: witty (<< 3.1.0a-1~)
+Conflicts: witty (<< 3.1.0a-1~)
+Architecture: any
+Depends: ${shlibs:Depends}, ${cli:Depends}, ${misc:Depends},
+ libwt21 (= ${binary:Version})
+Recommends: libwthttp8 (= ${binary:Version}) | libwtfcgi8 (= ${binary:Version})
+Description: additional widgets for Wt, based on ExtJS 2.0.x [runtime]
+ Wt (pronounced 'witty') is a C++ library and application server for
+ developing and deploying web applications. The API is widget-centric
+ and offers complete abstraction of any web-specific application details.
+ .
+ This package contains the Wt ExtJS adapter library.
+
+Package: libwtext-dev
+Provides: witty-dev
+Replaces: witty-dev (<< 3.1.0a-1~)
+Conflicts: witty-dev (<< 3.1.0a-1~)
+Architecture: any
+Depends: ${shlibs:Depends}, ${cli:Depends}, ${misc:Depends},
+ libwtext14 (= ${binary:Version}), libwt-dev (= ${binary:Version})
+Recommends: libwthttp-dev (= ${binary:Version}) | libwtfcgi-dev (= ${binary:Version})
+Description: additional widgets for Wt, based on ExtJS 2.0.x [development]
+ Wt (pronounced 'witty') is a C++ library and application server for
+ developing and deploying web applications. The API is widget-centric
+ and offers complete abstraction of any web-specific application details.
+ .
+ This package contains the development files for the Wt ExtJS adapter library.
+
+Package: libwtdbo3
+Provides: witty-dev
+Conflicts: witty-dev (<< 3.1.0a-1~)
+Architecture: any
+Depends: ${shlibs:Depends}, ${cli:Depends}, ${misc:Depends},
+ libwt21 (= ${binary:Version})
+Recommends:
+ libwthttp8 (= ${binary:Version}) | libwtfcgi8 (= ${binary:Version})
+Description: the Wt::Dbo ORM library for Wt [runtime]
+ Wt (pronounced 'witty') is a C++ library and application server for
+ developing and deploying web applications. The API is widget-centric
+ and offers complete abstraction of any web-specific application details.
+ .
+ This package contains the Wt::Dbo Object-Relational Mapping library.
+
+Package: libwtdbo-dev
+Provides: witty-dev
+Conflicts: witty-dev (<< 3.1.0a-1~)
+Architecture: any
+Depends: ${shlibs:Depends}, ${cli:Depends}, ${misc:Depends},
+ libwtdbo3 (= ${binary:Version}), libwt-dev (= ${binary:Version})
+Recommends: libwthttp-dev (= ${binary:Version}) | libwtfcgi-dev (= ${binary:Version})
+Description: the Wt::Dbo ORM library for Wt [development]
+ Wt (pronounced 'witty') is a C++ library and application server for
+ developing and deploying web applications. The API is widget-centric
+ and offers complete abstraction of any web-specific application details.
+ .
+ This package contains the development files for the Wt::Dbo Object-Relational 
+ Mapping library.
+
+Package: libwtdbosqlite3
+Provides: witty-dev
+Conflicts: witty-dev (<< 3.1.0a-1~)
+Architecture: any
+Depends: ${shlibs:Depends}, ${cli:Depends}, ${misc:Depends},
+ libwtdbo3 (= ${binary:Version})
+Recommends: libwthttp8 (= ${binary:Version}) | libwtfcgi8 (= ${binary:Version})
+Description: the sqlite3 backend for Wt::Dbo [runtime]
+ Wt (pronounced 'witty') is a C++ library and application server for
+ developing and deploying web applications. The API is widget-centric
+ and offers complete abstraction of any web-specific application details.
+ .
+ This package contains the Sqlite3 backend for Wt::Dbo.
+
+Package: libwtdbosqlite-dev
+Provides: witty-dev
+Conflicts: witty-dev (<< 3.1.0a-1~)
+Architecture: any
+Depends: ${shlibs:Depends}, ${cli:Depends}, ${misc:Depends},
+ libwtdbosqlite3 (= ${binary:Version}), libwtdbo-dev (= ${binary:Version})
+Recommends: libwthttp-dev (= ${binary:Version}) | libwtfcgi-dev (= ${binary:Version})
+Description: the sqlite3 backend for Wt::Dbo [development]
+ Wt (pronounced 'witty') is a C++ library and application server for
+ developing and deploying web applications. The API is widget-centric
+ and offers complete abstraction of any web-specific application details.
+ .
+ This package contains the development files for the Sqlite3 backend 
+ for Wt::Dbo.
+
+Package: libwtdbopostgres3
+Provides: witty-dev
+Conflicts: witty-dev (<< 3.1.0a-1~)
+Architecture: any
+Depends: ${shlibs:Depends}, ${cli:Depends}, ${misc:Depends},
+ libwtdbo3 (= ${binary:Version}), libpq5
+Recommends: libwthttp8 (= ${binary:Version}) | libwtfcgi8 (= ${binary:Version})
+Description: the PostgreSQL backend for Wt::Dbo [runtime]
+ Wt (pronounced 'witty') is a C++ library and application server for
+ developing and deploying web applications. The API is widget-centric
+ and offers complete abstraction of any web-specific application details.
+ .
+ This package contains the PostgreSQL backend for Wt::Dbo.
+
+Package: libwtdbopostgres-dev
+Provides: witty-dev
+Conflicts: witty-dev (<< 3.1.0a-1~)
+Architecture: any
+Depends: ${shlibs:Depends}, ${cli:Depends}, ${misc:Depends},
+ libwtdbopostgres3 (= ${binary:Version}), libwtdbo-dev (= ${binary:Version}), 
+ libpq-dev
+Recommends: libwthttp-dev (= ${binary:Version}) | libwtfcgi-dev (= ${binary:Version})
+Description: the PostgreSQL backend for Wt::Dbo [development]
+ Wt (pronounced 'witty') is a C++ library and application server for
+ developing and deploying web applications. The API is widget-centric
+ and offers complete abstraction of any web-specific application details.
+ .
+ This package contains the development files for the PostgreSQL backend 
+ for Wt::Dbo.
+
+Package: libwt-dbg
+Provides: witty-dbg
+Replaces: witty-dbg (<< 3.1.0a-1~)
+Conflicts: witty-dbg (<< 3.1.0a-1~)
+Architecture: any
+Section: debug
+Depends: ${misc:Depends}, libwt21 (= ${binary:Version}) |  
+ libwthttp8 (= ${binary:Version}) | libwtfcgi8 (= ${binary:Version}) |
+ libwtext14 (= ${binary:Version}) | libwtdbo3 (= ${binary:Version}) | 
+ libwtdbosqlite3 (= ${binary:Version})
+Description: C++ library and application server for web applications [debug]
+ Wt (pronounced 'witty') is a C++ library and application server for
+ developing and deploying web applications. The API is widget-centric
+ and offers complete abstraction of any web-specific application details.
+ .
+ This package contains debugging files used to investigate problems with
+ binaries included in the Wt packages.
+
+Package: libwt-doc
+Section: doc
+Provides: witty-doc
+Replaces: witty-doc (<< 3.1.0a-1~)
+Conflicts: witty-doc (<< 3.1.0a-1~)
+Architecture: all
+Depends: ${misc:Depends}
+Suggests: libwt-dev (= ${binary:Version}),
+ libwthttp-dev (= ${binary:Version}) | libwtfcgi-dev (= ${binary:Version}),
+ libwtext-dev (= ${binary:Version}), libwtdbo-dev (= ${binary:Version}), 
+ libboost-test-dev (>= 1.36.0), libmysql++-dev, libgd2-xpm-dev
+Recommends: doc-base
+Description: C++ library and application server for web applications [doc]
+ Wt (pronounced 'witty') is a C++ library and application server for
+ developing and deploying web applications. The API is widget-centric
+ and offers complete abstraction of any web-specific application details.
+ .
+ This package contains the API documentation, examples and tutorials.
+
+Package: witty
+Architecture: all
+Depends: ${misc:Depends}, libwt21, libwthttp8 | libwtfcgi8, libwtext14, 
+ libwtdbo3, libwtdbosqlite3
+Description: C++ library for webapps [runtime] (transition package)
+ Wt (pronounced 'witty') is a C++ library and application server for
+ developing and deploying web applications. The API is widget-centric
+ and offers complete abstraction of any web-specific application details.
+ .
+ This package installs the Witty libraries
+ .
+ This is a dummy transition package and can be safely removed.
+
+Package: witty-dbg
+Architecture: all
+Section: debug
+Depends: ${misc:Depends}, libwt-dbg
+Description: C++ library for webapps [debug] (transition package)
+ Wt (pronounced 'witty') is a C++ library and application server for
+ developing and deploying web applications. The API is widget-centric
+ and offers complete abstraction of any web-specific application details.
+ .
+ This package installs debugging files used to investigate problems with
+ binaries included in the Wt packages.
+ .
+ This is a dummy transition package and can be safely removed.
+
+Package: witty-dev
+Architecture: all
+Depends: ${shlibs:Depends}, ${cli:Depends}, ${misc:Depends},
+ libwt-dev, libwthttp-dev | libwtfcgi-dev, libwtext-dev, libwtdbo-dev
+Description: C++ library for webapps [devel] (transition package)
+ Wt (pronounced 'witty') is a C++ library and application server for
+ developing and deploying web applications. The API is widget-centric
+ and offers complete abstraction of any web-specific application details.
+ .
+ This package installs development files for building software that uses the
+ Wt libraries.
+ .
+ This is a dummy transition package and can be safely removed. 
+
+Package: witty-doc
+Section: doc
+Architecture: all
+Depends: ${misc:Depends}, libwt-doc
+Suggests: witty-dev
+Recommends: doc-base
+Description: C++ library for webapps [doc] (transition package)
+ Wt (pronounced 'witty') is a C++ library and application server for
+ developing and deploying web applications. The API is widget-centric
+ and offers complete abstraction of any web-specific application details.
+ .
+ This package installs the documentation and examples.
+ .
+ This is a dummy transition package and can be safely removed.
--- witty-3.1.2.orig/debian/libwtdbosqlite3.lintian-overrides
+++ witty-3.1.2/debian/libwtdbosqlite3.lintian-overrides
@@ -0,0 +1 @@
+libwtdbosqlite3: package-name-doesnt-match-sonames libwtdbosqlite3-3
--- witty-3.1.2.orig/debian/libwthttp-dev.install
+++ witty-3.1.2/debian/libwthttp-dev.install
@@ -0,0 +1,2 @@
+usr/lib/libwthttp.a
+usr/lib/libwthttp.so
--- witty-3.1.2.orig/debian/libwtdbosqlite-dev.install
+++ witty-3.1.2/debian/libwtdbosqlite-dev.install
@@ -0,0 +1,2 @@
+usr/lib/libwtdbosqlite3.a
+usr/lib/libwtdbosqlite3.so
--- witty-3.1.2.orig/debian/source/lintian-overrides
+++ witty-3.1.2/debian/source/lintian-overrides
@@ -0,0 +1 @@
+witty source: dbg-package-missing-depends witty-dbg
--- witty-3.1.2.orig/debian/source/format
+++ witty-3.1.2/debian/source/format
@@ -0,0 +1 @@
+1.0
--- witty-3.1.2.orig/debian/patches/07_tests_cmake_link_dependencies.dpatch
+++ witty-3.1.2/debian/patches/07_tests_cmake_link_dependencies.dpatch
@@ -0,0 +1,24 @@
+#! /bin/sh /usr/share/dpatch/dpatch-run
+## 07_tests_cmake_check_dependencies.dpatch by  <pgquiles@mcpau>
+##
+## All lines beginning with `## DP:' are a description of the patch.
+## DP: Fix CMake linkage for tests
+
+@DPATCH@
+
+diff -rupd witty-3.1.2.orig/test/CMakeLists.txt witty-3.1.2/test/CMakeLists.txt
+--- witty-3.1.2.orig/test/CMakeLists.txt	2010-03-27 01:14:33.928955586 +0100
++++ witty-3.1.2/test/CMakeLists.txt	2010-03-27 01:18:57.484993945 +0100
+@@ -7,8 +7,11 @@ ADD_EXECUTABLE(test
+ )
+ 
+ # SQLITE3 test
+-TARGET_LINK_LIBRARIES(test wt wtdbo wtdbosqlite3)
++TARGET_LINK_LIBRARIES(test ${BOOST_WT_LIBRARIES} wt wtdbosqlite3 wtdbo)
+ ADD_DEFINITIONS(-DSQLITE3)
++IF( UNIX )
++  TARGET_LINK_LIBRARIES( test dl )
++ENDIF( UNIX )
+ 
+ # POSTGRES test
+ #TARGET_LINK_LIBRARIES(test wt wtdbo wtdbopostgres)
--- witty-3.1.2.orig/debian/patches/05_examples_cmake_check_dependencies.dpatch
+++ witty-3.1.2/debian/patches/05_examples_cmake_check_dependencies.dpatch
@@ -0,0 +1,196 @@
+#! /bin/sh /usr/share/dpatch/dpatch-run
+## 05_examples_cmake_check_dependencies.dpatch by  <pgquiles@elpauer.org>
+##
+## All lines beginning with `## DP:' are a description of the patch.
+## DP: Some examples were not being built when you tried to build them from 
+## DP: /usr/share/witty-doc/examples because upstream was not checking 
+## DP: dependencies. See 
+## DP: http://thread.gmane.org/gmane.comp.web.witty.general/3356
+
+@DPATCH@
+
+diff -rupd witty-2.2.4.orig/cmake/WtFindBoost-vintage.txt witty-2.2.4/cmake/WtFindBoost-vintage.txt
+--- witty-2.2.4.orig/cmake/WtFindBoost-vintage.txt	2009-10-12 01:09:07.000000000 +0200
++++ witty-2.2.4/cmake/WtFindBoost-vintage.txt	2009-10-12 01:09:27.000000000 +0200
+@@ -28,7 +28,7 @@ FIND_PATH(BOOST_INCLUDE_DIRS
+     ${BOOST_DIR}/include/${BOOST_VERSION}
+     ${BOOST_DIR}/include/boost-${BOOST_VERSION}
+     ${BOOST_DIR}
+-  NO_DEFAULT_PATH
++#  NO_DEFAULT_PATH
+ )
+ 
+ #SET (BOOST_LIB_DIRS "${BOOST_DIR}/lib ${BOOST_DIR}/lib64")
+@@ -46,7 +46,7 @@ ELSE(WIN32)
+       boost_regex-mt
+     PATHS
+       ${BOOST_LIB_DIRS}
+-    NO_DEFAULT_PATH
++#    NO_DEFAULT_PATH
+   )
+   FIND_LIBRARY(BOOST_REGEX_LIB
+     NAMES
+@@ -56,7 +56,7 @@ ELSE(WIN32)
+       boost_regex
+     PATHS
+       ${BOOST_LIB_DIRS}
+-    NO_DEFAULT_PATH
++#    NO_DEFAULT_PATH
+   )
+ 
+   FIND_LIBRARY(BOOST_PO_LIB_MT
+@@ -67,7 +67,7 @@ ELSE(WIN32)
+       boost_program_options-mt
+     PATHS
+       ${BOOST_LIB_DIRS}
+-    NO_DEFAULT_PATH
++#    NO_DEFAULT_PATH
+   )
+   FIND_LIBRARY(BOOST_PO_LIB
+     NAMES
+@@ -77,7 +77,7 @@ ELSE(WIN32)
+       boost_program_options
+     PATHS
+       ${BOOST_LIB_DIRS}
+-    NO_DEFAULT_PATH
++#    NO_DEFAULT_PATH
+   )
+ 
+   FIND_LIBRARY(BOOST_DT_LIB_MT
+@@ -88,7 +88,7 @@ ELSE(WIN32)
+       boost_date_time-mt
+     PATHS
+       ${BOOST_LIB_DIRS}
+-    NO_DEFAULT_PATH
++#    NO_DEFAULT_PATH
+   )
+   FIND_LIBRARY(BOOST_DT_LIB
+     NAMES
+@@ -98,7 +98,7 @@ ELSE(WIN32)
+       boost_date_time
+     PATHS
+       ${BOOST_LIB_DIRS}
+-    NO_DEFAULT_PATH
++#    NO_DEFAULT_PATH
+   )
+ 
+   FIND_LIBRARY(BOOST_SIGNALS_LIB_MT
+@@ -109,7 +109,7 @@ ELSE(WIN32)
+       boost_signals-mt
+     PATHS
+       ${BOOST_LIB_DIRS}
+-    NO_DEFAULT_PATH
++#    NO_DEFAULT_PATH
+   )
+   FIND_LIBRARY(BOOST_SIGNALS_LIB
+     NAMES
+@@ -119,7 +119,7 @@ ELSE(WIN32)
+       boost_signals
+     PATHS
+       ${BOOST_LIB_DIRS}
+-    NO_DEFAULT_PATH
++#    NO_DEFAULT_PATH
+   )
+ 
+   FIND_LIBRARY(BOOST_THREAD_LIB_MT
+@@ -130,7 +130,7 @@ ELSE(WIN32)
+       boost_thread-mt
+     PATHS
+       ${BOOST_LIB_DIRS}
+-    NO_DEFAULT_PATH
++#    NO_DEFAULT_PATH
+   )
+ 
+   FIND_LIBRARY(BOOST_SYSTEM_LIB_MT
+@@ -141,7 +141,7 @@ ELSE(WIN32)
+       boost_system-mt
+     PATHS
+       ${BOOST_LIB_DIRS}
+-    NO_DEFAULT_PATH
++#    NO_DEFAULT_PATH
+   )
+   FIND_LIBRARY(BOOST_SYSTEM_LIB
+     NAMES
+@@ -151,7 +151,7 @@ ELSE(WIN32)
+       boost_system
+     PATHS
+       ${BOOST_LIB_DIRS}
+-    NO_DEFAULT_PATH
++#    NO_DEFAULT_PATH
+   )
+ 
+   FIND_LIBRARY(BOOST_FS_LIB_MT
+@@ -162,7 +162,7 @@ ELSE(WIN32)
+       boost_filesystem-mt
+     PATHS
+       ${BOOST_LIB_DIRS}
+-    NO_DEFAULT_PATH
++#    NO_DEFAULT_PATH
+   )
+   FIND_LIBRARY(BOOST_FS_LIB
+     NAMES
+@@ -172,7 +172,7 @@ ELSE(WIN32)
+       boost_filesystem
+     PATHS
+       ${BOOST_LIB_DIRS}
+-    NO_DEFAULT_PATH
++#    NO_DEFAULT_PATH
+   )
+ 
+ # FIXME: todo for Linux
+diff -rupd witty-2.2.4.orig/examples/CMakeLists.txt witty-2.2.4/examples/CMakeLists.txt
+--- witty-2.2.4.orig/examples/CMakeLists.txt	2009-10-12 01:09:07.000000000 +0200
++++ witty-2.2.4/examples/CMakeLists.txt	2009-10-12 01:09:43.000000000 +0200
+@@ -1,3 +1,52 @@
++PROJECT( wtexamples )
++
++cmake_minimum_required(VERSION 2.4)
++
++IF(NOT MULTI_THREADED)
++  OPTION(MULTI_THREADED "Build multi-threaded httpd deamon (if possible)" ON)
++ENDIF(NOT MULTI_THREADED)
++
++INCLUDE( ${WT_SOURCE_DIR}/cmake/WtFindBoost.txt )
++INCLUDE( ${WT_SOURCE_DIR}/cmake/WtFindAsio.txt )
++INCLUDE( ${WT_SOURCE_DIR}/cmake/WtFindGd.txt )
++INCLUDE( ${WT_SOURCE_DIR}/cmake/WtFindSsl.txt )
++INCLUDE( ${WT_SOURCE_DIR}/cmake/WtFindMysqlpp.txt )
++INCLUDE( ${WT_SOURCE_DIR}/cmake/WtFindZlib.txt )
++FIND_PACKAGE( Qt4 )
++INCLUDE(FindThreads)
++
++#IF(NOT BOOST_WT_FOUND)
++#  MESSAGE("** Error finding Wt required library: ")
++#  MESSAGE("** Could not find a boost installation in " ${BOOST_DIR} ".")
++#  MESSAGE("** It may be necessary to set appropriate values for the")
++#  MESSAGE("   variables BOOST_DIR, BOOST_COMPILER, and BOOST_VERSION")
++#  MESSAGE(FATAL_ERROR "** Wt requires the following C++ boost libraries:
++#  boost_date_time, boost_regex, and boost_program_options, boost_signals,
++#  and optionally boost_thread")
++#ENDIF(NOT BOOST_WT_FOUND)
++
++IF(BOOST_WT_MT_FOUND)
++  IF(MULTI_THREADED)
++    ADD_DEFINITIONS(-DTHREADED -D_REENTRANT -DBOOST_SPIRIT_THREADSAFE)
++    MESSAGE("** Enabling multi threading.")
++  ELSE(MULTI_THREADED)
++    MESSAGE("** Disabling multi threading.")
++    ADD_DEFINITIONS(-DBOOST_DISABLE_THREADS)
++  ENDIF(MULTI_THREADED)
++ELSE(BOOST_WT_MT_FOUND)
++  MESSAGE("** Disabling multi threading.")
++  ADD_DEFINITIONS(-DBOOST_DISABLE_THREADS)
++ENDIF(BOOST_WT_MT_FOUND)
++
++# Boost is used nearly everywhere, so we can put these here
++INCLUDE_DIRECTORIES(${BOOST_INCLUDE_DIRS})
++LINK_DIRECTORIES(${BOOST_LIB_DIRS})
++IF(WIN32)
++  IF(BOOST_DYNAMIC)
++    ADD_DEFINITIONS(-DBOOST_ALL_DYN_LINK)
++  ENDIF(BOOST_DYNAMIC)
++ENDIF(WIN32)
++
+ IF(BOOST_WT_MT_FOUND)
+   IF(MULTI_THREADED)
+     ADD_DEFINITIONS(-DWT_THREADED -D_REENTRANT -DBOOST_SPIRIT_THREADSAFE)
--- witty-3.1.2.orig/debian/patches/00list
+++ witty-3.1.2/debian/patches/00list
@@ -0,0 +1,3 @@
+01_no_debug_postfix.dpatch
+02_install_wtdbo_headers.dpatch
+09_wtdbosqlite3_needs_threads.dpatch
--- witty-3.1.2.orig/debian/patches/01_no_debug_postfix.dpatch
+++ witty-3.1.2/debian/patches/01_no_debug_postfix.dpatch
@@ -0,0 +1,88 @@
+#! /bin/sh /usr/share/dpatch/dpatch-run
+## 01_no_debug_postfix.dpatch by  <pgquiles@elpauer.org>
+##
+## All lines beginning with `## DP:' are a description of the patch.
+## DP: Do not add a debug postfix, as we get the debug libraries by applying 
+## DP: dh_strip. As we want to generate a -dbg package, we need to build Witty 
+## DP: with CMAKE_BUILD_TYPE=Debug. The CMakeLists.txt files are telling CMake 
+## DP: to append a 'd' (a-la Visual C++) to the debug libraries but we don't 
+## DP: need (or want, either) to have that suffix. Sadly, 
+## DP: -DVARIABLE:TYPE=VALUE won't overrides SET_TARGET_PROPERTIES, therefore 
+## DP: making necessary to patch the CMakeLists.txt project files.
+
+@DPATCH@
+
+diff -rupd witty-3.1.2.orig/src/CMakeLists.txt witty-3.1.2/src/CMakeLists.txt
+--- witty-3.1.2.orig/src/CMakeLists.txt	2010-03-27 01:01:37.417955345 +0100
++++ witty-3.1.2/src/CMakeLists.txt	2010-03-27 01:01:55.173001119 +0100
+@@ -293,7 +293,6 @@ PROPERTIES
+   POST_INSTALL_SCRIPT ${WT_BINARY_DIR}/WtInstall.cmake
+   VERSION ${VERSION_SERIES}.${VERSION_MAJOR}.${VERSION_MINOR}
+   SOVERSION ${WT_SOVERSION}
+-  DEBUG_POSTFIX "d"
+ )
+ 
+ IF(WIN32)
+diff -rupd witty-3.1.2.orig/src/fcgi/CMakeLists.txt witty-3.1.2/src/fcgi/CMakeLists.txt
+--- witty-3.1.2.orig/src/fcgi/CMakeLists.txt	2010-03-27 01:01:37.425955425 +0100
++++ witty-3.1.2/src/fcgi/CMakeLists.txt	2010-03-27 01:01:55.173001119 +0100
+@@ -22,7 +22,6 @@ IF(CONNECTOR_FCGI)
+   PROPERTIES
+     VERSION ${VERSION_SERIES}.${VERSION_MAJOR}.${VERSION_MINOR}
+     SOVERSION ${WTFCGI_SOVERSION}
+-    DEBUG_POSTFIX "d"
+   )
+ 
+   INSTALL(TARGETS wtfcgi
+diff -rupd witty-3.1.2.orig/src/http/CMakeLists.txt witty-3.1.2/src/http/CMakeLists.txt
+--- witty-3.1.2.orig/src/http/CMakeLists.txt	2010-03-27 01:01:37.425955425 +0100
++++ witty-3.1.2/src/http/CMakeLists.txt	2010-03-27 01:01:55.173001119 +0100
+@@ -77,7 +77,6 @@ IF(CONNECTOR_HTTP)
+   PROPERTIES
+     VERSION ${VERSION_SERIES}.${VERSION_MAJOR}.${VERSION_MINOR}
+     SOVERSION ${WTHTTP_SOVERSION}
+-    DEBUG_POSTFIX "d"
+   )
+ 
+   IF(WIN32)
+diff -rupd witty-3.1.2.orig/src/Wt/Dbo/backend/CMakeLists.txt witty-3.1.2/src/Wt/Dbo/backend/CMakeLists.txt
+--- witty-3.1.2.orig/src/Wt/Dbo/backend/CMakeLists.txt	2010-03-27 01:01:37.441956146 +0100
++++ witty-3.1.2/src/Wt/Dbo/backend/CMakeLists.txt	2010-03-27 01:02:29.796956970 +0100
+@@ -29,7 +29,6 @@ SET_TARGET_PROPERTIES(
+ PROPERTIES
+   VERSION ${VERSION_SERIES}.${VERSION_MAJOR}.${VERSION_MINOR}
+   SOVERSION ${WTDBO_SOVERSION}
+-  DEBUG_POSTFIX "d"
+ )
+ 
+ INSTALL_FILES(/include/Wt/Dbo/backend "^Sqlite3$")
+@@ -53,7 +52,6 @@ IF(POSTGRES_FOUND)
+   PROPERTIES
+     VERSION ${VERSION_SERIES}.${VERSION_MAJOR}.${VERSION_MINOR}
+     SOVERSION ${WTDBO_SOVERSION}
+-    DEBUG_POSTFIX "d"
+   )
+ 
+   INSTALL_FILES(/include/Wt/Dbo/backend "^Postgres$")
+diff -rupd witty-3.1.2.orig/src/Wt/Dbo/CMakeLists.txt witty-3.1.2/src/Wt/Dbo/CMakeLists.txt
+--- witty-3.1.2.orig/src/Wt/Dbo/CMakeLists.txt	2010-03-27 01:01:37.433955386 +0100
++++ witty-3.1.2/src/Wt/Dbo/CMakeLists.txt	2010-03-27 01:01:55.176976597 +0100
+@@ -21,7 +21,6 @@ SET_TARGET_PROPERTIES(
+ PROPERTIES
+   VERSION ${VERSION_SERIES}.${VERSION_MAJOR}.${VERSION_MINOR}
+   SOVERSION ${WTDBO_SOVERSION}
+-  DEBUG_POSTFIX "d"
+ )
+ 
+ SUBDIRS(backend)
+diff -rupd witty-3.1.2.orig/src/Wt/Ext/CMakeLists.txt witty-3.1.2/src/Wt/Ext/CMakeLists.txt
+--- witty-3.1.2.orig/src/Wt/Ext/CMakeLists.txt	2010-03-27 01:01:37.445955627 +0100
++++ witty-3.1.2/src/Wt/Ext/CMakeLists.txt	2010-03-27 01:01:55.176976597 +0100
+@@ -52,7 +52,6 @@ SET_TARGET_PROPERTIES(
+ PROPERTIES
+   VERSION ${VERSION_SERIES}.${VERSION_MAJOR}.${VERSION_MINOR}
+   SOVERSION ${WTEXT_SOVERSION}
+-  DEBUG_POSTFIX "d"
+ )
+ 
+ INSTALL_FILES(/include/Wt/Ext "...+[^Ch~]$")
--- witty-3.1.2.orig/debian/patches/09_wtdbosqlite3_needs_threads.dpatch
+++ witty-3.1.2/debian/patches/09_wtdbosqlite3_needs_threads.dpatch
@@ -0,0 +1,33 @@
+#! /bin/sh /usr/share/dpatch/dpatch-run
+## 09_wtdbosqlite3_needs_threads.dpatch by  <pgquiles@elpauer.org>
+##
+## All lines beginning with `## DP:' are a description of the patch.
+## DP: Sqlite3 needs threading support, therefore the sqlite3 backend for 
+## DP: Wt::Dbo should only be built if threads are available (and we should 
+## DP: link to the threads library, too)
+
+@DPATCH@
+
+diff -rupd witty-3.1.2.orig/src/Wt/Dbo/backend/CMakeLists.txt witty-3.1.2/src/Wt/Dbo/backend/CMakeLists.txt
+--- witty-3.1.2.orig/src/Wt/Dbo/backend/CMakeLists.txt	2010-03-27 01:14:33.920957665 +0100
++++ witty-3.1.2/src/Wt/Dbo/backend/CMakeLists.txt	2010-03-27 01:16:42.396956820 +0100
+@@ -6,6 +6,10 @@ ELSE(USE_SYSTEM_SQLITE3)
+   SET(Sqlite3_SRCS amalgamation/sqlite3.c)
+ ENDIF(USE_SYSTEM_SQLITE3)
+ 
++FIND_PACKAGE(Threads)
++
++IF(Threads_FOUND)
++
+ ADD_LIBRARY(wtdbosqlite3
+   Sqlite3.C
+   ${Sqlite3_SRCS}
+@@ -34,6 +38,8 @@ PROPERTIES
+ 
+ INSTALL_FILES(/include/Wt/Dbo/backend "^Sqlite3$")
+ 
++ENDIF(Threads_FOUND)
++
+ IF(POSTGRES_FOUND)
+   MESSAGE("** Wt::Dbo: building Postgres backend.")
+   ADD_LIBRARY(wtdbopostgres
--- witty-3.1.2.orig/debian/patches/05_examples_cmake_link_dependencies.dpatch
+++ witty-3.1.2/debian/patches/05_examples_cmake_link_dependencies.dpatch
@@ -0,0 +1,282 @@
+#! /bin/sh /usr/share/dpatch/dpatch-run
+## 05_examples_cmake_link_dependencies.dpatch by  <pgquiles@elpauer.org>
+##
+## All lines beginning with `## DP:' are a description of the patch.
+## DP: More fixes. This will probably be merged with 
+## DP: 05_examples_cmake_check_dependencies
+
+@DPATCH@
+
+diff -upd libwt-3.1.0.orig/examples/blog/CMakeLists.txt libwt-3.1.0/examples/blog/CMakeLists.txt
+--- libwt-3.1.0.orig/examples/blog/CMakeLists.txt     2009-12-28 00:07:30.000000000 +0100
++++ libwt-3.1.0/examples/blog/CMakeLists.txt       2009-12-28 01:12:27.972465417 +0100
+@@ -15,7 +15,7 @@ ADD_EXECUTABLE(blog.wt
+   blog.C
+ )
+
+-TARGET_LINK_LIBRARIES(blog.wt ${EXAMPLES_CONNECTOR} wtdbo wtdbosqlite3)
++TARGET_LINK_LIBRARIES(blog.wt ${SSL_LIBRARIES} ${BOOST_WT_LIBRARIES} ${BOOST_WTHTTP_LIBRARIES} ${ZLIB_LIBRARIES} ${ASIO_LIBRARIES} ${EXAMPLES_CONNECTOR} wtdbo wtdbosqlite3)
+
+ # Test whether crypt(3) is provided by libc. If it's not, check if
+ # libcrypt exists and if it provides crypt(3).
+diff -rupd libwt-3.1.0.orig/examples/bobsmith/CMakeLists.txt libwt-3.1.0/examples/bobsmith/CMakeLists.txt
+--- libwt-3.1.0.orig/examples/bobsmith/CMakeLists.txt	2009-11-24 12:30:25.349235962 +0100
++++ libwt-3.1.0/examples/bobsmith/CMakeLists.txt	2009-12-27 01:15:24.921785168 +0100
+@@ -1,5 +1,5 @@
+ ADD_EXECUTABLE(bobsmith.wt bobsmith.C)
+-TARGET_LINK_LIBRARIES(bobsmith.wt ${EXAMPLES_CONNECTOR})
++TARGET_LINK_LIBRARIES(bobsmith.wt ${SSL_LIBRARIES} ${BOOST_WT_LIBRARIES} ${BOOST_WTHTTP_LIBRARIES} ${ZLIB_LIBRARIES} ${ASIO_LIBRARIES} ${EXAMPLES_CONNECTOR} )
+ 
+ #
+ # If you have Wt installed somehwere, you should use the
+diff -rupd libwt-3.1.0.orig/examples/charts/CMakeLists.txt libwt-3.1.0/examples/charts/CMakeLists.txt
+--- libwt-3.1.0.orig/examples/charts/CMakeLists.txt	2009-11-24 12:30:23.217111628 +0100
++++ libwt-3.1.0/examples/charts/CMakeLists.txt	2009-12-27 01:16:06.244719159 +0100
+@@ -5,7 +5,7 @@ ADD_EXECUTABLE(charts.wt
+ 	CsvUtil.C
+ 	ChartsApplication.C
+ )
+-TARGET_LINK_LIBRARIES(charts.wt wtext ${EXAMPLES_CONNECTOR})
++TARGET_LINK_LIBRARIES(charts.wt wtext ${SSL_LIBRARIES} ${BOOST_WT_LIBRARIES} ${BOOST_WTHTTP_LIBRARIES} ${ZLIB_LIBRARIES} ${ASIO_LIBRARIES} ${EXAMPLES_CONNECTOR})
+ 
+ #
+ # If you have Wt installed somehwere, you should use the
+diff -rupd libwt-3.1.0.orig/examples/composer/CMakeLists.txt libwt-3.1.0/examples/composer/CMakeLists.txt
+--- libwt-3.1.0.orig/examples/composer/CMakeLists.txt	2009-11-24 12:30:25.693175864 +0100
++++ libwt-3.1.0/examples/composer/CMakeLists.txt	2009-12-27 01:16:35.644719022 +0100
+@@ -8,7 +8,7 @@ ADD_EXECUTABLE(composer.wt 
+   Option.C
+   OptionList.C
+ )
+-TARGET_LINK_LIBRARIES(composer.wt ${EXAMPLES_CONNECTOR})
++TARGET_LINK_LIBRARIES(composer.wt ${SSL_LIBRARIES} ${BOOST_WT_LIBRARIES} ${BOOST_WTHTTP_LIBRARIES} ${ZLIB_LIBRARIES} ${ASIO_LIBRARIES} ${EXAMPLES_CONNECTOR})
+ 
+ #
+ # If you have Wt installed somehwere, you should use the
+diff -rupd libwt-3.1.0.orig/examples/dialog/CMakeLists.txt libwt-3.1.0/examples/dialog/CMakeLists.txt
+--- libwt-3.1.0.orig/examples/dialog/CMakeLists.txt	2009-11-24 12:30:23.122558210 +0100
++++ libwt-3.1.0/examples/dialog/CMakeLists.txt	2009-12-27 01:17:01.556718672 +0100
+@@ -4,6 +4,7 @@ ADD_EXECUTABLE(dialog.wt
+ )
+ 
+ TARGET_LINK_LIBRARIES(dialog.wt
++ ${SSL_LIBRARIES} ${BOOST_WT_LIBRARIES} ${BOOST_WTHTTP_LIBRARIES} ${ZLIB_LIBRARIES} ${ASIO_LIBRARIES}
+   ${EXAMPLES_CONNECTOR}
+ )
+ 
+diff -rupd libwt-3.1.0.orig/examples/dragdrop/CMakeLists.txt libwt-3.1.0/examples/dragdrop/CMakeLists.txt
+--- libwt-3.1.0.orig/examples/dragdrop/CMakeLists.txt	2009-11-24 12:30:25.494376077 +0100
++++ libwt-3.1.0/examples/dragdrop/CMakeLists.txt	2009-12-27 01:17:24.928717927 +0100
+@@ -3,7 +3,7 @@ ADD_EXECUTABLE(dragdrop.wt 
+   DragExample.C
+   DragApplication.C
+ )
+-TARGET_LINK_LIBRARIES(dragdrop.wt ${EXAMPLES_CONNECTOR})
++TARGET_LINK_LIBRARIES(dragdrop.wt ${SSL_LIBRARIES} ${BOOST_WT_LIBRARIES} ${BOOST_WTHTTP_LIBRARIES} ${ZLIB_LIBRARIES} ${ASIO_LIBRARIES} ${EXAMPLES_CONNECTOR})
+ 
+ #
+ # If you have Wt installed somehwere, you should use the
+diff -rupd libwt-3.1.0.orig/examples/extkitchen/CMakeLists.txt libwt-3.1.0/examples/extkitchen/CMakeLists.txt
+--- libwt-3.1.0.orig/examples/extkitchen/CMakeLists.txt	2009-11-24 12:30:24.454372240 +0100
++++ libwt-3.1.0/examples/extkitchen/CMakeLists.txt	2009-12-27 01:17:53.273764720 +0100
+@@ -1,5 +1,5 @@
+ ADD_EXECUTABLE(extkitchen.wt ExtKitchenApplication.C CsvUtil.C)
+-TARGET_LINK_LIBRARIES(extkitchen.wt wtext ${EXAMPLES_CONNECTOR})
++TARGET_LINK_LIBRARIES(extkitchen.wt wtext ${SSL_LIBRARIES} ${BOOST_WT_LIBRARIES} ${BOOST_WTHTTP_LIBRARIES} ${ZLIB_LIBRARIES} ${ASIO_LIBRARIES} ${EXAMPLES_CONNECTOR})
+ 
+ #
+ # If you have Wt installed somehwere, you should use the
+diff -rupd libwt-3.1.0.orig/examples/filetreetable/CMakeLists.txt libwt-3.1.0/examples/filetreetable/CMakeLists.txt
+--- libwt-3.1.0.orig/examples/filetreetable/CMakeLists.txt	2009-11-24 12:30:26.031120831 +0100
++++ libwt-3.1.0/examples/filetreetable/CMakeLists.txt	2009-12-27 01:18:46.100718776 +0100
+@@ -15,6 +15,7 @@ ELSE(NOT WIN32 AND NOT HAVE_FILETREE_BOO
+   )
+ 
+   TARGET_LINK_LIBRARIES(filetreetable.wt
++    ${SSL_LIBRARIES} ${BOOST_WT_LIBRARIES} ${BOOST_WTHTTP_LIBRARIES} ${ZLIB_LIBRARIES} ${ASIO_LIBRARIES}
+     ${EXAMPLES_CONNECTOR}
+     ${BOOST_FS_LIB_MT}
+   )
+diff -rupd libwt-3.1.0.orig/examples/form/CMakeLists.txt libwt-3.1.0/examples/form/CMakeLists.txt
+--- libwt-3.1.0.orig/examples/form/CMakeLists.txt	2009-11-24 12:30:23.069544300 +0100
++++ libwt-3.1.0/examples/form/CMakeLists.txt	2009-12-27 01:19:06.409822609 +0100
+@@ -10,6 +10,7 @@ ELSE(NOT BOOST_WT_FOUND)
+ 
+   ADD_EXECUTABLE(formexample.wt DateValidator.C Form.C FormExample.C)
+   TARGET_LINK_LIBRARIES(formexample.wt
++    ${SSL_LIBRARIES} ${BOOST_WT_LIBRARIES} ${BOOST_WTHTTP_LIBRARIES} ${ZLIB_LIBRARIES} ${ASIO_LIBRARIES}
+     ${EXAMPLES_CONNECTOR}
+     ${BOOST_WT_DT_LIBRARY}
+     )
+diff -rupd libwt-3.1.0.orig/examples/gitmodel/CMakeLists.txt libwt-3.1.0/examples/gitmodel/CMakeLists.txt
+--- libwt-3.1.0.orig/examples/gitmodel/CMakeLists.txt	2009-11-24 12:30:24.585117655 +0100
++++ libwt-3.1.0/examples/gitmodel/CMakeLists.txt	2009-12-27 01:19:34.168718788 +0100
+@@ -5,7 +5,7 @@ IF(NOT WIN32)
+     ../wt-homepage/SourceView.C
+     GitView.C
+   )
+-  TARGET_LINK_LIBRARIES(gitview.wt ${EXAMPLES_CONNECTOR} ${BOOST_FS_LIB_MT})
++  TARGET_LINK_LIBRARIES(gitview.wt ${SSL_LIBRARIES} ${BOOST_WT_LIBRARIES} ${BOOST_WTHTTP_LIBRARIES} ${ZLIB_LIBRARIES} ${ASIO_LIBRARIES} ${EXAMPLES_CONNECTOR} ${BOOST_FS_LIB_MT})
+ 
+   INCLUDE_DIRECTORIES(
+     ${WT_SOURCE_DIR}/src
+diff -rupd libwt-3.1.0.orig/examples/hello/CMakeLists.txt libwt-3.1.0/examples/hello/CMakeLists.txt
+--- libwt-3.1.0.orig/examples/hello/CMakeLists.txt	2009-11-24 12:30:26.789173193 +0100
++++ libwt-3.1.0//examples/hello/CMakeLists.txt	2009-12-27 01:20:02.473766568 +0100
+@@ -1,5 +1,5 @@
+ ADD_EXECUTABLE(hello.wt hello.C)
+-TARGET_LINK_LIBRARIES(hello.wt ${EXAMPLES_CONNECTOR})
++TARGET_LINK_LIBRARIES(hello.wt ${SSL_LIBRARIES} ${BOOST_WT_LIBRARIES} ${BOOST_WTHTTP_LIBRARIES} ${ZLIB_LIBRARIES} ${ASIO_LIBRARIES} ${EXAMPLES_CONNECTOR})
+ 
+ #
+ # If you have Wt installed somehwere, you should use the
+diff -rupd libwt-3.1.0.orig/examples/hello-widgetset/CMakeLists.txt libwt-3.1.0/examples/hello-widgetset/CMakeLists.txt
+--- libwt-3.1.0.orig/examples/hello-widgetset/CMakeLists.txt	2009-11-24 12:30:26.737162586 +0100
++++ libwt-3.1.0/examples/hello-widgetset/CMakeLists.txt	2009-12-27 01:20:22.576743345 +0100
+@@ -1,7 +1,7 @@
+ IF (EXAMPLES_CONNECTOR MATCHES "wthttp")
+ 
+   ADD_EXECUTABLE(hello-widgetset.wt hello.C)
+-  TARGET_LINK_LIBRARIES(hello-widgetset.wt ${EXAMPLES_CONNECTOR})
++  TARGET_LINK_LIBRARIES(hello-widgetset.wt ${SSL_LIBRARIES} ${BOOST_WT_LIBRARIES} ${BOOST_WTHTTP_LIBRARIES} ${ZLIB_LIBRARIES} ${ASIO_LIBRARIES} ${EXAMPLES_CONNECTOR})
+ 
+   #
+   # If you have Wt installed somehwere, you should use the
+diff -rupd libwt-3.1.0.orig/examples/javascript/CMakeLists.txt libwt-3.1.0/examples/javascript/CMakeLists.txt
+--- libwt-3.1.0.orig/examples/javascript/CMakeLists.txt	2009-11-24 12:30:23.489601238 +0100
++++ libwt-3.1.0/examples/javascript/CMakeLists.txt	2009-12-27 01:20:49.444741127 +0100
+@@ -5,6 +5,7 @@ ADD_EXECUTABLE(javascript.wt
+ )
+ 
+ TARGET_LINK_LIBRARIES(javascript.wt
++  ${SSL_LIBRARIES} ${BOOST_WT_LIBRARIES} ${BOOST_WTHTTP_LIBRARIES} ${ZLIB_LIBRARIES} ${ASIO_LIBRARIES}
+   ${EXAMPLES_CONNECTOR}
+ )
+ 
+diff -rupd libwt-3.1.0.orig/examples/mandelbrot/CMakeLists.txt libwt-3.1.0/examples/mandelbrot/CMakeLists.txt
+--- libwt-3.1.0.orig/examples/mandelbrot/CMakeLists.txt	2009-11-24 12:30:25.897096481 +0100
++++ libwt-3.1.0/examples/mandelbrot/CMakeLists.txt	2009-12-27 01:21:17.745743078 +0100
+@@ -3,7 +3,7 @@ IF(NOT GD_FOUND)
+ ELSE(NOT GD_FOUND)
+ 
+   ADD_EXECUTABLE(mandelbrot.wt MandelbrotImage.C MandelbrotExample.C)
+-  TARGET_LINK_LIBRARIES(mandelbrot.wt ${EXAMPLES_CONNECTOR} ${GD_LIBRARIES})
++  TARGET_LINK_LIBRARIES(mandelbrot.wt ${SSL_LIBRARIES} ${BOOST_WT_LIBRARIES} ${BOOST_WTHTTP_LIBRARIES} ${ZLIB_LIBRARIES} ${ASIO_LIBRARIES} ${EXAMPLES_CONNECTOR} ${GD_LIBRARIES})
+ 
+   INCLUDE_DIRECTORIES(
+     ${GD_INCLUDE_DIRS}
+diff -rupd libwt-3.1.0.orig/examples/mission/CMakeLists.txt libwt-3.1.0/examples/mission/CMakeLists.txt
+--- libwt-3.1.0.orig/examples/mission/CMakeLists.txt	2009-11-24 12:30:26.513094875 +0100
++++ libwt-3.1.0/examples/mission/CMakeLists.txt	2009-12-27 01:21:49.540740196 +0100
+@@ -1,5 +1,5 @@
+ ADD_EXECUTABLE(impossible.wt impossible.C CountDownWidget.C)
+-TARGET_LINK_LIBRARIES(impossible.wt ${EXAMPLES_CONNECTOR})
++TARGET_LINK_LIBRARIES(impossible.wt ${SSL_LIBRARIES} ${BOOST_WT_LIBRARIES} ${BOOST_WTHTTP_LIBRARIES} ${ZLIB_LIBRARIES} ${ASIO_LIBRARIES} ${EXAMPLES_CONNECTOR})
+ 
+ #
+ # If you have Wt installed somehwere, you should use the
+diff -rupd libwt-3.1.0.orig/examples/painting/CMakeLists.txt libwt-3.1.0/examples/painting/CMakeLists.txt
+--- libwt-3.1.0.orig/examples/painting/CMakeLists.txt	2009-11-24 12:30:23.413935641 +0100
++++ libwt-3.1.0/examples/painting/CMakeLists.txt	2009-12-27 01:22:11.948718328 +0100
+@@ -2,7 +2,7 @@ ADD_EXECUTABLE(paintexample.wt
+   PaintApplication.C PaintExample.C ShapesWidget.C
+ )
+ 
+-TARGET_LINK_LIBRARIES(paintexample.wt ${EXAMPLES_CONNECTOR})
++TARGET_LINK_LIBRARIES(paintexample.wt ${SSL_LIBRARIES} ${BOOST_WT_LIBRARIES} ${BOOST_WTHTTP_LIBRARIES} ${ZLIB_LIBRARIES} ${ASIO_LIBRARIES} ${EXAMPLES_CONNECTOR})
+ 
+ #
+ # If you have Wt installed somehwere, you should use the
+diff -rupd libwt-3.1.0.orig/examples/simplechat/CMakeLists.txt libwt-3.1.0/examples/simplechat/CMakeLists.txt
+--- libwt-3.1.0.orig/examples/simplechat/CMakeLists.txt	2009-11-24 12:30:23.877237761 +0100
++++ libwt-3.1.0/examples/simplechat/CMakeLists.txt	2009-12-27 01:22:38.940739245 +0100
+@@ -8,7 +8,7 @@ ELSE(NOT BOOST_WT_MT_FOUND)
+    simpleChat.C SimpleChatWidget.C SimpleChatServer.C
+  )
+ 
+- TARGET_LINK_LIBRARIES(simplechat.wt ${EXAMPLES_CONNECTOR}
++ TARGET_LINK_LIBRARIES(simplechat.wt ${SSL_LIBRARIES} ${BOOST_WT_LIBRARIES} ${BOOST_WTHTTP_LIBRARIES} ${ZLIB_LIBRARIES} ${ASIO_LIBRARIES} ${EXAMPLES_CONNECTOR}
+    ${BOOST_WT_THREAD_LIBRARY})
+ 
+  #
+diff -rupd libwt-3.1.0.orig/examples/style/CMakeLists.txt libwt-3.1.0/examples/style/CMakeLists.txt
+--- libwt-3.1.0.orig/examples/style/CMakeLists.txt	2009-11-24 12:30:23.345175161 +0100
++++ libwt-3.1.0/examples/style/CMakeLists.txt	2009-12-27 01:23:02.441809767 +0100
+@@ -9,7 +9,7 @@ IF(NOT GD_FOUND)
+ ELSE(NOT GD_FOUND)
+ 
+   ADD_EXECUTABLE(styleexample.wt CornerImage.C RoundedWidget.C StyleExample.C)
+-  TARGET_LINK_LIBRARIES(styleexample.wt ${EXAMPLES_CONNECTOR} ${GD_LIBRARIES})
++  TARGET_LINK_LIBRARIES(styleexample.wt ${SSL_LIBRARIES} ${BOOST_WT_LIBRARIES} ${BOOST_WTHTTP_LIBRARIES} ${ZLIB_LIBRARIES} ${ASIO_LIBRARIES} ${EXAMPLES_CONNECTOR} ${GD_LIBRARIES})
+ 
+   INCLUDE_DIRECTORIES(
+     $(GD_INCLUDE_DIRS)
+diff -rupd libwt-3.1.0.orig/examples/treelist/CMakeLists.txt libwt-3.1.0/examples/treelist/CMakeLists.txt
+--- libwt-3.1.0.orig/examples/treelist/CMakeLists.txt	2009-11-24 12:30:24.349236401 +0100
++++ libwt-3.1.0/examples/treelist/CMakeLists.txt	2009-12-27 01:23:28.708718312 +0100
+@@ -1,5 +1,5 @@
+ ADD_EXECUTABLE(demotreelist.wt DemoTreeList.C IconPair.C TreeNode.C)
+-TARGET_LINK_LIBRARIES(demotreelist.wt ${EXAMPLES_CONNECTOR})
++TARGET_LINK_LIBRARIES(demotreelist.wt ${SSL_LIBRARIES} ${BOOST_WT_LIBRARIES} ${BOOST_WTHTTP_LIBRARIES} ${ZLIB_LIBRARIES} ${ASIO_LIBRARIES} ${EXAMPLES_CONNECTOR})
+ 
+ INCLUDE_DIRECTORIES(
+   ${WT_SOURCE_DIR}/src
+diff -rupd libwt-3.1.0.orig/examples/treeview/CMakeLists.txt libwt-3.1.0/examples/treeview/CMakeLists.txt
+--- libwt-3.1.0.orig/examples/treeview/CMakeLists.txt	2009-11-24 12:30:24.245177669 +0100
++++ libwt-3.1.0/examples/treeview/CMakeLists.txt	2009-12-27 01:23:50.844742848 +0100
+@@ -2,7 +2,7 @@ ADD_EXECUTABLE(treeviewexample.wt
+   TreeViewExample.C
+   TreeViewApplication.C
+ )
+-TARGET_LINK_LIBRARIES(treeviewexample.wt ${EXAMPLES_CONNECTOR})
++TARGET_LINK_LIBRARIES(treeviewexample.wt ${SSL_LIBRARIES} ${BOOST_WT_LIBRARIES} ${BOOST_WTHTTP_LIBRARIES} ${ZLIB_LIBRARIES} ${ASIO_LIBRARIES} ${EXAMPLES_CONNECTOR})
+ 
+ INCLUDE_DIRECTORIES(
+   ${WT_SOURCE_DIR}/src
+diff -rupd libwt-3.1.0.orig/examples/treeview-dragdrop/CMakeLists.txt libwt-3.1.0/examples/treeview-dragdrop/CMakeLists.txt
+--- libwt-3.1.0.orig/examples/treeview-dragdrop/CMakeLists.txt	2009-11-24 12:30:26.689519819 +0100
++++ libwt-3.1.0/examples/treeview-dragdrop/CMakeLists.txt	2009-12-27 01:24:18.636740661 +0100
+@@ -3,7 +3,7 @@ ADD_EXECUTABLE(treeviewdragdrop.wt
+   FolderView.C
+   TreeViewDragDrop.C
+ )
+-TARGET_LINK_LIBRARIES(treeviewdragdrop.wt ${EXAMPLES_CONNECTOR})
++TARGET_LINK_LIBRARIES(treeviewdragdrop.wt ${SSL_LIBRARIES} ${BOOST_WT_LIBRARIES} ${BOOST_WTHTTP_LIBRARIES} ${ZLIB_LIBRARIES} ${ASIO_LIBRARIES} ${EXAMPLES_CONNECTOR})
+ 
+ INCLUDE_DIRECTORIES(
+   ${WT_SOURCE_DIR}/src
+diff -rupd libwt-3.1.0.orig/examples/widgetgallery/CMakeLists.txt libwt-3.1.0/examples/widgetgallery/CMakeLists.txt
+--- libwt-3.1.0.orig/examples/widgetgallery/CMakeLists.txt	2009-11-24 12:30:26.349087722 +0100
++++ libwt-3.1.0/examples/widgetgallery/CMakeLists.txt	2009-12-27 01:27:14.416737890 +0100
+@@ -26,7 +26,7 @@ ADD_EXECUTABLE(widgetgallery.wt
+   ../painting/ShapesWidget.C
+   ../treeview/TreeViewExample.C
+ )
+-TARGET_LINK_LIBRARIES(widgetgallery.wt wtext ${EXAMPLES_CONNECTOR})
++TARGET_LINK_LIBRARIES(widgetgallery.wt wtext ${SSL_LIBRARIES} ${BOOST_WT_LIBRARIES} ${BOOST_WTHTTP_LIBRARIES} ${ZLIB_LIBRARIES} ${ASIO_LIBRARIES} ${EXAMPLES_CONNECTOR})
+ 
+ #
+ # If you have Wt installed somehwere, you should use the
+diff -rupd libwt-3.1.0.orig/examples/wt-homepage/CMakeLists.txt libwt-3.1.0/examples/wt-homepage/CMakeLists.txt
+--- libwt-3.1.0.orig/examples/wt-homepage/CMakeLists.txt	2009-12-17 09:34:41.702976122 +0100
++++ libwt-3.1.0/examples/wt-homepage/CMakeLists.txt	2009-12-27 01:25:39.313809806 +0100
+@@ -20,7 +20,7 @@ ADD_EXECUTABLE(Home.wt
+ 	../blog/asciidoc/asciidoc.C
+ )
+ 
+-TARGET_LINK_LIBRARIES(Home.wt ${EXAMPLES_CONNECTOR} wtdbo wtdbosqlite3 ${BOOST_FS_LIB_MT})
++TARGET_LINK_LIBRARIES(Home.wt ${SSL_LIBRARIES} ${BOOST_WT_LIBRARIES} ${BOOST_WTHTTP_LIBRARIES} ${ZLIB_LIBRARIES} ${ASIO_LIBRARIES} ${EXAMPLES_CONNECTOR} wtdbo wtdbosqlite3 ${BOOST_FS_LIB_MT})
+ 
+ CHECK_FUNCTION_EXISTS(crypt CRYPT_EXISTS)
+ IF(NOT CRYPT_EXISTS)
+diff -rupd libwt-3.1.0.orig/examples/wtwithqt/CMakeLists.txt libwt-3.1.0/examples/wtwithqt/CMakeLists.txt
+--- libwt-3.1.0.orig/examples/wtwithqt/CMakeLists.txt	2009-11-24 12:30:24.121153808 +0100
++++ libwt-3.1.0/examples/wtwithqt/CMakeLists.txt	2009-12-27 01:26:55.260719679 +0100
+@@ -24,6 +28,7 @@ ELSE (NOT BUILD_WTWITHQT)
+   )
+ 
+   TARGET_LINK_LIBRARIES(helloqt.wt
++    ${SSL_LIBRARIES} ${BOOST_WT_LIBRARIES} ${BOOST_WTHTTP_LIBRARIES} ${ZLIB_LIBRARIES} ${ASIO_LIBRARIES} ${QT_QTCORE_LIBRARIES}
+     ${EXAMPLES_CONNECTOR}
+     wtwithqt
+     ${QT_LIBRARIES}
--- witty-3.1.2.orig/debian/patches/07_tests_cmake_check_dependencies.dpatch
+++ witty-3.1.2/debian/patches/07_tests_cmake_check_dependencies.dpatch
@@ -0,0 +1,68 @@
+#! /bin/sh /usr/share/dpatch/dpatch-run
+## 07_tests_cmake_check_dependencies.dpatch by  <pgquiles@mcpau>
+##
+## All lines beginning with `## DP:' are a description of the patch.
+## DP: Fix CMake checks for tests
+
+@DPATCH@
+
+--- libwt-3.1.0.orig/test/CMakeLists.txt	2009-12-17 09:34:41.774975402 +0100
++++ libwt-3.1.0/test/CMakeLists.txt	2009-12-28 01:18:21.651465391 +0100
+@@ -1,3 +1,57 @@
++cmake_minimum_required(VERSION 2.4)
++
++IF(NOT MULTI_THREADED)
++  OPTION(MULTI_THREADED "Build multi-threaded httpd deamon (if possible)"
++ON)
++ENDIF(NOT MULTI_THREADED)
++
++INCLUDE( ${WT_SOURCE_DIR}/cmake/WtFindBoost.txt )
++INCLUDE(FindThreads)
++
++#IF(NOT BOOST_WT_FOUND)
++#  MESSAGE("** Error finding Wt required library: ")
++#  MESSAGE("** Could not find a boost installation in " ${BOOST_DIR} ".")
++#  MESSAGE("** It may be necessary to set appropriate values for the")
++#  MESSAGE("   variables BOOST_DIR, BOOST_COMPILER, and BOOST_VERSION")
++#  MESSAGE(FATAL_ERROR "** Wt requires the following C++ boost libraries:
++#  boost_date_time, boost_regex, and boost_program_options, boost_signals,
++#  and optionally boost_thread")
++#ENDIF(NOT BOOST_WT_FOUND)
++
++IF(BOOST_WT_MT_FOUND)
++  IF(MULTI_THREADED)
++    ADD_DEFINITIONS(-DTHREADED -D_REENTRANT -DBOOST_SPIRIT_THREADSAFE)
++    MESSAGE("** Enabling multi threading.")
++  ELSE(MULTI_THREADED)
++    MESSAGE("** Disabling multi threading.")
++    ADD_DEFINITIONS(-DBOOST_DISABLE_THREADS)
++  ENDIF(MULTI_THREADED)
++ELSE(BOOST_WT_MT_FOUND)
++  MESSAGE("** Disabling multi threading.")
++  ADD_DEFINITIONS(-DBOOST_DISABLE_THREADS)
++ENDIF(BOOST_WT_MT_FOUND)
++
++# Boost is used nearly everywhere, so we can put these here
++INCLUDE_DIRECTORIES(${BOOST_INCLUDE_DIRS})
++LINK_DIRECTORIES(${BOOST_LIB_DIRS})
++IF(WIN32)
++  IF(BOOST_DYNAMIC)
++    ADD_DEFINITIONS(-DBOOST_ALL_DYN_LINK)
++  ENDIF(BOOST_DYNAMIC)
++ENDIF(WIN32)
++
++IF(BOOST_WT_MT_FOUND)
++  IF(MULTI_THREADED)
++    ADD_DEFINITIONS(-DWT_THREADED -D_REENTRANT -DBOOST_SPIRIT_THREADSAFE)
++  ELSE(MULTI_THREADED)
++    ADD_DEFINITIONS(-DBOOST_DISABLE_THREADS)
++  ENDIF(MULTI_THREADED)
++ELSE(BOOST_WT_MT_FOUND)
++  ADD_DEFINITIONS(-DBOOST_DISABLE_THREADS)
++ENDIF(BOOST_WT_MT_FOUND)
++
++ADD_DEFINITIONS(-DWT_DEPRECATED_3_0_0)
++
+ ADD_EXECUTABLE(test
+ 	test.C
+ 	chart/WChartTest.C
--- witty-3.1.2.orig/debian/patches/02_install_wtdbo_headers.dpatch
+++ witty-3.1.2/debian/patches/02_install_wtdbo_headers.dpatch
@@ -0,0 +1,28 @@
+#! /bin/sh /usr/share/dpatch/dpatch-run
+## 02_install_wtdbo_headers.dpatch by Mike Teehan <mike.teehan@gmail.com>
+##
+## All lines beginning with `## DP:' are a description of the patch.
+## DP: Install the Wt::Dbo headers
+
+@DPATCH@
+
+diff --git a/src/Wt/Dbo/backend/CMakeLists.txt b/src/Wt/Dbo/backend/CMakeLists.txt
+index bcddba5..7aeb363 100644
+--- a/src/Wt/Dbo/backend/CMakeLists.txt
++++ b/src/Wt/Dbo/backend/CMakeLists.txt
+@@ -33,6 +33,7 @@ PROPERTIES
+ )
+ 
+ INSTALL_FILES(/include/Wt/Dbo/backend "^Sqlite3$")
++INSTALL_FILES(/include/Wt/Dbo/backend ".*Sqlite3.*\.h")
+ 
+ IF(POSTGRES_FOUND)
+   MESSAGE("** Wt::Dbo: building Postgres backend.")
+@@ -57,6 +58,7 @@ IF(POSTGRES_FOUND)
+   )
+ 
+   INSTALL_FILES(/include/Wt/Dbo/backend "^Postgres$")
++  INSTALL_FILES(/include/Wt/Dbo/backend ".*Postgres.*\.h")
+ ELSE(POSTGRES_FOUND)
+   MESSAGE("** Wt::Dbo: could not find libpq development files, not building Postgres backend.")
+ ENDIF(POSTGRES_FOUND)
--- witty-3.1.2.orig/debian/dfsg-compliance/swfobject-2.2.js
+++ witty-3.1.2/debian/dfsg-compliance/swfobject-2.2.js
@@ -0,0 +1,4 @@
+/*	SWFObject v2.2 <http://code.google.com/p/swfobject/> 
+	is released under the MIT License <http://www.opensource.org/licenses/mit-license.php> 
+*/
+var swfobject=function(){var D="undefined",r="object",S="Shockwave Flash",W="ShockwaveFlash.ShockwaveFlash",q="application/x-shockwave-flash",R="SWFObjectExprInst",x="onreadystatechange",O=window,j=document,t=navigator,T=false,U=[h],o=[],N=[],I=[],l,Q,E,B,J=false,a=false,n,G,m=true,M=function(){var aa=typeof j.getElementById!=D&&typeof j.getElementsByTagName!=D&&typeof j.createElement!=D,ah=t.userAgent.toLowerCase(),Y=t.platform.toLowerCase(),ae=Y?/win/.test(Y):/win/.test(ah),ac=Y?/mac/.test(Y):/mac/.test(ah),af=/webkit/.test(ah)?parseFloat(ah.replace(/^.*webkit\/(\d+(\.\d+)?).*$/,"$1")):false,X=!+"\v1",ag=[0,0,0],ab=null;if(typeof t.plugins!=D&&typeof t.plugins[S]==r){ab=t.plugins[S].description;if(ab&&!(typeof t.mimeTypes!=D&&t.mimeTypes[q]&&!t.mimeTypes[q].enabledPlugin)){T=true;X=false;ab=ab.replace(/^.*\s+(\S+\s+\S+$)/,"$1");ag[0]=parseInt(ab.replace(/^(.*)\..*$/,"$1"),10);ag[1]=parseInt(ab.replace(/^.*\.(.*)\s.*$/,"$1"),10);ag[2]=/[a-zA-Z]/.test(ab)?parseInt(ab.replace(/^.*[a-zA-Z]+(.*)$/,"$1"),10):0}}else{if(typeof O.ActiveXObject!=D){try{var ad=new ActiveXObject(W);if(ad){ab=ad.GetVariable("$version");if(ab){X=true;ab=ab.split(" ")[1].split(",");ag=[parseInt(ab[0],10),parseInt(ab[1],10),parseInt(ab[2],10)]}}}catch(Z){}}}return{w3:aa,pv:ag,wk:af,ie:X,win:ae,mac:ac}}(),k=function(){if(!M.w3){return}if((typeof j.readyState!=D&&j.readyState=="complete")||(typeof j.readyState==D&&(j.getElementsByTagName("body")[0]||j.body))){f()}if(!J){if(typeof j.addEventListener!=D){j.addEventListener("DOMContentLoaded",f,false)}if(M.ie&&M.win){j.attachEvent(x,function(){if(j.readyState=="complete"){j.detachEvent(x,arguments.callee);f()}});if(O==top){(function(){if(J){return}try{j.documentElement.doScroll("left")}catch(X){setTimeout(arguments.callee,0);return}f()})()}}if(M.wk){(function(){if(J){return}if(!/loaded|complete/.test(j.readyState)){setTimeout(arguments.callee,0);return}f()})()}s(f)}}();function f(){if(J){return}try{var Z=j.getElementsByTagName("body")[0].appendChild(C("span"));Z.parentNode.removeChild(Z)}catch(aa){return}J=true;var X=U.length;for(var Y=0;Y<X;Y++){U[Y]()}}function K(X){if(J){X()}else{U[U.length]=X}}function s(Y){if(typeof O.addEventListener!=D){O.addEventListener("load",Y,false)}else{if(typeof j.addEventListener!=D){j.addEventListener("load",Y,false)}else{if(typeof O.attachEvent!=D){i(O,"onload",Y)}else{if(typeof O.onload=="function"){var X=O.onload;O.onload=function(){X();Y()}}else{O.onload=Y}}}}}function h(){if(T){V()}else{H()}}function V(){var X=j.getElementsByTagName("body")[0];var aa=C(r);aa.setAttribute("type",q);var Z=X.appendChild(aa);if(Z){var Y=0;(function(){if(typeof Z.GetVariable!=D){var ab=Z.GetVariable("$version");if(ab){ab=ab.split(" ")[1].split(",");M.pv=[parseInt(ab[0],10),parseInt(ab[1],10),parseInt(ab[2],10)]}}else{if(Y<10){Y++;setTimeout(arguments.callee,10);return}}X.removeChild(aa);Z=null;H()})()}else{H()}}function H(){var ag=o.length;if(ag>0){for(var af=0;af<ag;af++){var Y=o[af].id;var ab=o[af].callbackFn;var aa={success:false,id:Y};if(M.pv[0]>0){var ae=c(Y);if(ae){if(F(o[af].swfVersion)&&!(M.wk&&M.wk<312)){w(Y,true);if(ab){aa.success=true;aa.ref=z(Y);ab(aa)}}else{if(o[af].expressInstall&&A()){var ai={};ai.data=o[af].expressInstall;ai.width=ae.getAttribute("width")||"0";ai.height=ae.getAttribute("height")||"0";if(ae.getAttribute("class")){ai.styleclass=ae.getAttribute("class")}if(ae.getAttribute("align")){ai.align=ae.getAttribute("align")}var ah={};var X=ae.getElementsByTagName("param");var ac=X.length;for(var ad=0;ad<ac;ad++){if(X[ad].getAttribute("name").toLowerCase()!="movie"){ah[X[ad].getAttribute("name")]=X[ad].getAttribute("value")}}P(ai,ah,Y,ab)}else{p(ae);if(ab){ab(aa)}}}}}else{w(Y,true);if(ab){var Z=z(Y);if(Z&&typeof Z.SetVariable!=D){aa.success=true;aa.ref=Z}ab(aa)}}}}}function z(aa){var X=null;var Y=c(aa);if(Y&&Y.nodeName=="OBJECT"){if(typeof Y.SetVariable!=D){X=Y}else{var Z=Y.getElementsByTagName(r)[0];if(Z){X=Z}}}return X}function A(){return !a&&F("6.0.65")&&(M.win||M.mac)&&!(M.wk&&M.wk<312)}function P(aa,ab,X,Z){a=true;E=Z||null;B={success:false,id:X};var ae=c(X);if(ae){if(ae.nodeName=="OBJECT"){l=g(ae);Q=null}else{l=ae;Q=X}aa.id=R;if(typeof aa.width==D||(!/%$/.test(aa.width)&&parseInt(aa.width,10)<310)){aa.width="310"}if(typeof aa.height==D||(!/%$/.test(aa.height)&&parseInt(aa.height,10)<137)){aa.height="137"}j.title=j.title.slice(0,47)+" - Flash Player Installation";var ad=M.ie&&M.win?"ActiveX":"PlugIn",ac="MMredirectURL="+O.location.toString().replace(/&/g,"%26")+"&MMplayerType="+ad+"&MMdoctitle="+j.title;if(typeof ab.flashvars!=D){ab.flashvars+="&"+ac}else{ab.flashvars=ac}if(M.ie&&M.win&&ae.readyState!=4){var Y=C("div");X+="SWFObjectNew";Y.setAttribute("id",X);ae.parentNode.insertBefore(Y,ae);ae.style.display="none";(function(){if(ae.readyState==4){ae.parentNode.removeChild(ae)}else{setTimeout(arguments.callee,10)}})()}u(aa,ab,X)}}function p(Y){if(M.ie&&M.win&&Y.readyState!=4){var X=C("div");Y.parentNode.insertBefore(X,Y);X.parentNode.replaceChild(g(Y),X);Y.style.display="none";(function(){if(Y.readyState==4){Y.parentNode.removeChild(Y)}else{setTimeout(arguments.callee,10)}})()}else{Y.parentNode.replaceChild(g(Y),Y)}}function g(ab){var aa=C("div");if(M.win&&M.ie){aa.innerHTML=ab.innerHTML}else{var Y=ab.getElementsByTagName(r)[0];if(Y){var ad=Y.childNodes;if(ad){var X=ad.length;for(var Z=0;Z<X;Z++){if(!(ad[Z].nodeType==1&&ad[Z].nodeName=="PARAM")&&!(ad[Z].nodeType==8)){aa.appendChild(ad[Z].cloneNode(true))}}}}}return aa}function u(ai,ag,Y){var X,aa=c(Y);if(M.wk&&M.wk<312){return X}if(aa){if(typeof ai.id==D){ai.id=Y}if(M.ie&&M.win){var ah="";for(var ae in ai){if(ai[ae]!=Object.prototype[ae]){if(ae.toLowerCase()=="data"){ag.movie=ai[ae]}else{if(ae.toLowerCase()=="styleclass"){ah+=' class="'+ai[ae]+'"'}else{if(ae.toLowerCase()!="classid"){ah+=" "+ae+'="'+ai[ae]+'"'}}}}}var af="";for(var ad in ag){if(ag[ad]!=Object.prototype[ad]){af+='<param name="'+ad+'" value="'+ag[ad]+'" />'}}aa.outerHTML='<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000"'+ah+">"+af+"</object>";N[N.length]=ai.id;X=c(ai.id)}else{var Z=C(r);Z.setAttribute("type",q);for(var ac in ai){if(ai[ac]!=Object.prototype[ac]){if(ac.toLowerCase()=="styleclass"){Z.setAttribute("class",ai[ac])}else{if(ac.toLowerCase()!="classid"){Z.setAttribute(ac,ai[ac])}}}}for(var ab in ag){if(ag[ab]!=Object.prototype[ab]&&ab.toLowerCase()!="movie"){e(Z,ab,ag[ab])}}aa.parentNode.replaceChild(Z,aa);X=Z}}return X}function e(Z,X,Y){var aa=C("param");aa.setAttribute("name",X);aa.setAttribute("value",Y);Z.appendChild(aa)}function y(Y){var X=c(Y);if(X&&X.nodeName=="OBJECT"){if(M.ie&&M.win){X.style.display="none";(function(){if(X.readyState==4){b(Y)}else{setTimeout(arguments.callee,10)}})()}else{X.parentNode.removeChild(X)}}}function b(Z){var Y=c(Z);if(Y){for(var X in Y){if(typeof Y[X]=="function"){Y[X]=null}}Y.parentNode.removeChild(Y)}}function c(Z){var X=null;try{X=j.getElementById(Z)}catch(Y){}return X}function C(X){return j.createElement(X)}function i(Z,X,Y){Z.attachEvent(X,Y);I[I.length]=[Z,X,Y]}function F(Z){var Y=M.pv,X=Z.split(".");X[0]=parseInt(X[0],10);X[1]=parseInt(X[1],10)||0;X[2]=parseInt(X[2],10)||0;return(Y[0]>X[0]||(Y[0]==X[0]&&Y[1]>X[1])||(Y[0]==X[0]&&Y[1]==X[1]&&Y[2]>=X[2]))?true:false}function v(ac,Y,ad,ab){if(M.ie&&M.mac){return}var aa=j.getElementsByTagName("head")[0];if(!aa){return}var X=(ad&&typeof ad=="string")?ad:"screen";if(ab){n=null;G=null}if(!n||G!=X){var Z=C("style");Z.setAttribute("type","text/css");Z.setAttribute("media",X);n=aa.appendChild(Z);if(M.ie&&M.win&&typeof j.styleSheets!=D&&j.styleSheets.length>0){n=j.styleSheets[j.styleSheets.length-1]}G=X}if(M.ie&&M.win){if(n&&typeof n.addRule==r){n.addRule(ac,Y)}}else{if(n&&typeof j.createTextNode!=D){n.appendChild(j.createTextNode(ac+" {"+Y+"}"))}}}function w(Z,X){if(!m){return}var Y=X?"visible":"hidden";if(J&&c(Z)){c(Z).style.visibility=Y}else{v("#"+Z,"visibility:"+Y)}}function L(Y){var Z=/[\\\"<>\.;]/;var X=Z.exec(Y)!=null;return X&&typeof encodeURIComponent!=D?encodeURIComponent(Y):Y}var d=function(){if(M.ie&&M.win){window.attachEvent("onunload",function(){var ac=I.length;for(var ab=0;ab<ac;ab++){I[ab][0].detachEvent(I[ab][1],I[ab][2])}var Z=N.length;for(var aa=0;aa<Z;aa++){y(N[aa])}for(var Y in M){M[Y]=null}M=null;for(var X in swfobject){swfobject[X]=null}swfobject=null})}}();return{registerObject:function(ab,X,aa,Z){if(M.w3&&ab&&X){var Y={};Y.id=ab;Y.swfVersion=X;Y.expressInstall=aa;Y.callbackFn=Z;o[o.length]=Y;w(ab,false)}else{if(Z){Z({success:false,id:ab})}}},getObjectById:function(X){if(M.w3){return z(X)}},embedSWF:function(ab,ah,ae,ag,Y,aa,Z,ad,af,ac){var X={success:false,id:ah};if(M.w3&&!(M.wk&&M.wk<312)&&ab&&ah&&ae&&ag&&Y){w(ah,false);K(function(){ae+="";ag+="";var aj={};if(af&&typeof af===r){for(var al in af){aj[al]=af[al]}}aj.data=ab;aj.width=ae;aj.height=ag;var am={};if(ad&&typeof ad===r){for(var ak in ad){am[ak]=ad[ak]}}if(Z&&typeof Z===r){for(var ai in Z){if(typeof am.flashvars!=D){am.flashvars+="&"+ai+"="+Z[ai]}else{am.flashvars=ai+"="+Z[ai]}}}if(F(Y)){var an=u(aj,am,ah);if(aj.id==ah){w(ah,true)}X.success=true;X.ref=an}else{if(aa&&A()){aj.data=aa;P(aj,am,ah,ac);return}else{w(ah,true)}}if(ac){ac(X)}})}else{if(ac){ac(X)}}},switchOffAutoHideShow:function(){m=false},ua:M,getFlashPlayerVersion:function(){return{major:M.pv[0],minor:M.pv[1],release:M.pv[2]}},hasFlashPlayerVersion:F,createSWF:function(Z,Y,X){if(M.w3){return u(Z,Y,X)}else{return undefined}},showExpressInstall:function(Z,aa,X,Y){if(M.w3&&A()){P(Z,aa,X,Y)}},removeSWF:function(X){if(M.w3){y(X)}},createCSS:function(aa,Z,Y,X){if(M.w3){v(aa,Z,Y,X)}},addDomLoadEvent:K,addLoadEvent:s,getQueryParamValue:function(aa){var Z=j.location.search||j.location.hash;if(Z){if(/\?/.test(Z)){Z=Z.split("?")[1]}if(aa==null){return L(Z)}var Y=Z.split("&");for(var X=0;X<Y.length;X++){if(Y[X].substring(0,Y[X].indexOf("="))==aa){return L(Y[X].substring((Y[X].indexOf("=")+1)))}}}return""},expressInstallCallback:function(){if(a){var X=c(R);if(X&&l){X.parentNode.replaceChild(l,X);if(Q){w(Q,true);if(M.ie&&M.win){l.style.display="block"}}if(E){E(B)}}a=false}}}}();
\ No newline at end of file
