[csw-devel] SF.net SVN: gar:[17112] csw/mgar/pkg

cgrzemba at users.sourceforge.net cgrzemba at users.sourceforge.net
Tue Feb 21 14:38:46 CET 2012


Revision: 17112
          http://gar.svn.sourceforge.net/gar/?rev=17112&view=rev
Author:   cgrzemba
Date:     2012-02-21 13:38:45 +0000 (Tue, 21 Feb 2012)
Log Message:
-----------
splix/trunk: Inital commit

Added Paths:
-----------
    csw/mgar/pkg/splix/
    csw/mgar/pkg/splix/branches/
    csw/mgar/pkg/splix/tags/
    csw/mgar/pkg/splix/trunk/
    csw/mgar/pkg/splix/trunk/Makefile
    csw/mgar/pkg/splix/trunk/files/
    csw/mgar/pkg/splix/trunk/files/0001-make-patch.patch
    csw/mgar/pkg/splix/trunk/files/0002-use-gsed-in-compile.sh.patch
    csw/mgar/pkg/splix/trunk/files/0003-use-ginstall-in-ppd-makefile.patch
    csw/mgar/pkg/splix/trunk/files/postinstall


Property changes on: csw/mgar/pkg/splix/trunk
___________________________________________________________________
Added: svn:ignore
   + checksums
work


Added: csw/mgar/pkg/splix/trunk/Makefile
===================================================================
--- csw/mgar/pkg/splix/trunk/Makefile	                        (rev 0)
+++ csw/mgar/pkg/splix/trunk/Makefile	2012-02-21 13:38:45 UTC (rev 17112)
@@ -0,0 +1,41 @@
+# $Id: Makefile 16944 2012-01-31 09:09:20Z cgrzemba $
+# TODO (release-critical prefixed with !, non release-critical with *)
+#
+NAME = splix
+SVN_REV = 300
+VERSION = rev$(SVN_REV)
+GARTYPE = v2
+CATEGORIES = lib
+
+DESCRIPTION = CUPS printer drivers for SPL
+define BLURB 
+SpliX is a set of CUPS printer drivers for SPL (Samsung Printer Language) printers. If you have a such printer, you need to download and use SpliX. Moreover you will find documentation about this proprietary language. 
+endef
+
+MASTER_SITES =$(SF_MIRRORS)
+DISTFILES  = $(NAME)-$(VERSION).tar.bz2
+DISTFILES += postinstall
+# MASTER_SITES  = svn-http://$(NAME).svn.sourceforge.net/svnroot/$(NAME)
+# DISTFILES = $(VERSION)
+# NOCHECKSUM = $(VERSION)
+# SVNHTTP_CO_ARGS = --no-auth-cache --username guest --password guest
+
+VENDOR_URL = http://splix.ap2c.org
+
+PACKAGING_PLATFORMS = solaris10-i386
+GARCOMPILER = GNU
+PATCHFILES += 0001-make-patch.patch
+PATCHFILES += 0002-use-gsed-in-compile.sh.patch
+PATCHFILES += 0003-use-ginstall-in-ppd-makefile.patch
+
+CONFIGURE_SCRIPTS = 
+TEST_SCRIPTS = 
+
+RUNTIME_DEP_PKGS_CSWsplix += CSWlibcupsimage2
+RUNTIME_DEP_PKGS_CSWsplix += CSWlibcups2
+RUNTIME_DEP_PKGS_CSWsplix += CSWlibgcc-s1
+RUNTIME_DEP_PKGS_CSWsplix += CSWlibstdc++6
+RUNTIME_DEP_PKGS_CSWsplix += CSWlibjbig85-2
+
+include gar/category.mk
+

