splix:add pisi2.0

This commit is contained in:
alihanozturk
2016-01-11 22:00:56 +02:00
parent fb9f3f40e4
commit 12a4a08063
6 changed files with 202 additions and 0 deletions
+30
View File
@@ -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")
+30
View File
@@ -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
@@ -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
+15
View File
@@ -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 ""
+66
View File
@@ -0,0 +1,66 @@
<?xml version="1.0" ?>
<!DOCTYPE PISI SYSTEM "http://www.pisilinux.org/projeler/pisi/pisi-spec.dtd">
<PISI>
<Source>
<Name>splix</Name>
<Homepage>http://splix.sf.net/</Homepage>
<Packager>
<Name>PisiLinux Community</Name>
<Email>admins@pisilinux.org</Email>
</Packager>
<License>GPLv2</License>
<IsA>data</IsA>
<IsA>app:console</IsA>
<Summary>A set of CUPS printer drivers for SPL (Samsung Printer Language) printers</Summary>
<Description>The Splix drivers are usable by all printer devices which understand the SPL II language. It covers several Samsung, Xerox, Dell and Ricoh printers.</Description>
<Archive sha1sum="44a91041062b838290194668d9dd3e2ada53eab3" type="targz">http://source.pisilinux.org/1.0/splix_2.0.0+20110720.orig.tar.gz</Archive>
<Archive sha1sum="b854cdc4647043e7aae1a4affa5a1813a4d04613" type="tarbz2" target="splix">http://splix.ap2c.org/samsung_cms.tar.bz2</Archive>
<BuildDependencies>
<Dependency>cups-devel</Dependency>
<Dependency>jbigkit-devel</Dependency>
</BuildDependencies>
<Patches>
<Patch level="1">splix-1.1.0-fix-makefile.patch</Patch>
<Patch level="1">splix-nostrip.patch</Patch>
<Patch level="0">install-english-only.patch</Patch>
</Patches>
</Source>
<Package>
<Name>splix</Name>
<RuntimeDependencies>
<Dependency>cups</Dependency>
<Dependency>libgcc</Dependency>
<Dependency>jbigkit</Dependency>
</RuntimeDependencies>
<Files>
<Path fileType="executable">/usr/lib/cups</Path>
<Path fileType="data">/usr/share/cups</Path>
<Path fileType="doc">/usr/share/doc</Path>
</Files>
</Package>
<History>
<Update release="3">
<Date>2015-01-10/Date>
<Version>2.0.0_20110720</Version>
<Comment>Rebuild and add dep</Comment>
<Name>Alihan Öztürk</Name>
<Email>alihan@pisilinux.org</Email>
</Update>
<Update release="2">
<Date>2014-03-09</Date>
<Version>2.0.0_20110720</Version>
<Comment>Rebuild</Comment>
<Name>Varol Maksutoğlu</Name>
<Email>waroi@pisilinux.org</Email>
</Update>
<Update release="1">
<Date>2011-12-07</Date>
<Version>2.0.0_20110720</Version>
<Comment>First release</Comment>
<Name>Pisi Linux Admins</Name>
<Email>admins@pisilinux.org</Email>
</Update>
</History>
</PISI>
+8
View File
@@ -0,0 +1,8 @@
<?xml version="1.0" ?>
<PISI>
<Source>
<Name>splix</Name>
<Summary xml:lang="tr">SPL (Samsung Yazıcı Dili) için CUPS sürücüleri</Summary>
<Description xml:lang="tr">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.</Description>
</Source>
</PISI>