Unix Technical Forum

Success (sorta): thanks for all the help!

This is a discussion on Success (sorta): thanks for all the help! within the Slackware Linux Support forums, part of the Unix Operating Systems category; --> Well, I can now print with gimp-print-4.3.22. But not with gimp-1.3, which was the whole idea... Good news is, ...


Go Back   Unix Technical Forum > Unix Operating Systems > Slackware Linux Support

FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 02-18-2008, 08:08 PM
thrugoodmarshall
 
Posts: n/a
Default Success (sorta): thanks for all the help!

Well, I can now print with gimp-print-4.3.22. But not with gimp-1.3,
which was the whole idea...

Good news is, that with the help of the community, I have successfully
built, packaged, and tested these 2 packages. And learned many things
in the process.

The scripts are really just slightly modified copies of the ones that
came with slackware (slackware=good learning tool!). But if you find
them useful, or suggest a fix for a silly error, then thanks.

Build order:
Uninstall both packages if they are installed.
Then build and install espgs.
Then build gimp-print.
If you don't want espgs to be on the system, just uninstall it.

Note: when the script builds espgs, it installs ijs right on your
system. From reading the readmes and the existing slackware scripts,
it seems to me that the build of espgs depends on ijs being available
on the system. At any rate, if you installpkg and then removepkg, it
cleans itself up. Search for FIXME and comment it out if you think
this is stupid. That's what I'll probably do today.

espgs.slackbuild:
------begin script cut here------
#!/bin/bash
# Set initial variables:
CWD=`pwd`
DEST=$CWD/destdir
MAJOR=7
MINOR=07
MICRO=1
GS_VERSION=$MAJOR.$MINOR.$MICRO
ARCH=i686
BUILD=1

tar xjvf $CWD/espgs-$GS_VERSION-source.tar.bz2
chown -R root.root .
cd $CWD/espgs-$GS_VERSION

# Make sure -lz is used with -lpng, or PNG detection will fail
# and PNG devices will not be included.
cat $CWD/espgs-$GS_VERSION-png.lz.diff | patch --verbose

#We're makin' a package. Now, here's the DESTDIR patch:
cd $CWD/espgs-$GS_VERSION/src/
cat $CWD/espgs-$GS_VERSION-destdir.diff | patch --verbose

# OK, first we need the IJS library and include files.
# First, patch the Makefile.in for the destdir support
cd $CWD/espgs-$GS_VERSION
cd ijs
cat $CWD/espgs-$GS_VERSION-ijs-destdir.diff | patch --verbose
autoconf
../configure --prefix=/usr
make CFLAGS="-ansi -pedantic -Wmissing-prototypes"

mkdir -p $DEST/usr/lib
mkdir -p $DEST/usr/bin
mkdir -p $DEST/usr/include
make install DESTDIR= #Fixme--I think espgs needs these headers to be
present later
make install DESTDIR=$DEST

# Now the main source is compiled:
# This should have been untarred when we compiled libijs.
#tar xjvf $CWD/espgs-$GS_VERSION-source.tar.bz2

# Build the version with X11/CUPS/Omni/gimp-print/etc support:
cd $CWD/espgs-$GS_VERSION/
../configure --prefix=/usr \
--enable-cups \
--with-drivers=ALL \
--with-ijs \
--without-gimp-print \
--with-omni \
--with-x \
i686-slackware-linux
make clean
make
make install DESTDIR=$DEST

# Now make a "basic" version of gs:
../configure --prefix=/usr \
--enable-cups=no \
--with-drivers=ALL \
--with-ijs \
--with-gimp-print=no \
--with-omni=no \
--with-x=no \
i686-slackware-linux
make clean
make

cat bin/gs > $DEST/usr/bin/gs-no-x11
chmod 755 $DEST/usr/bin/gs-no-x11

mkdir -p $DEST/usr/doc/espgs-$GS_VERSION
( cd $DEST/usr/doc/espgs-$GS_VERSION
rm -rf doc examples
ln -sf $DEST/usr/share/ghostscript/$MAJOR.$MINOR/doc doc
ln -sf $DEST/usr/share/ghostscript/$MAJOR.$MINOR/examples examples )

mkdir -p $DEST/install
cat $CWD/slack-desc > $DEST/install/slack-desc

cd $DEST
makepkg -l y -c n $CWD/espgs-$GS_VERSION-$ARCH-$BUILD.tgz
------end script cut here------

espgs-7.07.1-destdir.diff
-----begin diff cut here------
*** Makefile.in.orig Sun Jul 13 00:43:17 2003
--- Makefile.in Sat Nov 15 08:00:59 2003
***************
*** 54,65 ****

prefix = @prefix@
exec_prefix = @exec_prefix@
! bindir = @bindir@
scriptdir = $(bindir)
! libdir = @libdir@
! mandir = @mandir@
man1ext = 1
! datadir = @datadir@
gsdir = $(datadir)/ghostscript
gsdatadir = $(gsdir)/$(GS_DOT_VERSION)

--- 54,65 ----

