debian/0000755000000000000000000000000011627775345007207 5ustar debian/source/0000755000000000000000000000000011334761215010471 5ustar debian/source/format0000644000000000000000000000001411334761345011703 0ustar 3.0 (quilt) debian/compat0000644000000000000000000000000211334736063010372 0ustar 5 debian/dirs0000644000000000000000000000010211334736063010051 0ustar usr/bin usr/share/pencil usr/share/pixmaps usr/share/applications debian/pencil.desktop0000644000000000000000000000036411515067624012045 0ustar [Desktop Entry] Name=Pencil Comment=Draw cartoons Version=1.0 Type=Application Categories=Graphics;VectorGraphics; MimeType=text/plain; TryExec=pencil Exec=pencil %F Terminal=false StartupNotify=true Icon=pencil X-Ubuntu-Gettext-Domain=pencil debian/rules0000755000000000000000000000343511627775123010266 0ustar #!/usr/bin/make -f # SRC_VERSION := $(shell dpkg-parsechangelog | sed -ne 's/^Version: \(.*\)-.*/\1/p') configure: configure-stamp configure-stamp: dh_testdir qmake touch configure-stamp build: build-stamp build-stamp: configure-stamp dh_testdir $(MAKE) CXX='g++ -fpermissive' touch $@ clean: dh_testdir dh_testroot rm -f build-stamp configure-stamp qmake $(MAKE) clean dh_clean rm Makefile install: build dh_testdir dh_testroot dh_clean -k dh_installdirs $(MAKE) INSTALL_ROOT=$(CURDIR)/debian/pencil install install Pencil debian/pencil/usr/bin/pencil install -m644 icons/icon.png debian/pencil/usr/share/pixmaps/pencil.png dh_install background usr/share/pencil/ dh_install icons usr/share/pencil/ dh_install debian/pencil.desktop usr/share/applications/ dh_icons binary-arch: build install dh_testdir dh_testroot dh_installchangelogs dh_installdocs dh_installexamples dh_installman debian/pencil.1 dh_link dh_strip dh_compress dh_fixperms dh_installdeb dh_shlibdeps dh_gencontrol dh_md5sums dh_builddeb get-orig-source: rm -rf get-orig-source mkdir get-orig-source uscan --verbose --force-download --destdir=get-orig-source/ unzip get-orig-source/pencil-$(SRC_VERSION)-src.zip -d get-orig-source/ rm -rf get-orig-source/pencil-$(SRC_VERSION)-source/libmacosx rm -rf get-orig-source/pencil-$(SRC_VERSION)-source/libwin32 rm -rf debian/pencil/usr/share/pencil/icons/controls/.svn mv get-orig-source/pencil-$(SRC_VERSION)-source get-orig-source/pencil-$(SRC_VERSION) tar czf pencil_$(SRC_VERSION).orig.tar.gz -C get-orig-source pencil-$(SRC_VERSION)/ echo "pencil_$(SRC_VERSION).orig.tar.gz is created in the current directory." rm -rf get-orig-source binary: binary-indep binary-arch .PHONY: build clean binary-indep binary-arch binary install configure debian/README.source0000644000000000000000000000104711334736063011355 0ustar Pencil for Debian ----------------- The upstream source is packed in the zip format. It contains two folders, libwin32 and libmacosx, with source files that lack proper copyright accredition. As these folders are not relevant for building on a GNU/Linux system, we repackage the upstream source to exclude them. Furthermore, there is some leftover mac os x cruft in the source from upstream, that we exclude in the repackaging. in debian/rules, the get-orig-source call downloads upstream's source, repackages it, and produces a nice .orig.tar.gz. debian/patches/0000755000000000000000000000000011627775321010630 5ustar debian/patches/qmake-unix.patch0000644000000000000000000000271411627775212013733 0ustar Description: Upstream changes introduced in version 0.4.4b-0ubuntu5 This patch has been created by dpkg-source during the package build. Here's the last changelog entry, hopefully it gives details on why those changes were made: . pencil (0.4.4b-0ubuntu5) oneiric; urgency=low . * Build with -fpermissive. LP: #770799. . The person named in the Author field signed this changelog entry. Author: Matthias Klose Bug-Ubuntu: https://bugs.launchpad.net/bugs/770799 --- The information above should follow the Patch Tagging Guidelines, please checkout http://dep.debian.net/deps/dep3/ to learn about the format. Here are templates for supplementary fields that you might want to add: Origin: , Bug: Bug-Debian: http://bugs.debian.org/ Bug-Ubuntu: https://launchpad.net/bugs/ Forwarded: Reviewed-By: Last-Update: Index: pencil-0.4.4b/pencil.pro =================================================================== --- pencil-0.4.4b.orig/pencil.pro 2011-09-01 21:34:47.000000000 +0000 +++ pencil-0.4.4b/pencil.pro 2011-09-01 21:34:47.000000000 +0000 @@ -81,7 +81,7 @@ LIBS += -Llibmacosx -lming RC_FILE = pencil.icns } -linux-g++ { +unix { INCLUDEPATH += . liblinux SOURCES += src/external/linux/linux.cpp LIBS += -Lliblinux -lming debian/patches/no_libpng.patch0000644000000000000000000000066111335720647013620 0ustar Description: remove -lpng from list of necessary libraries. Symbols from libpng are not used in linking anyway. Author: Ilya Barygin --- pencil-0.4.4b.orig/pencil.pro +++ pencil-0.4.4b/pencil.pro @@ -84,7 +84,7 @@ macx { linux-g++ { INCLUDEPATH += . liblinux SOURCES += src/external/linux/linux.cpp - LIBS += -Lliblinux -lming -lpng + LIBS += -Lliblinux -lming } RESOURCES += pencil.qrc QT += xml opengl debian/patches/armel-qmax-fix.patch0000644000000000000000000000531111627775133014502 0ustar Author: Niall Creech Description: Fixes non existent call to qMax(qreal, double) on armel bug by casting double arg to qreal Ubuntu-Bug: https://bugs.launchpad.net/ubuntu/+source/pencil/+bug/642117 Index: pencil-0.4.4b/src/interface/scribblearea.cpp =================================================================== --- pencil-0.4.4b.orig/src/interface/scribblearea.cpp 2008-01-21 17:19:00.000000000 +0000 +++ pencil-0.4.4b/src/interface/scribblearea.cpp 2011-09-01 21:00:51.000000000 +0000 @@ -1637,7 +1637,7 @@ qreal distance = 4*QLineF(endPoint, lastBrushPoint).length(); qreal brushStep = 0.5*brush.width + 0.5*brush.feather; if(usePressure) brushStep = brushStep*tabletPressure; - brushStep = qMax(1.0, brushStep); + brushStep = qMax(qreal(1.0), brushStep); int steps = qRound( distance)/brushStep ; for(int i=0; i --- a/src/external/flash/flash.h +++ b/src/external/flash/flash.h @@ -33,9 +33,9 @@ { public: static void exportFlash(Object* object, int startFrame, int endFrame, QMatrix view, QSize exportSize, QString filePath, int fps, int compression); - static void convertToSWFSprite( BitmapImage* image, Object* object, QMatrix view, SWFSprite* sprite ); - static void convertToSWFSprite( VectorImage* vectorImage, Object* object, QMatrix view, SWFSprite* sprite ); - static void addShape( SWFSprite* sprite, QPainterPath path, QColor fillColour, QColor borderColour, qreal width, bool fill ); + static void convertToSWFMovieClip( BitmapImage* image, Object* object, QMatrix view, SWFMovieClip* sprite ); + static void convertToSWFMovieClip( VectorImage* vectorImage, Object* object, QMatrix view, SWFMovieClip* sprite ); + static void addShape( SWFMovieClip* sprite, QPainterPath path, QColor fillColour, QColor borderColour, qreal width, bool fill ); }; #endif --- a/src/external/flash/flash.cpp +++ b/src/external/flash/flash.cpp @@ -34,7 +34,7 @@ movie->setRate(fps); // 12 frames per seconds //SWFShape *shape = new SWFShape(); - SWFSprite *objectSprite = new SWFSprite(); + SWFMovieClip *objectSprite = new SWFMovieClip(); for(int i=0; i < object->getLayerCount(); i++) { Layer* layer = object->getLayer(i); @@ -42,14 +42,14 @@ // paints the bitmap images if(layer->type == Layer::BITMAP) { LayerBitmap* layerBitmap = (LayerBitmap*)layer; - SWFSprite *layerSprite = new SWFSprite(); + SWFMovieClip *layerSprite = new SWFMovieClip(); SWFDisplayItem *previousItem = NULL; for(int frameNumber = startFrame; frameNumber <= endFrame; frameNumber++) { BitmapImage* bitmapImage = layerBitmap->getBitmapImageAtFrame(frameNumber); if(bitmapImage != NULL) { if(previousItem != NULL) layerSprite->remove( previousItem ); - SWFSprite *imageSprite = new SWFSprite(); - convertToSWFSprite( bitmapImage, object, view, imageSprite); + SWFMovieClip *imageSprite = new SWFMovieClip(); + convertToSWFMovieClip( bitmapImage, object, view, imageSprite); previousItem = layerSprite->add( imageSprite ); } layerSprite->nextFrame(); @@ -61,14 +61,14 @@ // paints the vector images if(layer->type == Layer::VECTOR) { LayerVector* layerVector = (LayerVector*)layer; - SWFSprite *layerSprite = new SWFSprite(); + SWFMovieClip *layerSprite = new SWFMovieClip(); SWFDisplayItem *previousItem = NULL; for(int frameNumber = startFrame; frameNumber <= endFrame; frameNumber++) { VectorImage* vectorImage = layerVector->getVectorImageAtFrame(frameNumber); if(vectorImage != NULL) { if(previousItem != NULL) layerSprite->remove( previousItem ); - SWFSprite *sprite = new SWFSprite(); - convertToSWFSprite( vectorImage, object, view, sprite); + SWFMovieClip *sprite = new SWFMovieClip(); + convertToSWFMovieClip( vectorImage, object, view, sprite); previousItem = layerSprite->add( sprite ); } layerSprite->nextFrame(); @@ -98,7 +98,7 @@ } -void Flash::convertToSWFSprite( BitmapImage* bitmapImage, Object* object, QMatrix view, SWFSprite* sprite ) { +void Flash::convertToSWFMovieClip( BitmapImage* bitmapImage, Object* object, QMatrix view, SWFMovieClip* sprite ) { QString tempPath = QDir::tempPath()+"penciltemp.png"; QByteArray tempPath2( tempPath.toLatin1()); bitmapImage->image->save( tempPath , "PNG"); @@ -118,7 +118,7 @@ } -void Flash::convertToSWFSprite( VectorImage* vectorImage, Object* object, QMatrix view, SWFSprite* sprite ) { +void Flash::convertToSWFMovieClip( VectorImage* vectorImage, Object* object, QMatrix view, SWFMovieClip* sprite ) { // add filled areas for(int i=0; i< vectorImage->area.size(); i++) { @@ -146,7 +146,7 @@ -void Flash::addShape( SWFSprite* sprite, QPainterPath path, QColor fillColour, QColor borderColour, qreal width, bool fill ) { +void Flash::addShape( SWFMovieClip* sprite, QPainterPath path, QColor fillColour, QColor borderColour, qreal width, bool fill ) { SWFShape* shape = new SWFShape(); //float widthf = static_cast< float >(width); if(width == 0.0) { debian/patches/series0000644000000000000000000000010511627775321012041 0ustar ming_api.patch no_libpng.patch armel-qmax-fix.patch qmake-unix.patch debian/control0000644000000000000000000000111311335613144010566 0ustar Source: pencil Section: graphics Priority: optional Maintainer: Ubuntu Developers XSBC-Original-Maintainer: Khashayar Naderehvandi Build-Depends: debhelper (>= 5.0.60), libqt4-dev, libqt4-opengl-dev, libming-dev Standards-Version: 3.8.3 Homepage: http://www.les-stooges.org/pascal/pencil/ Package: pencil Architecture: any Depends: ${shlibs:Depends}, ${misc:Depends} Description: animation/drawing software Pencil lets you create traditional hand-drawn animations (cartoons) using both bitmap and vector graphics. debian/copyright0000644000000000000000000000375011334736063011134 0ustar This package was debianized by Khashayar Naderehvandi on Thu, 22 Jan 2009 18:07:35 +0100. Upstream Author: Pascal Naidon Copyright: Copyright: 2005 - 2007 Patrick Corrieri 2005 - 2007 Pascal Naidon Pencil - Traditional Animation Software Copyright 2005-2007 Patrick Corrieri & Pascal Naidon This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. On Debian systems, the complete text of the GNU General Public License can be found in `/usr/share/common-licenses/GPL'. The file src/interfaces.h is Copyright 2005-2007 Trolltech ASA This file may be used under the terms of the GNU General Public License version 2.0 as published by the Free Software Foundation and appearing in the file LICENSE.GPL included in the packaging of this file. Please review the following information to ensure GNU General Public Licensing requirements will be met: http://www.trolltech.com/products/qt/opensource.html If you are unsure which license is appropriate for your use, please review the following information: http://www.trolltech.com/products/qt/licensing.html or contact the sales department at sales@trolltech.com. This file is provided AS IS with NO WARRANTY OF ANY KIND, INCLUDING THE WARRANTY OF DESIGN, MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. On Debian systems, the complete text of the GNU General Public License can be found in `/usr/share/common-licenses/GPL-2'. The Debian packaging is © 2009, Khashayar Naderehvandi and is licensed under the GPL, see `/usr/share/common-licenses/GPL'. debian/pencil.10000644000000000000000000000332111334736063010527 0ustar .TH Pencil 1 "January 23, 2009" .SH NAME Pencil \- An animation/drawing software .SH SYNOPSIS .B Pencil .SH DESCRIPTION \fBPencil\fP is an application for easily creating animated cartoons, and can export the animations to flash files. .PP A Pencil document is organised in layers. There are currently four types of layers: bitmap image, vector image, sound and camera. The Time Line window at the bottom of the screen shows the existing layers. By default, a new document contains a bitmap layer and a vector layer on top of it, but you can add and delete layers as you wish (using either the "plus" and "minus" buttons next to "Layers", or the menu Layer). .PP Each layer has a track which enables you to change it as a function of time. This is done by inserting keys (the little grey rectangles) at certain frames in the track. Each key contains information about what the layer should show or produce at the frame where the key is located. To add or delete keys at a particular frame in a layer track, use the "plus" or "minus" buttons next to "Keys" (shortcut: type "return" to create a new frame). For image layers (ie bitmap and vector), each key corresponds to a different image. The sequence of these images creates an animation. The current frame is indicated by the red bar and can be changed by moving the red bar to scrub through your animation (or use the left and right arrows). To play the animation, use the controls in the time line. Note that you can loop the animation, as well as set the number of frames per seconds. .SH AUTHOR Pencil was written by Pascal Naidon. .PP This manual page was copied from http://www.les-stooges.org/pascal/pencil/index.php?id=UserManual and is written by Pascal Naidon and Patrick Corrieri. debian/docs0000644000000000000000000000001411334736063010042 0ustar README TODO debian/changelog0000644000000000000000000000271511627775345011066 0ustar pencil (0.4.4b-0ubuntu5) oneiric; urgency=low * Build with -fpermissive. LP: #770799. * Fix qmake project file to detect linux. -- Matthias Klose Thu, 01 Sep 2011 23:08:09 +0200 pencil (0.4.4b-0ubuntu4) natty; urgency=low * Change "pencil" menu entry to "Pencil" (LP: #704024) -- Jonathan Carter Mon, 17 Jan 2011 11:34:40 -0500 pencil (0.4.4b-0ubuntu3) maverick; urgency=low * armel-qmax-fix: - Fixes non existent call to qMax(qreal, double) on armel bug by casting double arg to qreal (LP: #642117) -- Niall Creech Sun, 19 Sep 2010 13:50:10 +0100 pencil (0.4.4b-0ubuntu2) lucid; urgency=low * New patches: - ming_api.patch: fix build with new ming API - no_libpng.patch: do not link against libpng * Convert to source format 3.0 (quilt) to handle patches. * Remove deprecated dh_desktop from debian/rules. * Bump Standards-Version to 3.8.3. -- Ilya Barygin Sun, 14 Feb 2010 00:15:40 +0300 pencil (0.4.4b-0ubuntu1) jaunty; urgency=low * Initial release (LP: #203629) * Due to missing copyright accredition, the source is repackaged to exclude libmacosx/ and libwin32/. The contents of these folders' files aren't even relevant for the linux version, so shouldn't matter. More info in README.source. * Add pencil.desktop * Add man page -- Khashayar Naderehvandi Fri, 30 Jan 2009 17:06:24 +0100 debian/watch0000644000000000000000000000007411334736063010226 0ustar version=3 http://sf.net/pencil-planner/pencil-(.*)-src\.zip