Added: csw/mgar/pkg/splix/trunk/files/0001-make-patch.patch
===================================================================
--- csw/mgar/pkg/splix/trunk/files/0001-make-patch.patch	                        (rev 0)
+++ csw/mgar/pkg/splix/trunk/files/0001-make-patch.patch	2012-02-21 13:38:45 UTC (rev 17112)
@@ -0,0 +1,119 @@
+From 4eb30bd5822a48708d85cbbc27939d81842a8f22 Mon Sep 17 00:00:00 2001
+From: Carsten Grzemba <cgrzemba at opencsw.org>
+Date: Mon, 20 Feb 2012 14:09:37 +0100
+Subject: [PATCH] make patch
+
+---
+ Makefile  |    6 +++---
+ module.mk |   23 +++++++++++++----------
+ rules.mk  |   10 +++++-----
+ 3 files changed, 21 insertions(+), 18 deletions(-)
+
+diff --git a/Makefile b/Makefile
+index c52f29c..17aec4e 100644
+--- a/Makefile
++++ b/Makefile
+@@ -147,7 +147,7 @@ endif # MODE == debug
+ # |   VERBOSE MODE AND INITIALIZATION                                        |
+ # +--------------------------------------------------------------------------+
+ 
+-V := 
++V :=  1
+ ifeq ($(V),1) 
+ 	Q := 
+ else
+@@ -377,13 +377,13 @@ distclean: clean
+ $(DEFFILE): Makefile $(patsubst %, %/module.mk, $(SUBDIRS)) module.mk
+ 	@echo -n "     GEN               $(DEFFILE)"
+ 	@echo "" > $@
+-	@make -s -C ./ _depsreload
++	@gmake -C ./ _depsreload
+ 
+ .PHONY: _depsreload
+ _depsreload:
+ 	@echo -n "."
+ 	@echo "DEFLOADED := 1" > $(DEFFILE)
+ 	@echo "_SUBDIRS := $(SUBDIRS)" >> $(DEFFILE)
+-	@if [ "$(SUBDIRS)" != "$(_SUBDIRS)" ]; then make -j 1 -s -C ./ _depsreload; \
++	@if [ "$(SUBDIRS)" != "$(_SUBDIRS)" ]; then gmake -j 1 -C ./ _depsreload; \
+ 		else echo "DEFDONE := 1" >> $(DEFFILE); echo ""; fi
+ 
+diff --git a/module.mk b/module.mk
+index 966d927..f30b51f 100644
+--- a/module.mk
++++ b/module.mk
+@@ -26,13 +26,16 @@ DISABLE_BLACKOPTIM	?= 0
+ 
+ 
+ # Flags
+-CXXFLAGS		+= `cups-config --cflags` -Iinclude -Wall -I/opt/local/include
++CXXFLAGS_cups   := $(shell cups-config --cflags)
++LDFLAGS_cups    := $(shell cups-config --ldflags)
++LIBS_cups       := -lcups # $(shell cups-config --libs)
++CXXFLAGS		+= $(CXXFLAGS_cups) -Iinclude -Wall -I/opt/csw/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
++OPTIM_CXXFLAGS 		+=
++rastertoqpdl_LDFLAGS	:= $(LDFLAGS_cups) -L/opt/csw/lib
++rastertoqpdl_LIBS	:= $(LIBS_cups) -lcupsimage
++pstoqpdl_LDFLAGS	:= $(LDFLAGS_cups)
++pstoqpdl_LIBS		:= $(LIBS_cups) -lcupsimage
+ 
+ 
+ # Update compilation flags with defined options
+@@ -54,15 +57,15 @@ endif
+ 
+ 
+ # Get some information
+-CUPSFILTER		:= `cups-config --serverbin`/filter
+-CUPSPPD			:= `cups-config --datadir`/model
++CUPSFILTER		:= $(shell cups-config --serverbin)/filter
++CUPSPPD			:= $(shell cups-config --datadir)/model
+ ifeq ($(ARCHI),Darwin)
+ PSTORASTER		:= pstocupsraster
+ else
+ PSTORASTER		:= pstoraster
+ endif
+ GSTORASTER		:= gstoraster
+-CUPSPROFILE			:= `cups-config --datadir`/profiles
++CUPSPROFILE			:= $(shell cups-config --datadir)/profiles
+ export CUPSFILTER CUPSPPD
+ 
+ 
+diff --git a/rules.mk b/rules.mk
+index 7f99787..c7cbebd 100644
+--- a/rules.mk
++++ b/rules.mk
+@@ -19,11 +19,11 @@ cmd_install_raster	= INSTALL           $(rastertoqpdl_TARGET)
+ cmd_install_ps		= INSTALL           $(pstoqpdl_TARGET)
+ cmd_install_cms		= INSTALL           color profile files
+ install: $(rastertoqpdl_TARGET) $(pstoqpdl_TARGET)
+-	$(Q)mkdir -p $(DESTDIR)${CUPSFILTER}
++	$(Q)ginstall -d $(DESTDIR)${CUPSFILTER}
+ 	$(call printCmd, $(cmd_install_raster))
+-	$(Q)install -m 755 -s $(rastertoqpdl_TARGET) $(DESTDIR)${CUPSFILTER}
++	$(Q)ginstall -m 755 $(rastertoqpdl_TARGET) $(DESTDIR)${CUPSFILTER}
+ 	$(call printCmd, $(cmd_install_ps))
+-	$(Q)install -m 755 -s $(pstoqpdl_TARGET) $(DESTDIR)${CUPSFILTER}
++	$(Q)ginstall -m 755 $(pstoqpdl_TARGET) $(DESTDIR)${CUPSFILTER}
+ 	$(Q)$(MAKE) --no-print-directory -C ppd install Q=$(Q) \
+ 		DESTDIR=$(abspath $(DESTDIR)) DISABLE_JBIG=$(DISABLE_JBIG)
+ 	@echo ""
+@@ -34,8 +34,8 @@ install: $(rastertoqpdl_TARGET) $(pstoqpdl_TARGET)
+ installcms:
+ 	@if [ "$$CMSDIR" -a -d "$$CMSDIR" ]; then \
+ 		CMSBASE=$(CUPSPROFILE)/$$MANUFACTURER; \
+-		mkdir -p $(DESTDIR)$$CMSBASE; \
+-		install -m 644 "$(CMSDIR)"/* $(DESTDIR)$$CMSBASE; \
++		ginstall -d $(DESTDIR)$$CMSBASE; \
++		ginstall -m 644 "$(CMSDIR)"/* $(DESTDIR)$$CMSBASE; \
+ 		if [ $$? = 0 ]; then \
+ 			echo "Color profile files has been copied."; \
+ 		fi; \
+-- 
+1.7.9
+

Added: csw/mgar/pkg/splix/trunk/files/0002-use-gsed-in-compile.sh.patch
===================================================================
--- csw/mgar/pkg/splix/trunk/files/0002-use-gsed-in-compile.sh.patch	                        (rev 0)
+++ csw/mgar/pkg/splix/trunk/files/0002-use-gsed-in-compile.sh.patch	2012-02-21 13:38:45 UTC (rev 17112)
@@ -0,0 +1,31 @@
+From 73362724d0a0b9b1ed55fa351e5f4078b4de6925 Mon Sep 17 00:00:00 2001
+From: Carsten Grzemba <cgrzemba at opencsw.org>
+Date: Tue, 21 Feb 2012 13:38:17 +0100
+Subject: [PATCH] use gsed in compile.sh
+
+---
+ ppd/compile.sh |    4 ++--
+ 1 files changed, 2 insertions(+), 2 deletions(-)
+
+diff --git a/ppd/compile.sh b/ppd/compile.sh
+index f4947fe..80184e6 100755
+--- a/ppd/compile.sh
++++ b/ppd/compile.sh
+@@ -1,4 +1,4 @@
+-#!/bin/sh
++#!/usr/xpg4/bin/sh
+ #
+ #       compile.sh                      (C) 2007, Aurélien Croc (AP²C)
+ #
+@@ -16,7 +16,7 @@
+ parseFile() {
+     while read LINE; do
+         if [ -n "`echo "$LINE" | grep '^[ \t]*#import[ \t]*"[a-zA-Z0-9\.\-]*"'`" ]; then
+-            FILE=`echo "$LINE" | sed -re 's/[ \t]*#import[ \t]"([a-zA-Z0-9\.\-]*)"/\1/'`
++            FILE=`echo "$LINE" | gsed -re 's/[ \t]*#import[ \t]"([a-zA-Z0-9\.\-]*)"/\1/'`
+             parseFile $FILE $2
+         else
+             echo "$LINE" >> $2
+-- 
+1.7.9
+

Added: csw/mgar/pkg/splix/trunk/files/0003-use-ginstall-in-ppd-makefile.patch
===================================================================
--- csw/mgar/pkg/splix/trunk/files/0003-use-ginstall-in-ppd-makefile.patch	                        (rev 0)
+++ csw/mgar/pkg/splix/trunk/files/0003-use-ginstall-in-ppd-makefile.patch	2012-02-21 13:38:45 UTC (rev 17112)
@@ -0,0 +1,75 @@
+From f4b1db15e8df233603eaff8f8a951719748dcf6a Mon Sep 17 00:00:00 2001
+From: Carsten Grzemba <cgrzemba at opencsw.org>
+Date: Tue, 21 Feb 2012 14:06:18 +0100
+Subject: [PATCH] use ginstall in ppd makefile
+
+---
+ ppd/Makefile |   30 +++++++++++++++---------------
+ 1 files changed, 15 insertions(+), 15 deletions(-)
+
+diff --git a/ppd/Makefile b/ppd/Makefile
+index 618388b..48bd80b 100644
+--- a/ppd/Makefile
++++ b/ppd/Makefile
+@@ -97,43 +97,43 @@ cmd_install_toshiba	= INSTALL           Toshiba PPD files
+ .PHONY: install
+ install:
+ 	$(call printCmd, $(cmd_install_samsung))
+-	$(Q)install -d -m 755 ${DESTDIR}${CUPSPPD}/samsung
++	$(Q)ginstall -d -m 755 ${DESTDIR}${CUPSPPD}/samsung
+ 	$(Q)for filename in ${SAMSUNG}; do \
+-		install -m 644 $$filename.${DRIVERSEXT} ${DESTDIR}${CUPSPPD}/samsung;\
++		ginstall -m 644 $$filename.${DRIVERSEXT} ${DESTDIR}${CUPSPPD}/samsung;\
+ 		for lang in ${LANGUAGES}; do \
+-			install -m 644 $$filename$$lang.${DRIVERSEXT} ${DESTDIR}${CUPSPPD}/samsung;\
++			ginstall -m 644 $$filename$$lang.${DRIVERSEXT} ${DESTDIR}${CUPSPPD}/samsung;\
+ 		done; \
+ 	done;
+ 	$(call printCmd, $(cmd_install_xerox))
+-	$(Q)install -d -m 755 ${DESTDIR}${CUPSPPD}/xerox
++	$(Q)ginstall -d -m 755 ${DESTDIR}${CUPSPPD}/xerox
+ 	$(Q)for filename in ${XEROX}; do \
+-		install -m 644 $$filename.${DRIVERSEXT} ${DESTDIR}${CUPSPPD}/xerox;\
++		ginstall -m 644 $$filename.${DRIVERSEXT} ${DESTDIR}${CUPSPPD}/xerox;\
+ 		for lang in ${LANGUAGES}; do \
+-			install -m 644 $$filename$$lang.${DRIVERSEXT} ${DESTDIR}${CUPSPPD}/xerox;\
++			ginstall -m 644 $$filename$$lang.${DRIVERSEXT} ${DESTDIR}${CUPSPPD}/xerox;\
+ 		done; \
+ 	done;
+ 	$(call printCmd, $(cmd_install_dell))
+-	$(Q)install -d -m 755 ${DESTDIR}${CUPSPPD}/dell
++	$(Q)ginstall -d -m 755 ${DESTDIR}${CUPSPPD}/dell
+ 	$(Q)for filename in ${DELL}; do \
+-		install -m 644 $$filename.${DRIVERSEXT} ${DESTDIR}${CUPSPPD}/dell;\
++		ginstall -m 644 $$filename.${DRIVERSEXT} ${DESTDIR}${CUPSPPD}/dell;\
+ 		for lang in ${LANGUAGES}; do \
+-			install -m 644 $$filename$$lang.${DRIVERSEXT} ${DESTDIR}${CUPSPPD}/dell;\
++			ginstall -m 644 $$filename$$lang.${DRIVERSEXT} ${DESTDIR}${CUPSPPD}/dell;\
+ 		done; \
+ 	done;
+ 	$(call printCmd, $(cmd_install_lexmark))
+-	$(Q)install -d -m 755 ${DESTDIR}${CUPSPPD}/lexmark
++	$(Q)ginstall -d -m 755 ${DESTDIR}${CUPSPPD}/lexmark
+ 	$(Q)for filename in ${LEXMARK}; do \
+-		install -m 644 $$filename.${DRIVERSEXT} ${DESTDIR}${CUPSPPD}/lexmark;\
++		ginstall -m 644 $$filename.${DRIVERSEXT} ${DESTDIR}${CUPSPPD}/lexmark;\
+ 		for lang in ${LANGUAGES}; do \
+-			install -m 644 $$filename$$lang.${DRIVERSEXT} ${DESTDIR}${CUPSPPD}/lexmark;\
++			ginstall -m 644 $$filename$$lang.${DRIVERSEXT} ${DESTDIR}${CUPSPPD}/lexmark;\
+ 		done; \
+ 	done;
+ 	$(call printCmd, $(cmd_install_toshiba))
+-	$(Q)install -d -m 755 ${DESTDIR}${CUPSPPD}/toshiba
++	$(Q)ginstall -d -m 755 ${DESTDIR}${CUPSPPD}/toshiba
+ 	$(Q)for filename in ${TOSHIBA}; do \
+-		install -m 644 $$filename.${DRIVERSEXT} ${DESTDIR}${CUPSPPD}/toshiba;\
++		ginstall -m 644 $$filename.${DRIVERSEXT} ${DESTDIR}${CUPSPPD}/toshiba;\
+ 		for lang in ${LANGUAGES}; do \
+-			install -m 644 $$filename$$lang.${DRIVERSEXT} ${DESTDIR}${CUPSPPD}/toshiba;\
++			ginstall -m 644 $$filename$$lang.${DRIVERSEXT} ${DESTDIR}${CUPSPPD}/toshiba;\
+ 		done; \
+ 	done;
+ 
+-- 
+1.7.9
+

Added: csw/mgar/pkg/splix/trunk/files/postinstall
===================================================================
--- csw/mgar/pkg/splix/trunk/files/postinstall	                        (rev 0)
+++ csw/mgar/pkg/splix/trunk/files/postinstall	2012-02-21 13:38:45 UTC (rev 17112)
@@ -0,0 +1,31 @@
+#/bin/ksh
+
+MANUFACTURER=samsung
+CMS_ARCH=${MANUFACTURER}_cms.tar.bz2
+SITE=splix.ap2c.org
+DESTDIR=$(cups-config --datadir)/profiles/$MANAUFACTURER
+
+echo "try to download CMS Profile from $SITE for $MANUFACTURER, now"
+echo "for other Manufacturers see hints on Web"
+
+mkdir /tmp/splixcms$$
+cd /tmp/splixcms$$
+# download
+wget  http://$SITE/${CMS_ARCH}
+if [ $? -ne 0 ]; then
+	echo "ERROR: Download failed, clould not install Color Management Profiles"
+	echo "You must install CMS files manually!"
+	exit;
+fi
+# extract
+bzcat ${CMS_ARCH} | tar xf -
+cd cms; pwd
+# create destination 
+ginstall -d -m 755 $DESTDIR
+# copy cms files
+for f in $(ls) ; do
+  ginstall -m 644 $f $DESTDIR
+done
+cd
+# cleanup
+rm -rf /tmp/splixcms$$

This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.



More information about the devel mailing list