prefix = @prefix@
exec_prefix = @exec_prefix@
! bindir = $(DESTDIR)/@bindir@
scriptdir = $(bindir)
! libdir = $(DESTDIR)/@libdir@
! mandir = $(DESTDIR)/@mandir@
man1ext = 1
! datadir = $(DESTDIR)/@datadir@
gsdir = $(datadir)/ghostscript
gsdatadir = $(gsdir)/$(GS_DOT_VERSION)
------end diff cut here------

espgs-7.07.1-ijs-destdir.diff
------begin diff cut here------
*** Makefile.in.orig Tue Apr 23 07:58:32 2002
--- Makefile.in Fri Nov 14 09:27:59 2003
***************
*** 12,18 ****
#SHARED_LDFLAGS=-dylib
#SHARED_OBJ=.dylib

! FE=-o
IJS_EXEC_SERVER=ijs_exec_unix$(OBJ)
RM=rm -f
AR=ar
--- 12,18 ----
#SHARED_LDFLAGS=-dylib
#SHARED_OBJ=.dylib

! FE=-o
IJS_EXEC_SERVER=ijs_exec_unix$(OBJ)
RM=rm -f
AR=ar
***************
*** 22,30 ****
# Installation paths
prefix=@prefix@
exec_prefix=@exec_prefix@
! bindir=@bindir@
! libdir=@libdir@
! includedir=@includedir@

pkgincludedir=$(includedir)/ijs

--- 22,30 ----
# Installation paths
prefix=@prefix@
exec_prefix=@exec_prefix@
! bindir=$(DESTDIR)@bindir@
! libdir=$(DESTDIR)@libdir@
! includedir=$(DESTDIR)@includedir@

pkgincludedir=$(includedir)/ijs

------end diff cut here------

espgs-7.07.1-png.lz.diff
------begin diff cut here------
*** configure.orig Wed Nov 12 07:54:06 2003
--- configure Wed Nov 12 07:54:45 2003
***************
*** 4580,4586 ****
echo $ECHO_N "(cached) $ECHO_C" >&6
else
ac_check_lib_save_LIBS=$LIBS
! LIBS="-lpng $LIBS"
cat >conftest.$ac_ext <<_ACEOF
#line $LINENO "configure"
/* confdefs.h. */
--- 4580,4586 ----
echo $ECHO_N "(cached) $ECHO_C" >&6
else
ac_check_lib_save_LIBS=$LIBS
! LIBS="-lz -lpng $LIBS"
cat >conftest.$ac_ext <<_ACEOF
#line $LINENO "configure"
/* confdefs.h. */
------end diff cut here------


gimp-print.build
------begin script cut here------
#!/bin/bash
# Set initial variables:
CWD=`pwd`
GIMPPRINT_VERSION=4.3.23
DEST=$CWD/destdir
ARCH=i686
BUILD=1

# Let GIMP use the plug-in it comes with or it's a messy dependancy.
# This comes with some ghostscript patches that already seem to be
# built into ghostscript now :-)
echo "+=================================+"
echo "| gimp-print-${GIMPPRINT_VERSION} |"
echo "+=================================+"
tar xjvf $CWD/gimp-print-${GIMPPRINT_VERSION}.tar.bz2
cd gimp-print-${GIMPPRINT_VERSION}
../configure --prefix=/usr \
--infodir=/usr/info \
--with-ijs \
--with-cups \
--with-ghostscript \
--without-gimp \
--without-samples \
--without-user-guide \
--enable-escputil \
--disable-static \
--disable-nls \
i686-slackware-linux
make
make install DESTDIR=$DEST

GPDOC=$DEST/usr/doc/gimp-print-${GIMPPRINT_VERSION}
mkdir -p $GPDOC
cp -a ABOUT-NLS AUTHORS COPYING NEWS README $GPDOC
cp -a src/ghost/README $GPDOC/README.ghostscript
chmod 644 $GPDOC/*
chown -R root.root $GPDOC
rmdir $DEST/usr/share/gimp-print/samples/
rmdir $DEST/usr/share/gimp-print/

mkdir -p $DEST/install
cat $CWD/slack-desc > $DEST/install/slack-desc

cd $DEST

makepkg -l y -c n $CWD/gimp-print-$GIMPPRINT_VERSION-$ARCH-$BUILD.tgz

------end script cut here------
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #2 (permalink)  
Old 02-18-2008, 08:08 PM
Simon
 
Posts: n/a
Default Re: Success (sorta): thanks for all the help!

On 15 Nov 2003 05:30:14 -0800, thrugoodmarshall <thrugoodmarshall@hotmail.com>
wrote:
> espgs-7.07.1-destdir.diff
> -----begin diff cut here------

[...]
> ! bindir = @bindir@


As I don't use gimp-print, I can't really comment on the rest, but I
will point out that most people who have a preference with regards ti
diff formats prefer unified diffs ('diff -u').


--
Simon <simon@no-dns-yet.org.uk> **** GPG: F4A23C69
"We demand rigidly defined areas of doubt and uncertainty."
- Douglas Adams

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On
Forum Jump


All times are GMT. The time now is 07:53 AM.


Powered by vBulletin® Version 3.6.5
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.2.0
www.UnixAdminTalk.com