--- /dev/null
+This package uses quilt to manage the patches in debian/patches.
+For further information please install the quilt package and read
+/usr/share/doc/quilt/README.source.
--- /dev/null
+tclcurl (7.19.6-2) UNRELEASED; urgency=low
+
+ * Bumb Standards-Version to 3.8.4 - no changes.
+ * Add ${misc:Depends} to the binary package.
+ * Update homepage url.
+
+ -- Sven Hoexter <hoexter@debian.org> Wed, 16 Jun 2010 22:31:49 +0200
+
+tclcurl (7.19.6-1) unstable; urgency=low
+
+ * New upstream release.
+ + Build-Depend at least on libcurl4 (>= 7.19.6).
+ + Refresh patches/correct-linking.
+ * Bumb Standards-Version to 3.8.3 - no changes.
+ * Change maintainer e-mail to my @d.o address.
+
+ -- Sven Hoexter <hoexter@debian.org> Wed, 11 Nov 2009 23:26:11 +0100
+
+tclcurl (7.19.0-1) unstable; urgency=low
+
+ * New upstream release.
+ + Refresh all patches.
+ + Build-Depend at least on libcurl4 (>= 7.19.0).
+ * Update mail address of the upstream maintainer in debian/copyright.
+ * Bump Standards-Version to 3.8.2.
+ + Add a debian/README.source file.
+ * Update debian/copyright with copyright information for Makefile.in
+ and tclconfig/tcl.m4. Thanks to Ondrej Certik for the pointer in
+ mysqltcl which has to applied here aswell.
+ * Add description header to all patches.
+ * Add patches/example-shebang. This patch adds a working shebang line
+ to those example files that carry one (Thanks to Sergei).
+ * Set the permissions for the example files to 644, except for those
+ with a working shebang line (Thanks to Sergei).
+
+ -- Sven Hoexter <sven@timegate.de> Wed, 05 Aug 2009 21:30:47 +0200
+
+tclcurl (7.17.1-1) unstable; urgency=low
+
+ * New upstream release to support curl 7.17.1 features.
+ * Following lintian advice for debian-rules-ignores-make-clean-error.
+ * Moved the Homepage from the Description into the new Homepage field.
+ * Removed man-quoting patch; got applied upstream.
+ * Standards-Version: 3.7.3 - no changes required.
+ * Build depend on tcl-dev instead of tcl8.4-dev.
+ * Refreshed man-section and correct-linking patch.
+ * Added LDFLAGS += -Wl,-z,defs -Wl,--as-needed so that I can shorten
+ the correct-linking patch to kerberos related libs.
+ * Switched to use tcltk-depends to depend on the right Tcl version.
+ * Added Vcs-Svn field to debian/control.
+ * Reworked debian/rules to make it a bit clearer what happens.
+ * Adopt the new Tcl/Tk policy and move the lib into /usr/lib/tcltk.
+ * Added patch reformat-tclcurl3 to prevent confusion of man.
+ * Updated the copyright file and formated it to make lintian happy.
+
+ -- Sven Hoexter <sven@timegate.de> Wed, 13 Feb 2008 21:21:39 +0100
+
+tclcurl (7.16.2-1) unstable; urgency=low
+
+ * New upstream release
+ * Changed version to the one used upstream to follow libcurl version
+ * Updated libcurl build-dep to the new libcurl version (closes: #423448)
+ * Added bc to build-dep
+ * Reorganisation of packaging; I'm now using quilt which should ease the
+ patch management a lot. I've only adopted those patches I really know
+ about why they're needed so it's completly possible that I've lost
+ something.
+
+ -- Sven Hoexter <sven@timegate.de> Tue, 22 May 2007 17:39:30 +0200
+
+tclcurl (0.15.3-3) unstable; urgency=low
+
+ * Applied a patch to generic/tclcurl.c (provided by Andres Garcia)
+ to solve some pointer warnings from gcc 4.1 which may lead to
+ wrong code.
+ See also: http://people.debian.org/~tbm/logs/pointer/
+
+ -- Sven Hoexter <sven@timegate.de> Sat, 21 Oct 2006 12:06:30 +0200
+
+tclcurl (0.15.3-2) unstable; urgency=low
+
+ * Change to compat level 5
+ * Change to Standards-Version 3.7.2 - nothing todo
+ * Corrected some quoting in tclcurl.n
+ * Added a crude hack to configure.in to strip some libs from the
+ linking process to lower the auto generated depends for this package
+
+ -- Sven Hoexter <sven@timegate.de> Tue, 26 Sep 2006 11:33:44 +0200
+
+tclcurl (0.15.3-1) unstable; urgency=low
+
+ * New upstream release
+ * Upstream added .txt to the Changes and Changelog file
+ * TclCurl no longer supports Gopher
+
+ -- Sven Hoexter <sven@timegate.de> Tue, 18 Apr 2006 08:55:57 +0200
+
+tclcurl (0.15.1-1) unstable; urgency=low
+
+ * New upstream release
+ * Change from DH_COMPAT 3 to DH_COMPAT 4 and moved it from rules
+ into the compat file.
+ * Incorporating Luk Claes NMU
+ * remerged the modifications to configure and Makefile.in partly by hand
+ * I'm going to adopt this package (closes: #228231)
+
+
+ -- Sven Hoexter <sven@timegate.de> Wed, 29 Mar 2006 15:34:56 +0200
+
+tclcurl (0.14.1-1.1) unstable; urgency=high
+
+ * Non-maintainer upload.
+ * Fix syntax error in tcl.m4 (Closes: #356871).
+
+ -- Luk Claes <luk@debian.org> Mon, 27 Mar 2006 19:28:19 +0200
+
+tclcurl (0.14.1-1) unstable; urgency=low
+
+ * New upstream release.
+ * Switched to libcurl3-gnutls-dev build dependency.
+
+ -- Domenico Andreoli <cavok@debian.org> Tue, 18 Oct 2005 14:35:11 +0200
+
+tclcurl (0.14.0-1) unstable; urgency=low
+
+ * New upstream release.
+
+ -- Domenico Andreoli <cavok@debian.org> Mon, 20 Jun 2005 12:42:47 +0200
+
+tclcurl (0.13.2-1) unstable; urgency=low
+
+ * New upstream release.
+ * Updated build dependency on libcurl3-dev >= 7.13.2.
+
+ -- Domenico Andreoli <cavok@debian.org> Fri, 22 Apr 2005 11:57:50 +0200
+
+tclcurl (0.12.2-3) unstable; urgency=low
+
+ * tclcurl package now suggests libcurl3-dev instead of libcurl2-dev.
+
+ -- Domenico Andreoli <cavok@debian.org> Sat, 11 Dec 2004 22:18:26 +0100
+
+tclcurl (0.12.2-2) unstable; urgency=low
+
+ * Updated build dependency on libcurl3-dev >= 7.12.2.
+
+ -- Domenico Andreoli <cavok@debian.org> Wed, 10 Nov 2004 00:34:22 +0100
+
+tclcurl (0.12.2-1) unstable; urgency=low
+
+ * New upstream release.
+
+ -- Domenico Andreoli <cavok@debian.org> Sat, 6 Nov 2004 13:07:36 +0100
+
+tclcurl (0.12.0-1) unstable; urgency=low
+
+ * New upstream release.
+
+ -- Domenico Andreoli <cavok@debian.org> Sun, 18 Jul 2004 23:50:54 +0200
+
+tclcurl (0.11.0-1) unstable; urgency=low
+
+ * New upstream release (closes: #227799).
+ * I am again the maintainer but only until somebody adopts it.
+ * Updated build depends on newer versions of curl and Tcl 8.4.
+ * Updated standards version to 3.6.1.
+ * Enabled multi-threads support.
+
+ -- Domenico Andreoli <cavok@debian.org> Sun, 15 Feb 2004 16:37:31 +0100
+
+tclcurl (0.10.5-2) unstable; urgency=low
+
+ * Updated standards version to new debian-policy version.
+ * Updated build depends to new debhelper version, and new libcurl2-dev
+ version.
+
+ -- Deedra Waters <dmwaters@linuxpowered.com> Sun, 10 Aug 2003 15:27:36 -0400
+
+tclcurl (0.10.5-1) unstable; urgency=low
+
+ * New upstream release.
+ * Fixed a typo in the long description.
+
+ -- Deedra Waters <dmwaters@linuxpowered.com> Tue, 10 Jun 2003 10:26:22 -0400
+
+tclcurl (0.10.4-2) unstable; urgency=low
+
+ * Adopted this package from it's maintainer (closes: #188361).
+ * Fixed some things in the rules file to make it clean up nicer.
+ * Updated the standards to the current version.
+
+ -- Deedra Waters <dmwaters@linuxpowered.com> Sun, 4 May 2003 17:02:36 -0400
+
+tclcurl (0.10.4-1) unstable; urgency=low
+
+ * New upstream release.
+
+ -- Domenico Andreoli <cavok@debian.org> Sat, 5 Apr 2003 00:53:30 +0200
+
+tclcurl (0.10.3-1) unstable; urgency=low
+
+ * New upstream release.
+ * Updated build dependencies in order to use new libcurl2-dev package.
+ * It now suggests libcurl2-dev for documentation.
+ * Improved long description.
+
+ -- Domenico Andreoli <cavok@debian.org> Thu, 6 Feb 2003 02:51:01 +0100
+
+tclcurl (0.10.1-1) unstable; urgency=low
+
+ * New upstream release.
+
+ -- Domenico Andreoli <cavok@debian.org> Tue, 15 Oct 2002 23:57:54 +0200
+
+tclcurl (0.9.8-1) unstable; urgency=low
+
+ * New upstream release.
+
+ -- Domenico Andreoli <cavok@debian.org> Fri, 28 Jun 2002 01:06:46 +0200
+
+tclcurl (0.9.6-1) unstable; urgency=low
+
+ * New upstream release.
+
+ -- Domenico Andreoli <cavok@debian.org> Mon, 6 May 2002 14:42:22 +0200
+
+tclcurl (0.9.5-1) unstable; urgency=low
+
+ * New upstream release.
+
+ -- Domenico Andreoli <cavok@debian.org> Wed, 3 Apr 2002 13:16:13 +0200
+
+tclcurl (0.9.3-2) unstable; urgency=low
+
+ * Removed a useless (for Debian systems) check in Makefile.in. BTW
+ this bypasses a segmentation fault during the build process on arm.
+
+ -- Domenico Andreoli <cavok@debian.org> Mon, 18 Feb 2002 16:10:40 +0100
+
+tclcurl (0.9.3-1) unstable; urgency=low
+
+ * New upstream release.
+
+ -- Domenico Andreoli <cavok@debian.org> Tue, 29 Jan 2002 18:08:06 +0100
+
+tclcurl (0.9.2-1) unstable; urgency=low
+
+ * New upstream release.
+
+ -- Domenico Andreoli <cavok@debian.org> Tue, 11 Dec 2001 19:22:21 +0100
+
+tclcurl (0.9-2) unstable; urgency=low
+
+ * Build-Depends now contains "libcurl-dev (>= 7.9.1-3) | libcurl-ssl-dev
+ (>= 7.9.1-3)" instead of only "libcurl-dev (>= 7.9-1) | libcurl-ssl-dev
+ (>= 7.9-1)" (closes: #120293).
+
+ -- Domenico Andreoli <cavok@debian.org> Thu, 22 Nov 2001 15:47:03 +0100
+
+tclcurl (0.9-1) unstable; urgency=low
+
+ * New upstream release.
+
+ -- Domenico Andreoli <cavok@debian.org> Fri, 9 Nov 2001 16:27:42 +0100
+
+tclcurl (0.8-1) unstable; urgency=low
+
+ * Initial release (closes: #113467).
+
+ -- Domenico Andreoli <cavok@debian.org> Wed, 26 Sep 2001 00:51:25 +0200
--- /dev/null
+Source: tclcurl
+Section: interpreters
+Priority: extra
+Maintainer: Sven Hoexter <hoexter@debian.org>
+Build-Depends: debhelper (>> 5), tcl-dev, libcurl4-gnutls-dev (>= 7.19.6), quilt, bc
+Homepage: http://personal5.iddeo.es/andresgarci/tclcurl/english/index.html
+Standards-Version: 3.8.4
+Vcs-Svn: svn://www.stormbind.net/debian-pkgs-sven/tclcurl/trunk
+
+Package: tclcurl
+Architecture: any
+Suggests: libcurl4-gnutls-dev
+Depends: ${misc:Depends}, ${shlibs:Depends}, ${tclsh:Depends}
+Description: Tcl bindings to libcurl
+ This module enables the use of libcurl in Tcl scripts. Please refer to
+ the libcurl documentation available in the libcurl4-gnutls-dev package.
+ .
+ NOTE: the SSL support is provided by GnuTLS.
--- /dev/null
+This package was debianized by Domenico Andreoli <cavok@debian.org> on
+Wed, 26 Sep 2001 00:51:25 +0200.
+
+It is currently maintained by Sven Hoexter <sven@timegate.de>.
+
+It was downloaded from
+ http://personal5.iddeo.es/andresgarci/tclcurl/english/index.html
+
+Upstream Author: Andres Garcia <fandom@telefonica.net>
+
+Copyright:
+
+Most files are under following copyright:
+ Copyright (c) 2001-2008 Andres Garcia
+
+
+The following files have a different copyright holder under the same license
+as the rest:
+
+Makefile.in
+tclconfig/tcl.m4
+ Copyright (c) 1999-2000 Scriptics Corporation.
+ Copyright (c) 2002-2005 ActiveState Corporation.
+
+
+ This software is copyrighted by Andres Garcia Garcia and other parties
+ parties. The following terms apply to all files associated with the
+ software unless explicitly disclaimed in individual files.
+
+ The authors hereby grant permission to use, copy, modify, distribute,
+ and license this software and its documentation for any purpose, provided
+ that existing copyright notices are retained in all copies and that this
+ notice is included verbatim in any distributions. No written agreement,
+ license, or royalty fee is required for any of the authorized uses.
+ Modifications to this software may be copyrighted by their authors
+ and need not follow the licensing terms described here, provided that
+ the new terms are clearly indicated on the first page of each file where
+ they apply.
+
+ IN NO EVENT SHALL THE AUTHORS OR DISTRIBUTORS BE LIABLE TO ANY PARTY
+ FOR DIRECT, INDIRECT, SPECIAL, INCIDENTAL, OR CONSEQUENTIAL DAMAGES
+ ARISING OUT OF THE USE OF THIS SOFTWARE, ITS DOCUMENTATION, OR ANY
+ DERIVATIVES THEREOF, EVEN IF THE AUTHORS HAVE BEEN ADVISED OF THE
+ POSSIBILITY OF SUCH DAMAGE.
+
+ THE AUTHORS AND DISTRIBUTORS SPECIFICALLY DISCLAIM ANY WARRANTIES,
+ INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY,
+ FITNESS FOR A PARTICULAR PURPOSE, AND NON-INFRINGEMENT. THIS SOFTWARE
+ IS PROVIDED ON AN "AS IS" BASIS, AND THE AUTHORS AND DISTRIBUTORS HAVE
+ NO OBLIGATION TO PROVIDE MAINTENANCE, SUPPORT, UPDATES, ENHANCEMENTS, OR
+ MODIFICATIONS.
+
+ GOVERNMENT USE: If you are acquiring this software on behalf of the
+ U.S. government, the Government shall have only "Restricted Rights"
+ in the software and related documentation as defined in the Federal
+ Acquisition Regulations (FARs) in Clause 52.227.19 (c) (2). If you
+ are acquiring the software on behalf of the Department of Defense, the
+ software shall be classified as "Commercial Computer Software" and the
+ Government shall have only "Restricted Rights" as defined in Clause
+ 252.227-7013 (c) (1) of DFARs. Notwithstanding the foregoing, the
+ authors grant the U.S. Government and others acting in its behalf
+ permission to use and distribute the software in accordance with the
+ terms specified in this license.
--- /dev/null
+Strip out a few libs from the linker to lower the amount of direct depedencies
+for this package.
+See: http://lists.debian.org/debian-devel-announce/2006/09/msg00018.html
+--- a/configure
++++ b/configure
+@@ -7290,7 +7290,16 @@ fi
+ $as_echo "yes" >&6; }
+
+
+- vars="`$curlpath/curl-config --libs`"
++# We need to modify this original line to strip a few things
++# See: http://lists.debian.org/debian-devel-announce/2006/09/msg00018.html
++
++ vars="`$curlpath/curl-config --libs|sed \
++ -e 's/\-lkrb5\>//g' \
++ -e 's/\-lgssapi_krb5//g' \
++ -e 's/\-lk5crypto//g' \
++ -e 's/\-lkrb5support//g' \
++ `"
++
+ for i in $vars; do
+ if test "${TEA_PLATFORM}" = "windows" -a "$GCC" = "yes" ; then
+ # Convert foo.lib to -lfoo for GCC. No-op if not *.lib
+--- a/configure.in
++++ b/configure.in
+@@ -134,7 +134,16 @@ if test "${CURL_VERSION}" != "" ; then
+ fi
+ AC_MSG_RESULT(yes)
+
+-TEA_ADD_LIBS([`$curlpath/curl-config --libs`])
++# We need to modify this original line to strip a few things
++# See: http://lists.debian.org/debian-devel-announce/2006/09/msg00018.html
++
++TEA_ADD_LIBS([`$curlpath/curl-config --libs|sed \
++ -e 's/\-lkrb5\>//g' \
++ -e 's/\-lgssapi_krb5//g' \
++ -e 's/\-lk5crypto//g' \
++ -e 's/\-lkrb5support//g' \
++ `])
++
+
+ #--------------------------------------------------------------------
+ # __CHANGE__
--- /dev/null
+Set the shebang to '/usr/bin/wish' for those example files
+that carry a shebang line.
+--- a/tests/multi/auto.tcl
++++ b/tests/multi/auto.tcl
+@@ -1,4 +1,4 @@
+-#!/usr/local/bin/wish8.4
++#!/usr/bin/wish
+
+ package require TclCurl
+
+--- a/tests/multi/autoGUI.tcl
++++ b/tests/multi/autoGUI.tcl
+@@ -1,4 +1,4 @@
+-#!/usr/local/bin/wish8.4
++#!/usr/bin/wish
+
+ package require TclCurl
+
+--- a/tests/multi/cancelTrans.tcl
++++ b/tests/multi/cancelTrans.tcl
+@@ -1,4 +1,4 @@
+-#!/usr/local/bin/wish8.4
++#!/usr/bin/wish
+
+ package require TclCurl
+
--- /dev/null
+Add a section number to the manpages.
+--- a/doc/tclcurl.html
++++ b/doc/tclcurl.html
+@@ -1,7 +1,7 @@
+ <HTML><HEAD><TITLE>Manpage of TclCurl</TITLE>
+ </HEAD><BODY>
+ <H1>TclCurl</H1>
+-Section: Easy inteface (n)<BR>Updated: 8 September 2008<BR>
++Section: Easy inteface (3)<BR>Updated: 8 September 2008<BR>
+ <A NAME="lbAB"> </A>
+ <hr>
+ <H2>NAME</H2>
+--- a/doc/tclcurl.n
++++ b/doc/tclcurl.n
+@@ -1,7 +1,7 @@
+ .\" You can view this file with:
+ .\" nroff -man [file]
+ .\" Adapted from libcurl docs by fandom@telefonica.net
+-.TH TclCurl n "8 September 2008" "TclCurl 7.19.0 "TclCurl Easy Interface"
++.TH TclCurl 3 "8 September 2008" "TclCurl 7.19.0 "TclCurl Easy Interface"
+ .SH NAME
+ TclCurl: - get a URL with FTP, FTPS, HTTP, HTTPS, SCP, SFTP, TFTP, TELNET, DICT, FILE or LDAP syntax.
+ .SH SYNOPSIS
+--- a/doc/tclcurl_multi.html
++++ b/doc/tclcurl_multi.html
+@@ -1,7 +1,7 @@
+ <HTML><HEAD><TITLE>Manpage of TclCurl</TITLE>
+ </HEAD><BODY>
+ <H1>TclCurl</H1>
+-Section: TclCurl Multi Interface (n)<BR>Updated: 8 September 2008<BR><HR>
++Section: TclCurl Multi Interface (3)<BR>Updated: 8 September 2008<BR><HR>
+
+ <A NAME="lbAB"> </A>
+ <H2>NAME</H2>
+--- a/doc/tclcurl_multi.n
++++ b/doc/tclcurl_multi.n
+@@ -1,7 +1,7 @@
+ .\" You can view this file with:
+ .\" nroff -man [file]
+ .\" Adapted from libcurl docs by fandom@telefonica.net
+-.TH TclCurl n "8 September 2008" "TclCurl 7.19.0" "TclCurl Multi Interface"
++.TH TclCurl 3 "8 September 2008" "TclCurl 7.19.0" "TclCurl Multi Interface"
+ .SH NAME
+ TclCurl: - get a URL with FTP, FTPS, HTTP, HTTPS, SCP, SFTP, TFTP, TELNET, DICT, FILE or LDAP syntax.
+ .SH SYNOPSIS
+--- a/doc/tclcurl_share.html
++++ b/doc/tclcurl_share.html
+@@ -1,7 +1,7 @@
+ <HTML><HEAD><TITLE>Manpage of TclCurl</TITLE>
+ </HEAD><BODY>
+ <H1>TclCurl</H1>
+-Section: TclCurl share data api (n)<BR>Updated: 8 September 2008<BR><HR>
++Section: TclCurl share data api (3)<BR>Updated: 8 September 2008<BR><HR>
+
+ <A NAME="lbAB"> </A>
+ <H2>NAME</H2>
+--- a/doc/tclcurl_share.n
++++ b/doc/tclcurl_share.n
+@@ -1,7 +1,7 @@
+ .\" You can view this file with:
+ .\" nroff -man [file]
+ .\" Adapted from libcurl docs by fandom@telefonica.net
+-.TH TclCurl n "8 September 2008" "TclCurl 7.19.0" "TclCurl share data api"
++.TH TclCurl 3 "8 September 2008" "TclCurl 7.19.0" "TclCurl share data api"
+ .SH NAME
+ TclCurl: - get a URL with FTP, FTPS, HTTP, HTTPS, SCP, SFTP, TFTP, TELNET, DICT, FILE or LDAP syntax.
+ .SH SYNOPSIS
--- /dev/null
+Fix some formating errors in the manpages.
+--- a/doc/tclcurl.n
++++ b/doc/tclcurl.n
+@@ -687,10 +687,10 @@ response will be treated as a valid HTTP
+
+ .TP
+ .B -cookie
+-Pass a string as parameter. It will be used to
+-set a cookie in the http request. The format of the string should be
+-'[NAME]=[CONTENTS];'. Where NAME is the cookie name and CONTENTS is
+-what the cookie should contain.
++Pass a string as parameter.
++It will be used to set a cookie in the http request. The format of
++the string should be '[NAME]=[CONTENTS];'. Where NAME is the cookie
++name and CONTENTS is what the cookie should contain.
+
+ If you need to set mulitple cookies, you need to set them all using
+ a single option and thus you need to concatenate them all in one single string.
+@@ -1384,7 +1384,7 @@ are also acceptable separators but colon
+ used as operators.
+
+ For OpenSSL and GnuTLS valid examples of cipher lists include 'RC4-SHA', 'SHA1+DES',
+-'TLSv1' and 'DEFAULT'. The default list is normally set when you compile OpenSSL.
++\&'TLSv1' and 'DEFAULT'. The default list is normally set when you compile OpenSSL.
+
+ You will find more details about cipher lists on this URL:
+ http://www.openssl.org/docs/apps/ciphers.html
+@@ -1530,7 +1530,7 @@ same handle. Let it return first before
+ you want parallel transfers, you must use several curl handles.
+ .TP
+ .B RETURN VALUE
+-'0' if all went well, non-zero if it didn't. In case of error, if the
++\&'0' if all went well, non-zero if it didn't. In case of error, if the
+ .I errorbuffer
+ was set with
+ .I configure
--- /dev/null
+example-shebang
+man-section
+reformat-tclcurl3
+correct-linking
--- /dev/null
+#!/usr/bin/make -f
+
+# Uncomment this to turn on verbose mode.
+#export DH_VERBOSE=1
+
+include /usr/share/quilt/quilt.make
+
+
+ifeq ($(DEB_BUILD_GNU_TYPE), $(DEB_HOST_GNU_TYPE))
+ CONFIGURE_OPTIONS += --build $(DEB_HOST_GNU_TYPE)
+else
+ CONFIGURE_OPTIONS += --build $(DEB_BUILD_GNU_TYPE) \
+ --host $(DEB_HOST_GNU_TYPE)
+endif
+
+
+CONFIGURE_OPTIONS += \
+ --prefix=/usr \
+ --mandir=/usr/share/man \
+ --infodir=/usr/share/info \
+ --enable-threads \
+ --with-tcl=/usr/lib \
+ --with-tclinclude=/usr/include/tcl \
+
+
+LDFLAGS += -Wl,-z,defs -Wl,--as-needed
+
+CFLAGS = -Wall -g
+
+ifneq (,$(findstring noopt,$(DEB_BUILD_OPTIONS)))
+ CFLAGS += -O0
+else
+ CFLAGS += -O2
+endif
+
+
+configure: patch configure-stamp
+configure-stamp:
+ dh_testdir
+
+ CFLAGS="$(CFLAGS)" LDFLAGS="$(LDFLAGS)" \
+ ./configure $(CONFIGURE_OPTIONS)
+
+ touch configure-stamp
+
+build: configure build-stamp
+build-stamp: configure-stamp
+ dh_testdir
+ $(MAKE)
+ touch build-stamp
+
+clean: cleaner unpatch
+cleaner:
+ dh_testdir
+ dh_testroot
+ rm -f build-stamp configure-stamp
+ [ ! -f Makefile ] || $(MAKE) distclean
+ dh_clean
+
+install: build
+ dh_testdir
+ dh_testroot
+ dh_clean -k
+ dh_installdirs
+
+ $(MAKE) install DESTDIR=$(CURDIR)/debian/tclcurl
+ mkdir $(CURDIR)/debian/tclcurl/usr/lib/tcltk
+ mv $(CURDIR)/debian/tclcurl/usr/lib/TclCurl* \
+ $(CURDIR)/debian/tclcurl/usr/lib/tcltk
+ rm -rf \
+ $(CURDIR)/debian/tclcurl/usr/share/man/mann \
+ $(CURDIR)/debian/tclcurl/usr/bin \
+ $(CURDIR)/debian/tclcurl/usr/include
+
+ chmod 644 \
+ $(CURDIR)/tests/*.tcl \
+ $(CURDIR)/tests/multi/double.tcl \
+ $(CURDIR)/tests/multi/single.tcl
+
+
+# Build architecture-independent files here.
+binary-indep: build install
+# We have nothing to do by default.
+
+# Build architecture-dependent files here.
+binary-arch: build install
+ dh_testdir
+ dh_testroot
+ dh_installdocs Changes.txt
+ dh_installman
+ dh_installchangelogs ChangeLog.txt
+ dh_installexamples
+ dh_link
+ dh_strip
+ dh_compress
+ dh_fixperms
+ dh_installdeb
+ dh_shlibdeps
+ tcltk-depends
+ dh_gencontrol
+ dh_md5sums
+ dh_builddeb
+
+binary: binary-indep binary-arch
+.PHONY: build clean binary-indep binary-arch binary install configure