diff --git a/debian/README b/debian/README new file mode 100644 index 0000000..dc54ae5 --- /dev/null +++ b/debian/README @@ -0,0 +1,23 @@ +The below is included in Ubuntu's splix package as 'README.Debian', but this +is only relevent for developers: + --Jeroen, June 2nd 2007 + +SpliX for Ubuntu Linux +---------------------- + +This is the SpliX printer driver for Samsung's laser printers using the SPL2 +(monochrome) and SPLc (color) printing languages. + +The PPD files coming with this package (in ppd/) are generated with +"ppdc" of the CUPS DDK from http://www.cups.org/ based on the +instructions in the ppd/samsung.drv file. So ppd/samsung.drv is the +source code of the PPDs. In addition, CUPS DDK is free software, so +all requirements for the PPDs being in the main part of Ubuntu Linux +are fulfilled. + +The ready-made PPD files are there for convenience, to not require +from the user to have CUPS DDK installed. As CUPS DDK does not make +part of Debian or Ubuntu yet, we use these PPDs instead of building +them. + + -- Till Kamppeter , Fri, 12 Jan 2007 20:47:46 +0000 diff --git a/debian/changelog b/debian/changelog new file mode 100644 index 0000000..c340fe2 --- /dev/null +++ b/debian/changelog @@ -0,0 +1,30 @@ +splix (1.0.1-1) unstable; urgency=low + + * Introduce Splix to Debian, based on Ubuntu package (thanks Till!) + (Closes: #411167) + * Added patch by Joost van Blokland to enable page logging + * Fix debian/rules clean to also remove produced binary + + -- Jeroen van Wolffelaar Sat, 2 Jun 2007 15:31:48 +0200 + +splix (1.0.1-0ubuntu1) feisty; urgency=low + + * New upstream release + o Duplex support + o Support for Xerox Phaser 6100 + o Bug fixes + * Removed 10-fix-ppds.dpatch: PPDs fixed upstream + * debian/rules: Removed PPDs for Samsung CLP-300 and CLP-600, these + printers are known to not work with this release of the driver. + + -- Till Kamppeter Wed, 7 Feb 2007 10:44:10 +0000 + +splix (1.0.1~beta2-0ubuntu1) feisty; urgency=low + + * Initial Release. (Closes: LP #59829) + * Fixed PPD files + o It must be "*LanguageVersion: German", not + "*LanguageVersion: Deutsch". + o The PPDs for the CLP-600 had "CLP-60" as model name. + + -- Till Kamppeter Tue, 12 Dec 2006 12:00:00 +0100 diff --git a/debian/compat b/debian/compat new file mode 100644 index 0000000..7ed6ff8 --- /dev/null +++ b/debian/compat @@ -0,0 +1 @@ +5 diff --git a/debian/control b/debian/control new file mode 100644 index 0000000..8bc6570 --- /dev/null +++ b/debian/control @@ -0,0 +1,23 @@ +Source: splix +Section: text +Priority: optional +Maintainer: Jeroen van Wolffelaar +Build-Depends: debhelper (>= 5.0.0), groff, dpatch, libcupsys-dev, libcupsimage-dev +Standards-Version: 3.7.2 + +Package: splix +Architecture: any +Depends: ${shlibs:Depends} +Description: Driver for Samsung's SPL2 (bw) and SPLc (color) laser printers + Support for printing to SPL2- and SPLc-based printers. These are most + of the cheaper Samsung laser printers which do not understand standard + languages like PostScript or PCL. Both monochrome (ML-15xx, ML-16xx, + ML-17xx, ML-2xxx) and color (CLP-5xx, CLP-6xx) models are supported. + Also some rebranded Samsungs like the Xerox Phaser 6100 work with this + driver. + . + Note that older SPL1-based models (ML-12xx, ML-14xx) do not work. Use + these printers with the older "gdi" driver which is built into ESP + GhostScript. + . + Home Page: http://splix.ap2c.org/ diff --git a/debian/copyright b/debian/copyright new file mode 100644 index 0000000..54a1c6b --- /dev/null +++ b/debian/copyright @@ -0,0 +1,28 @@ +This package was debianized by Till Kamppeter on +Tue, 12 Dec 2006. + +It is currently, in Debian, maintained by Jeroen van Wolffelaar +, based on the work by Till. + +It was downloaded from http://splix.ap2c.org/ + +Upstream Authors: + Aurélien Croc + +Copyright: (C) 2006, Aurélien Croc (AP²C) + + This package 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; version 2 dated June, 1991. + + 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 can be found in `/usr/share/common-licenses/GPL'. diff --git a/debian/docs b/debian/docs new file mode 100644 index 0000000..e4fed78 --- /dev/null +++ b/debian/docs @@ -0,0 +1,3 @@ +AUTHORS +THANKS +TODO diff --git a/debian/rules b/debian/rules new file mode 100755 index 0000000..74cf8f3 --- /dev/null +++ b/debian/rules @@ -0,0 +1,81 @@ +#!/usr/bin/make -f + +# Uncomment this to turn on verbose mode. +#export DH_VERBOSE=1 + +CFLAGS = -Wall -g + +ifneq (,$(findstring noopt,$(DEB_BUILD_OPTIONS))) + CFLAGS += -O0 +else + CFLAGS += -O2 +endif +ifeq (,$(findstring nostrip,$(DEB_BUILD_OPTIONS))) + INSTALL_PROGRAM += -s +endif + +patch: patch-stamp +patch-stamp: + dh_testdir + dpatch apply-all + touch patch-stamp + +configure: configure-stamp +configure-stamp: patch + dh_testdir + touch configure-stamp + +build: build-stamp +build-stamp: configure-stamp + dh_testdir + # Make the PPDs newer than the ppd/po/* and ppd/samsung.drv files + # so that make does not rebuild them (would require cupsddk) + touch ppd/*.ppd + $(MAKE) CFLAGS="$(CFLAGS)" + # Remove PPDs for Samsung CLP-300 and CLP-600, these printers are + # known to not work with this release of the driver + rm -f ppd/clp[36]00*.ppd* + touch build-stamp + +unpatch: + dh_testdir + dpatch deapply-all + rm -rf debian/patched + +clean: unpatch + dh_testdir + dh_testroot + rm -f build-stamp configure-stamp patch-stamp + -$(MAKE) clean + rm -f src/rastertospl2 + dh_clean + +install: build + dh_testdir + dh_testroot + dh_clean -k + dh_installdirs + # "make install" does neither support "PREFIX" nor "DESTDIR". so + # we install the files manually + # $(MAKE) install + dh_install + +# Build architecture-dependent files here. +binary-arch: build install + dh_testdir + dh_testroot + dh_installchangelogs ChangeLog + dh_installdocs + dh_installexamples + dh_installman + dh_strip + dh_compress + dh_fixperms + dh_installdeb + dh_shlibdeps + dh_gencontrol + dh_md5sums + dh_builddeb + +binary: binary-indep binary-arch +.PHONY: build clean binary-indep binary-arch binary install configure diff --git a/debian/splix.install b/debian/splix.install new file mode 100644 index 0000000..03413fa --- /dev/null +++ b/debian/splix.install @@ -0,0 +1,2 @@ +src/rastertospl2 usr/lib/cups/filter/ +ppd/*.ppd* usr/share/ppd/splix/ diff --git a/include/document.h b/include/document.h index a7f3539..3a38fa2 100644 --- a/include/document.h +++ b/include/document.h @@ -41,6 +41,7 @@ virtual unsigned long height() const = 0; virtual unsigned long lineSize() const = 0; virtual unsigned char* lineBuffer() const = 0; + virtual unsigned long page() const = 0; public: virtual bool isColor() const = 0; diff --git a/include/raster.h b/include/raster.h index 3e05d5f..8518df2 100644 --- a/include/raster.h +++ b/include/raster.h @@ -68,6 +68,7 @@ virtual unsigned long height() const {return _height;} virtual unsigned long lineSize() const {return _lineSize;} virtual unsigned char* lineBuffer() const {return _lineBuffer;} + virtual unsigned long page() const {return _page;} public: virtual bool isColor() const {return _color;} diff --git a/src/spl2.cpp b/src/spl2.cpp index 4581ae0..f31c923 100644 --- a/src/spl2.cpp +++ b/src/spl2.cpp @@ -150,6 +150,7 @@ if (!document->height()) return -1; + fprintf(stderr, "PAGE: %d %d\n", document->page(), nrCopies); // Send page header FIXME header[0x0] = 0; // Signature