--- tkpng-0.9.orig/debian/compat +++ tkpng-0.9/debian/compat @@ -0,0 +1 @@ +7 --- tkpng-0.9.orig/debian/rules +++ tkpng-0.9/debian/rules @@ -0,0 +1,90 @@ +#!/usr/bin/make -f + +# Uncomment this to turn on verbose mode. +#export DH_VERBOSE=1 + +# These are used for cross-compiling and for saving the configure script +# from having to guess our platform (since we know it already) +DEB_HOST_GNU_TYPE ?= $(shell dpkg-architecture -qDEB_HOST_GNU_TYPE) +DEB_BUILD_GNU_TYPE ?= $(shell dpkg-architecture -qDEB_BUILD_GNU_TYPE) +ifneq ($(DEB_HOST_GNU_TYPE),$(DEB_BUILD_GNU_TYPE)) +CROSS= --build $(DEB_BUILD_GNU_TYPE) --host $(DEB_HOST_GNU_TYPE) +else +CROSS= --build $(DEB_BUILD_GNU_TYPE) +endif + +config: config-stamp +config-stamp: configure + dh_testdir + # Add here commands to configure the package. +ifneq "$(wildcard /usr/share/misc/config.sub)" "" + cp -f /usr/share/misc/config.sub config.sub +endif +ifneq "$(wildcard /usr/share/misc/config.guess)" "" + cp -f /usr/share/misc/config.guess config.guess +endif + ./configure $(CROSS) \ + --prefix=/usr \ + --mandir=\$${prefix}/share/man \ + --infodir=\$${prefix}/share/info \ + --with-tcl=/usr/lib/tcl8.5/ \ + --with-tk=/usr/lib/tk8.5/ \ + --with-tclinclude=/usr/include/tcl8.5/ \ + --with-tkinclude=/usr/include/tcl8.5/ \ + CFLAGS="$(CFLAGS)" \ + LDFLAGS="-Wl,-z,defs -Wl,--no-undefined -Wl,--as-needed" \ + LIBS="-lm" + touch $@ + +build: build-stamp +build-stamp: config + dh_testdir + $(MAKE) + #docbook-to-man debian/tkpng.sgml > tkpng.1 + touch $@ + +clean: + dh_testdir + dh_testroot + rm -f build-stamp config-stamp + [ ! -f Makefile ] || $(MAKE) distclean + rm -f config.sub config.guess config.cache config.log + dh_clean + +install: build + dh_testdir + dh_testroot + dh_clean -k + dh_installdirs + $(MAKE) install \ + prefix=$(CURDIR)/debian/tkpng/usr \ + DESTDIR=$(CURDIR)/debian/tkpng \ + DIST_DIR=$(CURDIR)/debian/tkpng + find $(CURDIR)/debian/tkpng -empty -type d -delete + +# 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 +# dh_installmenu + dh_installman + dh_link + dh_strip + dh_compress + dh_fixperms +# dh_makeshlibs + dh_installdeb + dh_shlibdeps + dh_gencontrol + dh_md5sums + dh_builddeb + +binary: binary-indep binary-arch +.PHONY: config build clean binary-indep binary-arch binary install --- tkpng-0.9.orig/debian/control +++ tkpng-0.9/debian/control @@ -0,0 +1,21 @@ +Source: tkpng +Section: devel +Priority: extra +Maintainer: Tcl/Tk Debian Packagers +Uploaders: Miriam Ruiz +Build-Depends: debhelper (>= 7), autotools-dev, + tcl8.5-dev, tk8.5-dev, zlib1g-dev +Standards-Version: 3.8.0 +Homepage: http://www.muonics.com/FreeStuff/TkPNG/ +Vcs-Svn: svn://svn.debian.org/svn/pkg-tcltk/packages/tkpng/trunk/ +Vcs-Browser: http://svn.debian.org/wsvn/pkg-tcltk/packages/tkpng/trunk/?op=log + +Package: tkpng +Architecture: any +Depends: tk | wish, ${shlibs:Depends}, ${misc:Depends} +Description: PNG photo image support to Tcl/Tk + TkPNG is an open source binary package that adds PNG photo image support + to Tcl/Tk. Although other extensions such as Img also add support for PNG + images, this package was designed to be lightweight, not depending on + libpng nor implementing other image formats, and suitable for inclusion in + the Tk core. --- tkpng-0.9.orig/debian/copyright +++ tkpng-0.9/debian/copyright @@ -0,0 +1,55 @@ +This package was debianized by Miriam Ruiz on +Wed, 12 Nov 2008 14:06:43 +0100. + +It was downloaded from http://sourceforge.net/projects/tkpng/ + +Upstream Author: + + Michael Kirkham + +Copyright: + + Copyright (c) 2006 Muonics, Inc. + +License: + + 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. + +The Debian packaging is (C) 2008, Miriam Ruiz and +is licensed under the same license as the program, see above. --- tkpng-0.9.orig/debian/docs +++ tkpng-0.9/debian/docs @@ -0,0 +1 @@ +README --- tkpng-0.9.orig/debian/changelog +++ tkpng-0.9/debian/changelog @@ -0,0 +1,12 @@ +tkpng (0.9-1ubuntu1) oneiric; urgency=low + + * Fix FTBFS with ld --as-needed. Closes: #639284. LP: #832926. + + -- Matthias Klose Mon, 12 Sep 2011 23:50:27 +0000 + +tkpng (0.9-1) unstable; urgency=low + + * Initial release. + + -- Miriam Ruiz Wed, 12 Nov 2008 14:06:43 +0100 +