From a81f224664e1dda4432d1bbfc4933dc4454368ef Mon Sep 17 00:00:00 2001 From: Andrea Brancaleoni Date: Sat, 18 Jul 2015 19:00:05 +0200 Subject: [PATCH] New package: splix-2.0.0 --- srcpkgs/splix/patches/crosscompile.patch | 17 ++++ srcpkgs/splix/patches/splix-deviceID.patch | 105 +++++++++++++++++++++ srcpkgs/splix/template | 26 +++++ 3 files changed, 148 insertions(+) create mode 100644 srcpkgs/splix/patches/crosscompile.patch create mode 100644 srcpkgs/splix/patches/splix-deviceID.patch create mode 100644 srcpkgs/splix/template diff --git a/srcpkgs/splix/patches/crosscompile.patch b/srcpkgs/splix/patches/crosscompile.patch new file mode 100644 index 00000000000..a7652710ef9 --- /dev/null +++ b/srcpkgs/splix/patches/crosscompile.patch @@ -0,0 +1,17 @@ +--- rules.mk 2015-04-25 03:13:58.762185962 +0200 ++++ rules.mk 2015-04-25 03:40:23.891254518 +0200 +@@ -6,12 +6,12 @@ + + $(rastertoqpdl_TARGET): $(rastertoqpdl_OBJ) + $(call printCmd, $(cmd_link)) +- $(Q)g++ -o $@ $^ $(rastertoqpdl_CXXFLAGS) $(rastertoqpdl_LDFLAGS) \ ++ $(Q)$(CXX) -o $@ $^ $(rastertoqpdl_CXXFLAGS) $(rastertoqpdl_LDFLAGS) \ + $(rastertoqpdl_LIBS) + + $(pstoqpdl_TARGET): $(pstoqpdl_OBJ) + $(call printCmd, $(cmd_link)) +- $(Q)g++ -o $@ $^ $(pstoqpdl_CXXFLAGS) $(pstoqpdl_LDFLAGS) \ ++ $(Q)$(CXX) -o $@ $^ $(pstoqpdl_CXXFLAGS) $(pstoqpdl_LDFLAGS) \ + $(pstoqpdl_LIBS) + + .PHONY: install installcms diff --git a/srcpkgs/splix/patches/splix-deviceID.patch b/srcpkgs/splix/patches/splix-deviceID.patch new file mode 100644 index 00000000000..fcdae393d52 --- /dev/null +++ b/srcpkgs/splix/patches/splix-deviceID.patch @@ -0,0 +1,105 @@ +diff -up ppd/samsung.drv.in.deviceID ppd/samsung.drv.in +--- ppd/samsung.drv.in.deviceID 2013-08-26 21:45:31.000000000 +0200 ++++ ppd/samsung.drv.in 2013-09-02 13:56:57.002669362 +0200 +@@ -39,6 +39,7 @@ Manufacturer "Samsung" + Resolution k 1 0 0 0 "300dpi/300 DPI" + + ModelName "SCX-4200" ++ Attribute "1284DeviceID" "" "MFG:Samsung;MDL:SCX-4200 Series;CMD:GDI;" + PCFileName "scx4200.ppd" + } { + Resolution k 1 0 0 0 "300dpi/300 DPI" +@@ -83,6 +84,7 @@ Manufacturer "Samsung" + PCFileName "ml1520.ppd" + } { + ModelName "ML-1610" ++ Attribute "1284DeviceID" "" "MFG:Samsung;MDL:ML-1610;CMD:GDI;" + PCFileName "ml1610.ppd" + } { + ModelName "ML-1710" +@@ -121,6 +123,7 @@ Manufacturer "Samsung" + Throughput 22 + { + ModelName "ML-2250" ++ Attribute "1284DeviceID" "" "MFG:Samsung;MDL:ML-2250;" + PCFileName "ml2250.ppd" + } { + ModelName "ML-2251" +@@ -166,6 +169,7 @@ Manufacturer "Samsung" + PCFileName "ml1640.ppd" + } { + ModelName "ML-2010" ++ Attribute "1284DeviceID" "" "MFG:Samsung;MDL:ML-2010;CMD:GDI;" + PCFileName "ml2010.ppd" + } { + ModelName "ML-2015" +@@ -177,6 +181,7 @@ Manufacturer "Samsung" + #import "srtmode.defs" + + ModelName "ML-2510" ++ Attribute "1284DeviceID" "" "MFG:Samsung;MDL:ML-2510 Series;CMD:GDI;" + PCFileName "ml2510.ppd" + } + } +@@ -193,15 +198,18 @@ Manufacturer "Samsung" + + { + ModelName "ML-1660" ++ Attribute "1284DeviceID" "" "MFG:Samsung;MDL:ML-1660 Series;CMD:GDI,FWV,EXT;" + PCFileName "ml1660.ppd" + } { + ModelName "ML-1910" + PCFileName "ml1910.ppd" + } { + ModelName "ML-2525" ++ Attribute "1284DeviceID" "" "MFG:Samsung;MDL:ML-2525 Series;CMD:GDI,FWV,EXT;" + PCFileName "ml2525.ppd" + } { + ModelName "ML-2525W" ++ Attribute "1284DeviceID" "" "MFG:Samsung;MDL:ML-2525W Series;CMD:GDI,FWV,EXT;" + PCFileName "ml2525w.ppd" + } + } { +@@ -465,6 +473,7 @@ Manufacturer "Samsung" + Attribute General CMSFile "CLP-310" + + ModelName "CLP-310" ++ Attribute "1284DeviceID" "" "MFG:Samsung;MDL:CLP-310 Series;CMD:SPLC,FWV;" + PCFileName "clp310.ppd" + }{ + Attribute General CMSFile "CLP-315" +diff -up splix/ppd/xerox.drv.in.deviceID splix/ppd/xerox.drv.in +--- ppd/xerox.drv.in.deviceID 2013-08-26 17:22:00.000000000 +0200 ++++ ppd/xerox.drv.in 2013-09-02 13:55:22.634957854 +0200 +@@ -66,6 +66,7 @@ Manufacturer "Xerox" + } { + #import "manualduplex.defs" + ModelName "Phaser 3120" ++ Attribute "1284DeviceID" "" "MFG:Xerox;MDL:Phaser 3120;CMD:GDI;" + PCFileName "ph3120.ppd" + } { + #import "manualduplex.defs" +@@ -74,6 +75,7 @@ Manufacturer "Xerox" + } { + #import "manualduplex.defs" + ModelName "Phaser 3130" ++ Attribute "1284DeviceID" "" "MFG:Xerox;MDL:Phaser 3130;CMD:PCL5E,PCL6;" + PCFileName "ph3130.ppd" + } { + // Multi-tray +@@ -118,6 +120,7 @@ Manufacturer "Xerox" + + { + ModelName "Phaser 3117" ++ Attribute "1284DeviceID" "" "MFG:Xerox;MDL:Phaser 3117;CMD:GDI;" + PCFileName "ph3117.ppd" + } { + Resolution k 1 0 0 0 "1200x600dpi/1200x600 DPI" +@@ -131,6 +134,7 @@ Manufacturer "Xerox" + + { + ModelName "Phaser 3124" ++ Attribute "1284DeviceID" "" "MFG:Xerox;MDL:Phaser 3124;CMD:GDI;" + PCFileName "ph3124.ppd" + } + } diff --git a/srcpkgs/splix/template b/srcpkgs/splix/template new file mode 100644 index 00000000000..4dce7dadc67 --- /dev/null +++ b/srcpkgs/splix/template @@ -0,0 +1,26 @@ +# Template file for 'splix-svn' +pkgname=splix +version=2.0.0 +revision=1 +_subversion=svn315 +wrksrc="$pkgname-$version+$_subversion.orig" +build_style=gnu-makefile +makedepends="cups-devel mit-krb5-devel jbigkit-devel" +short_desc="CUPS driver for SPL printers (Samsung and several Xerox printers)" +maintainer="Andrea Brancaleoni " +license="GPL-2" +homepage="http://splix.ap2c.org" +distfiles="${DEBIAN_SITE}/main/s/$pkgname/${pkgname}_$version+$_subversion.orig.tar.gz" +checksum="578a81bd5b1b97756a539c3bb6339fd109d54419887a73e705941da8aa7fac52" +CXXFLAGS=" -fno-strict-aliasing" + +do_build() { + make CC="$CC" CXX="$CXX" LD="$LD" AR="$AR" RANLIB="$RANLIB" \ + CPP="$CPP" AS="$AS" OBJDUMP="$OBJDUMP" STRIP="true" drv + make CC="$CC" CXX="$CXX" LD="$LD" AR="$AR" RANLIB="$RANLIB" \ + CPP="$CPP" AS="$AS" OBJDUMP="$OBJDUMP" STRIP="true" all DRV_ONLY=1 +} + +do_install() { + make STRIP=true PREFIX=/usr DESTDIR="${DESTDIR}" install DRV_ONLY=1 +}