diff --git a/hardware/printer/splix/actions.py b/hardware/printer/splix/actions.py new file mode 100755 index 0000000000..e4710be8f2 --- /dev/null +++ b/hardware/printer/splix/actions.py @@ -0,0 +1,30 @@ +#!/usr/bin/python +# -*- coding: utf-8 -*- +# +# Licensed under the GNU General Public License, version 3. +# See the file http://www.gnu.org/licenses/gpl.txt + +from pisi.actionsapi import shelltools +from pisi.actionsapi import autotools +from pisi.actionsapi import pisitools +from pisi.actionsapi import get + +WorkDir = "splix" + +def build(): + shelltools.export("OS_CFLAGS", get.CFLAGS()) + shelltools.export("OS_LDFLAGS", get.LDFLAGS()) + shelltools.export("OS_CXXFLAGS", "%s -fno-strict-aliasing" % get.CXXFLAGS()) + + shelltools.makedirs("ppd") + autotools.make("-C ppd") + + autotools.make("V=1") + +def install(): + autotools.install("DESTDIR=%s CUPSPPD=/usr/share/cups/model/splix" % get.installDIR()) + + # Install color profiles + pisitools.insinto("/usr/share/cups/model/samsung/cms", "cms/*") + + pisitools.dodoc("AUTHORS", "ChangeLog", "COPYING", "README", "THANKS", "TODO") diff --git a/hardware/printer/splix/files/install-english-only.patch b/hardware/printer/splix/files/install-english-only.patch new file mode 100755 index 0000000000..5878dee44f --- /dev/null +++ b/hardware/printer/splix/files/install-english-only.patch @@ -0,0 +1,30 @@ +Index: ppd/Makefile +=================================================================== +--- ppd/Makefile.orig ++++ ppd/Makefile +@@ -75,25 +75,16 @@ install: + $(Q)install -d -m 755 ${DESTDIR}${CUPSPPD}/samsung + $(Q)for filename in ${SAMSUNG}; do \ + install -m 644 $$filename.${DRIVERSEXT} ${DESTDIR}${CUPSPPD}/samsung;\ +- for lang in ${LANGUAGES}; do \ +- install -m 644 $$filename$$lang.${DRIVERSEXT} ${DESTDIR}${CUPSPPD}/samsung;\ +- done; \ + done; + $(call printCmd, $(cmd_install_xerox)) + $(Q)install -d -m 755 ${DESTDIR}${CUPSPPD}/xerox + $(Q)for filename in ${XEROX}; do \ + install -m 644 $$filename.${DRIVERSEXT} ${DESTDIR}${CUPSPPD}/xerox;\ +- for lang in ${LANGUAGES}; do \ +- install -m 644 $$filename$$lang.${DRIVERSEXT} ${DESTDIR}${CUPSPPD}/xerox;\ +- done; \ + done; + $(call printCmd, $(cmd_install_dell)) + $(Q)install -d -m 755 ${DESTDIR}${CUPSPPD}/dell + $(Q)for filename in ${DELL}; do \ + install -m 644 $$filename.${DRIVERSEXT} ${DESTDIR}${CUPSPPD}/dell;\ +- for lang in ${LANGUAGES}; do \ +- install -m 644 $$filename$$lang.${DRIVERSEXT} ${DESTDIR}${CUPSPPD}/dell;\ +- done; \ + done; + + .PHONY: clean distclean diff --git a/hardware/printer/splix/files/splix-1.1.0-fix-makefile.patch b/hardware/printer/splix/files/splix-1.1.0-fix-makefile.patch new file mode 100755 index 0000000000..b2190dd8ed --- /dev/null +++ b/hardware/printer/splix/files/splix-1.1.0-fix-makefile.patch @@ -0,0 +1,53 @@ +Index: splix-2.0.0/Makefile +=================================================================== +--- splix-2.0.0.orig/Makefile ++++ splix-2.0.0/Makefile +@@ -55,8 +55,6 @@ + # +--------------------------------------------------------------------------+ + LANGUAGES := cpp c + +-CC := gcc +-CXX := g++ + RM := rm -f + AR := ar crs + LEX := flex +@@ -72,10 +70,10 @@ empty := + space := $(empty) $(empty) + comma := , + +-DEBUG_CFLAGS := -O0 -g +-DEBUG_CXXFLAGS := -O0 -g +-OPTIM_CFLAGS := -O2 +-OPTIM_CXXFLAGS := -O2 ++DEBUG_CFLAGS := $(OS_CFLAGS) ++DEBUG_CXXFLAGS := $(OS_CXXFLAGS) ++OPTIM_CFLAGS := $(OS_CFLAGS) ++OPTIM_CXXFLAGS := $(OS_CXXFLAGS) + + ARCHI := $(shell uname -s) + +Index: splix-2.0.0/module.mk +=================================================================== +--- splix-2.0.0.orig/module.mk ++++ splix-2.0.0/module.mk +@@ -26,13 +26,13 @@ DISABLE_BLACKOPTIM ?= 0 + + + # Flags +-CXXFLAGS += `cups-config --cflags` -Iinclude -Wall -I/opt/local/include +-DEBUG_CXXFLAGS += -DDEBUG -DDUMP_CACHE +-OPTIM_CXXFLAGS += -g +-rastertoqpdl_LDFLAGS := `cups-config --ldflags` -L/opt/local/lib +-rastertoqpdl_LIBS := `cups-config --libs` -lcupsimage +-pstoqpdl_LDFLAGS := `cups-config --ldflags` +-pstoqpdl_LIBS := `cups-config --libs` -lcupsimage ++CXXFLAGS += `cups-config --cflags` -Iinclude $(OS_CXXFLAGS) ++DEBUG_CXXFLAGS += $(OS_CXXFLAGS) ++OPTIM_CXXFLAGS += $(OS_CXXFLAGS) ++rastertoqpdl_LDFLAGS := `cups-config --ldflags` $(OS_LDFLAGS) -L/opt/local/lib ++rastertoqpdl_LIBS := `cups-config --libs` -lcupsimage ++pstoqpdl_LDFLAGS := `cups-config --ldflags` $(OS_LDFLAGS) ++pstoqpdl_LIBS := `cups-config --libs` -lcupsimage + + + # Update compilation flags with defined options diff --git a/hardware/printer/splix/files/splix-nostrip.patch b/hardware/printer/splix/files/splix-nostrip.patch new file mode 100755 index 0000000000..144c3ff6e6 --- /dev/null +++ b/hardware/printer/splix/files/splix-nostrip.patch @@ -0,0 +1,15 @@ +diff -up splix/rules.mk.nostrip splix/rules.mk +--- splix/rules.mk.nostrip 2011-06-27 20:38:45.000000000 +0200 ++++ splix/rules.mk 2011-11-18 18:09:14.438351922 +0100 +@@ -21,9 +21,9 @@ cmd_install_cms = INSTALL col + install: $(rastertoqpdl_TARGET) $(pstoqpdl_TARGET) + $(Q)mkdir -p $(DESTDIR)${CUPSFILTER} + $(call printCmd, $(cmd_install_raster)) +- $(Q)install -m 755 -s $(rastertoqpdl_TARGET) $(DESTDIR)${CUPSFILTER} ++ $(Q)install -m 755 $(rastertoqpdl_TARGET) $(DESTDIR)${CUPSFILTER} + $(call printCmd, $(cmd_install_ps)) +- $(Q)install -m 755 -s $(pstoqpdl_TARGET) $(DESTDIR)${CUPSFILTER} ++ $(Q)install -m 755 $(pstoqpdl_TARGET) $(DESTDIR)${CUPSFILTER} + $(Q)$(MAKE) --no-print-directory -C ppd install Q=$(Q) \ + DESTDIR=$(abspath $(DESTDIR)) DISABLE_JBIG=$(DISABLE_JBIG) + @echo "" diff --git a/hardware/printer/splix/pspec.xml b/hardware/printer/splix/pspec.xml new file mode 100755 index 0000000000..ee27ed9030 --- /dev/null +++ b/hardware/printer/splix/pspec.xml @@ -0,0 +1,66 @@ + + + + + splix + http://splix.sf.net/ + + PisiLinux Community + admins@pisilinux.org + + GPLv2 + data + app:console + A set of CUPS printer drivers for SPL (Samsung Printer Language) printers + The Splix drivers are usable by all printer devices which understand the SPL II language. It covers several Samsung, Xerox, Dell and Ricoh printers. + http://source.pisilinux.org/1.0/splix_2.0.0+20110720.orig.tar.gz + http://splix.ap2c.org/samsung_cms.tar.bz2 + + cups-devel + jbigkit-devel + + + splix-1.1.0-fix-makefile.patch + splix-nostrip.patch + install-english-only.patch + + + + + splix + + cups + libgcc + jbigkit + + + /usr/lib/cups + /usr/share/cups + /usr/share/doc + + + + + + 2015-01-10/Date> + 2.0.0_20110720 + Rebuild and add dep + Alihan Öztürk + alihan@pisilinux.org + + + 2014-03-09 + 2.0.0_20110720 + Rebuild + Varol Maksutoğlu + waroi@pisilinux.org + + + 2011-12-07 + 2.0.0_20110720 + First release + Pisi Linux Admins + admins@pisilinux.org + + + diff --git a/hardware/printer/splix/translations.xml b/hardware/printer/splix/translations.xml new file mode 100755 index 0000000000..dedfbe68dd --- /dev/null +++ b/hardware/printer/splix/translations.xml @@ -0,0 +1,8 @@ + + + + splix + SPL (Samsung Yazıcı Dili) için CUPS sürücüleri + splix, SPL II dilini anlayabilen tüm yazıcılar tarafından kullanılabilen sürücüleri içerir. Bu sürücü bazı Samsung, Xerox, Dell ve Ricoh yazıcıları desteklemektedir. + +