summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authornaddy <naddy@FreeBSD.org>2002-08-20 00:15:59 +0000
committernaddy <naddy@FreeBSD.org>2002-08-20 00:15:59 +0000
commit080fdad35a7cc99a724f2d3df27075453556c5a3 (patch)
tree1417cadfd5d6e6f983fa20ac1c88a5ea93ff9150
parent938e2162521f42295aa655dc90b700d939b00cb1 (diff)
downloadFreeBSD-ports-080fdad35a7cc99a724f2d3df27075453556c5a3.zip
FreeBSD-ports-080fdad35a7cc99a724f2d3df27075453556c5a3.tar.gz
Add back Gimp-Print (stp) driver support.
PR: 41800 Submitted by: Ports Fury
-rw-r--r--print/ghostscript-gnu/Makefile49
-rw-r--r--print/ghostscript-gnu/distinfo1
-rw-r--r--print/ghostscript-gnu/files/patch-src:unix-gcc.mak4
-rw-r--r--print/ghostscript-gnu/files/stp.contrib.mak14
-rw-r--r--print/ghostscript-gnu/scripts/configure1
-rw-r--r--print/ghostscript7/Makefile49
-rw-r--r--print/ghostscript7/distinfo1
-rw-r--r--print/ghostscript7/files/patch-src:unix-gcc.mak4
-rw-r--r--print/ghostscript7/files/stp.contrib.mak14
-rw-r--r--print/ghostscript7/scripts/configure1
10 files changed, 132 insertions, 6 deletions
diff --git a/print/ghostscript-gnu/Makefile b/print/ghostscript-gnu/Makefile
index fe42da4..6f5fd07 100644
--- a/print/ghostscript-gnu/Makefile
+++ b/print/ghostscript-gnu/Makefile
@@ -10,7 +10,7 @@ PORTVERSION= 7.05
PORTREVISION= 3
CATEGORIES= print
MASTER_SITES= ${MASTER_SITE_GNU:S/$/:gs_fonts/} \
- ${MASTER_SITE_SOURCEFORGE:S/$/:gs_srcs,bjc250/} \
+ ${MASTER_SITE_SOURCEFORGE:S/$/:gs_srcs,gprint,bjc250/} \
http://www.gelhaus.net/hp880c/1.4beta/:hp8xx \
http://home.t-online.de/home/Martin.Lottermoser/pcl3dist/:hpdj_pcl3 \
http://www.harsch.net/Download/:dj970 \
@@ -24,6 +24,7 @@ MASTER_SITES= ${MASTER_SITE_GNU:S/$/:gs_fonts/} \
ftp://mirror.cs.wisc.edu/pub/mirrors/ghost/gnu/fonts/:fonts \
ftp://mirror.cs.wisc.edu/pub/mirrors/ghost/gnu/gs705/
MASTER_SITE_SUBDIR= ghostscript/:gs_srcs,gs_fonts,ports_jp_gs \
+ gimp-print/:gprint \
bjc250gs/:bjc250 \
./:ports_jp
PKGNAMESUFFIX= -gnu
@@ -34,6 +35,7 @@ DISTFILES= ${GS_SRCS}:gs_srcs \
${HPDJ_SRCS}:hpdj_pcl3 \
${PCL3_SRCS}:hpdj_pcl3 \
${DJ970_SRCS}:dj970 \
+ ${GPRINT_SRCS}:gprint \
${MD2K_SRCS}:md2k \
${ALPS_SRCS}:ports_jp_gs \
${BJ10V_SRCS}:ports_jp_gs \
@@ -137,6 +139,20 @@ PCL3_MAN1= gs-pcl3.1 pcl3opts.1
DJ970= gdevdj9
DJ970_SRCS= ${DJ970}.c.gz
+# Gimp-Print - very high quality driver for Epson, HPs,...
+# http://gimp-print.sourceforge.net/
+#
+# NOTE:
+# Support of stp driver interface has already been discontinued, and using
+# ijs driver with ijsgimpprint (part of print/gimp-print port) is highly
+# recommended.
+#
+# For that reason, integlation of stp driver is disabled by default.
+GPRINT= gimp-print
+GPRINT_VERS= 4.2.1
+GPRINT_NAME= ${GPRINT}-${GPRINT_VERS}
+GPRINT_SRCS= ${GPRINT_NAME}.tar.gz
+
# MD2K - additional driver for Alps MD-2000/2010/4000/1300/1500/5000
# http://plaza26.mbn.or.jp/~higamasa/gdevmd2k/
MD2K= md2k
@@ -243,6 +259,9 @@ post-extract:
${ECHO_MSG} ">>> extracting ${DJ970_SRCS} ..."
${CP} ${DISTDIR}/${DIST_SUBDIR}/${DJ970_SRCS} ${WRKSRC}/src
${GUNZIP_CMD} ${WRKSRC}/src/${DJ970_SRCS}
+# for Gimp-Print driver
+ ${ECHO_MSG} ">>> extracting ${GPRINT_SRCS} ..."
+ ${TAR} -C ${WRKSRC} -xzf ${DISTDIR}/${DIST_SUBDIR}/${GPRINT_SRCS}
# for MD2K driver
${ECHO_MSG} ">>> extracting ${MD2K_SRCS} ..."
${TAR} -C ${WRKSRC} -xzf ${DISTDIR}/${DIST_SUBDIR}/${MD2K_SRCS}
@@ -309,6 +328,10 @@ pre-configure:
${ECHO_MSG} ">>> adding ${PCL3} driver to contrib.mak ..."
${CAT} ${WRKSRC}/${PCL3_NAME}/src/contrib.mak-7.00.add \
>> ${WRKSRC}/src/contrib.mak
+# for Gimp-Print driver
+ ${ECHO_MSG} ">>> adding ${GPRINT} driver to contrib.mak ..."
+ ${CAT} ${FILESDIR}/stp.contrib.mak \
+ >> ${WRKSRC}/src/contrib.mak
# for MD2K driver
${ECHO_MSG} ">>> adding ${MD2K} driver to contrib.mak ..."
${CAT} ${WRKSRC}/${MD2K_NAME}/gdevmd2k.mak-5.50 \
@@ -364,12 +387,36 @@ do-configure:
${SETENV} ${SCRIPTS_ENV} ${SH} ${SCRIPTDIR}/configure
.endif
+post-configure:
+ ${ECHO_MSG} ">>> in post-configure ..."
+# for Gimp-Print driver
+ ${ECHO_MSG} ">>> running configure script for ${GPRINT} library ..."
+ cd ${WRKSRC}/${GPRINT_NAME} ; \
+ ${SETENV} ${MAKE_ENV} ${SH} ./configure \
+ --without-translated-ppds --with-ghost \
+ --without-gimp --without-samples \
+ --without-user-guide --disable-escputil \
+ --disable-nls --disable-shared \
+ --prefix=${PREFIX}
+
pre-build:
${ECHO_MSG} ">>> in pre-build ..."
${ECHO_MSG} ">>> creating directories for compilation ..."
${MKDIR} ${WRKSRC}/obj
${MKDIR} ${WRKSRC}/bin
${LN} -sf ${WRKSRC}/src/unix-gcc.mak ${WRKSRC}/Makefile
+# for Gimp-Print driver
+ ${ECHO_MSG} ">>> building ${GPRINT} library ..."
+ cd ${WRKSRC}/${GPRINT_NAME} ; \
+ ${SETENV} ${MAKE_ENV} ${GMAKE} ${MAKE_FLAGS} Makefile
+ ${ECHO_MSG} ">>> creating symlinks for ${GPRINT} ..."
+ ${LN} -sf ${WRKSRC}/${GPRINT_NAME}/src/ghost/*.[ch] \
+ ${WRKSRC}/src
+ ${MKDIR} ${WRKSRC}/${GPRINT}
+ ${LN} -sf ${WRKSRC}/${GPRINT_NAME}/include/gimp-print \
+ ${WRKSRC}/${GPRINT}/gimp-print
+ ${LN} -sf ${WRKSRC}/${GPRINT_NAME}/src/main/.libs/libgimpprint.a \
+ ${WRKSRC}/${GPRINT}/libgimpprint.a
# for MD2K driver
${ECHO_MSG} ">>> creating symlinks for ${MD2K} ..."
.for i in gdevmd2k.c
diff --git a/print/ghostscript-gnu/distinfo b/print/ghostscript-gnu/distinfo
index d06298d..5e87cbc 100644
--- a/print/ghostscript-gnu/distinfo
+++ b/print/ghostscript-gnu/distinfo
@@ -5,6 +5,7 @@ MD5 (ghostscript/gdevcd8.tar.gz) = 5ce48bff6082a023199c8ede4aae63a0
MD5 (ghostscript/hpdj-2.6.tar.gz) = dcc402281f36afd2041144e0e97917be
MD5 (ghostscript/pcl3-3.3.tar.gz) = 34e664c2a98b847598f8441f8cac7ab6
MD5 (ghostscript/gdevdj9.c.gz) = 3a9c20c34b79ffab434abfbcc31d1c27
+MD5 (ghostscript/gimp-print-4.2.1.tar.gz) = 62f59f0bf0b4d2843cc9953f3b4f894f
MD5 (ghostscript/gdevmd2k-0.2a.tar.gz) = 5ed2b4218b8f77cb411f3d2e4509ed24
MD5 (ghostscript/gdevalps-0.21.tar.gz) = 553bee251b96105eb7d1d7f4027ac0e9
MD5 (ghostscript/gdev10v.tar.gz) = 1486bb54c214ce215044a6c606280d73
diff --git a/print/ghostscript-gnu/files/patch-src:unix-gcc.mak b/print/ghostscript-gnu/files/patch-src:unix-gcc.mak
index c80567c..7839a1b 100644
--- a/print/ghostscript-gnu/files/patch-src:unix-gcc.mak
+++ b/print/ghostscript-gnu/files/patch-src:unix-gcc.mak
@@ -93,7 +93,7 @@
# specific stuff that <math.h> typically needs; nevertheless, we expect
# gcc to accept ANSI-style function prototypes and function definitions.
-XCFLAGS=
-+XCFLAGS+=-I${LOCALBASE}/include
++XCFLAGS+=-I${.CURDIR}/gimp-print -I${LOCALBASE}/include
CFLAGS=$(CFLAGS_STANDARD) $(GCFLAGS) $(XCFLAGS)
@@ -102,7 +102,7 @@
# giving the full path names of the shared library directories.
# XLDFLAGS can be set from the command line.
-XLDFLAGS=
-+XLDFLAGS=-L${LOCALBASE}/lib
++XLDFLAGS=-L${.CURDIR}/gimp-print -L${LOCALBASE}/lib
LDFLAGS=$(XLDFLAGS)
diff --git a/print/ghostscript-gnu/files/stp.contrib.mak b/print/ghostscript-gnu/files/stp.contrib.mak
new file mode 100644
index 0000000..862d329
--- /dev/null
+++ b/print/ghostscript-gnu/files/stp.contrib.mak
@@ -0,0 +1,14 @@
+### --------------- Gimp-Print/stp Driver ---------------------------- ###
+### Be careful to add the exact contents of this file; cut and paste ###
+### may corrupt the file and cause mysterious make errors ###
+
+stp_=$(GLOBJ)gdevstp.$(OBJ)
+
+STPLIB=gimpprint
+
+$(DD)stp.dev: $(stp_) $(DD)page.dev
+ $(SETPDEV) $(DD)stp $(stp_)
+ $(ADDMOD) $(DD)stp -lib $(STPLIB)
+
+$(GLOBJ)gdevstp.$(OBJ) : $(GLSRC)gdevstp.c $(PDEVH)
+ $(GLCC) $(GLO_)gdevstp.$(OBJ) $(C_) $(GLSRC)gdevstp.c
diff --git a/print/ghostscript-gnu/scripts/configure b/print/ghostscript-gnu/scripts/configure
index 6f66985..583b960 100644
--- a/print/ghostscript-gnu/scripts/configure
+++ b/print/ghostscript-gnu/scripts/configure
@@ -49,6 +49,7 @@ Have fun with this new configuration style ! -andreas \n\n\
"m8510" "C.Itoh M8510 printer" OFF \
"coslw2p" "CoStar LabelWriter II II/Plus" OFF \
"coslwxl" "CoStar LabelWriter XL" OFF \
+ "stp" "Configurable Canon/Epson/Lexmark/HP driver [Gimp-Print]" OFF \
"uniprint" "Configurable ESC/P,ESC/P2,HP-RTL/PCL,P2X mono/color driver" ON \
"dmprt" "Configurable dot matrix printer driver [DMPRT]" ON \
"lj250" "DEC LJ250 Companion color printer" OFF \
diff --git a/print/ghostscript7/Makefile b/print/ghostscript7/Makefile
index fe42da4..6f5fd07 100644
--- a/print/ghostscript7/Makefile
+++ b/print/ghostscript7/Makefile
@@ -10,7 +10,7 @@ PORTVERSION= 7.05
PORTREVISION= 3
CATEGORIES= print
MASTER_SITES= ${MASTER_SITE_GNU:S/$/:gs_fonts/} \
- ${MASTER_SITE_SOURCEFORGE:S/$/:gs_srcs,bjc250/} \
+ ${MASTER_SITE_SOURCEFORGE:S/$/:gs_srcs,gprint,bjc250/} \
http://www.gelhaus.net/hp880c/1.4beta/:hp8xx \
http://home.t-online.de/home/Martin.Lottermoser/pcl3dist/:hpdj_pcl3 \
http://www.harsch.net/Download/:dj970 \
@@ -24,6 +24,7 @@ MASTER_SITES= ${MASTER_SITE_GNU:S/$/:gs_fonts/} \
ftp://mirror.cs.wisc.edu/pub/mirrors/ghost/gnu/fonts/:fonts \
ftp://mirror.cs.wisc.edu/pub/mirrors/ghost/gnu/gs705/
MASTER_SITE_SUBDIR= ghostscript/:gs_srcs,gs_fonts,ports_jp_gs \
+ gimp-print/:gprint \
bjc250gs/:bjc250 \
./:ports_jp
PKGNAMESUFFIX= -gnu
@@ -34,6 +35,7 @@ DISTFILES= ${GS_SRCS}:gs_srcs \
${HPDJ_SRCS}:hpdj_pcl3 \
${PCL3_SRCS}:hpdj_pcl3 \
${DJ970_SRCS}:dj970 \
+ ${GPRINT_SRCS}:gprint \
${MD2K_SRCS}:md2k \
${ALPS_SRCS}:ports_jp_gs \
${BJ10V_SRCS}:ports_jp_gs \
@@ -137,6 +139,20 @@ PCL3_MAN1= gs-pcl3.1 pcl3opts.1
DJ970= gdevdj9
DJ970_SRCS= ${DJ970}.c.gz
+# Gimp-Print - very high quality driver for Epson, HPs,...
+# http://gimp-print.sourceforge.net/
+#
+# NOTE:
+# Support of stp driver interface has already been discontinued, and using
+# ijs driver with ijsgimpprint (part of print/gimp-print port) is highly
+# recommended.
+#
+# For that reason, integlation of stp driver is disabled by default.
+GPRINT= gimp-print
+GPRINT_VERS= 4.2.1
+GPRINT_NAME= ${GPRINT}-${GPRINT_VERS}
+GPRINT_SRCS= ${GPRINT_NAME}.tar.gz
+
# MD2K - additional driver for Alps MD-2000/2010/4000/1300/1500/5000
# http://plaza26.mbn.or.jp/~higamasa/gdevmd2k/
MD2K= md2k
@@ -243,6 +259,9 @@ post-extract:
${ECHO_MSG} ">>> extracting ${DJ970_SRCS} ..."
${CP} ${DISTDIR}/${DIST_SUBDIR}/${DJ970_SRCS} ${WRKSRC}/src
${GUNZIP_CMD} ${WRKSRC}/src/${DJ970_SRCS}
+# for Gimp-Print driver
+ ${ECHO_MSG} ">>> extracting ${GPRINT_SRCS} ..."
+ ${TAR} -C ${WRKSRC} -xzf ${DISTDIR}/${DIST_SUBDIR}/${GPRINT_SRCS}
# for MD2K driver
${ECHO_MSG} ">>> extracting ${MD2K_SRCS} ..."
${TAR} -C ${WRKSRC} -xzf ${DISTDIR}/${DIST_SUBDIR}/${MD2K_SRCS}
@@ -309,6 +328,10 @@ pre-configure:
${ECHO_MSG} ">>> adding ${PCL3} driver to contrib.mak ..."
${CAT} ${WRKSRC}/${PCL3_NAME}/src/contrib.mak-7.00.add \
>> ${WRKSRC}/src/contrib.mak
+# for Gimp-Print driver
+ ${ECHO_MSG} ">>> adding ${GPRINT} driver to contrib.mak ..."
+ ${CAT} ${FILESDIR}/stp.contrib.mak \
+ >> ${WRKSRC}/src/contrib.mak
# for MD2K driver
${ECHO_MSG} ">>> adding ${MD2K} driver to contrib.mak ..."
${CAT} ${WRKSRC}/${MD2K_NAME}/gdevmd2k.mak-5.50 \
@@ -364,12 +387,36 @@ do-configure:
${SETENV} ${SCRIPTS_ENV} ${SH} ${SCRIPTDIR}/configure
.endif
+post-configure:
+ ${ECHO_MSG} ">>> in post-configure ..."
+# for Gimp-Print driver
+ ${ECHO_MSG} ">>> running configure script for ${GPRINT} library ..."
+ cd ${WRKSRC}/${GPRINT_NAME} ; \
+ ${SETENV} ${MAKE_ENV} ${SH} ./configure \
+ --without-translated-ppds --with-ghost \
+ --without-gimp --without-samples \
+ --without-user-guide --disable-escputil \
+ --disable-nls --disable-shared \
+ --prefix=${PREFIX}
+
pre-build:
${ECHO_MSG} ">>> in pre-build ..."
${ECHO_MSG} ">>> creating directories for compilation ..."
${MKDIR} ${WRKSRC}/obj
${MKDIR} ${WRKSRC}/bin
${LN} -sf ${WRKSRC}/src/unix-gcc.mak ${WRKSRC}/Makefile
+# for Gimp-Print driver
+ ${ECHO_MSG} ">>> building ${GPRINT} library ..."
+ cd ${WRKSRC}/${GPRINT_NAME} ; \
+ ${SETENV} ${MAKE_ENV} ${GMAKE} ${MAKE_FLAGS} Makefile
+ ${ECHO_MSG} ">>> creating symlinks for ${GPRINT} ..."
+ ${LN} -sf ${WRKSRC}/${GPRINT_NAME}/src/ghost/*.[ch] \
+ ${WRKSRC}/src
+ ${MKDIR} ${WRKSRC}/${GPRINT}
+ ${LN} -sf ${WRKSRC}/${GPRINT_NAME}/include/gimp-print \
+ ${WRKSRC}/${GPRINT}/gimp-print
+ ${LN} -sf ${WRKSRC}/${GPRINT_NAME}/src/main/.libs/libgimpprint.a \
+ ${WRKSRC}/${GPRINT}/libgimpprint.a
# for MD2K driver
${ECHO_MSG} ">>> creating symlinks for ${MD2K} ..."
.for i in gdevmd2k.c
diff --git a/print/ghostscript7/distinfo b/print/ghostscript7/distinfo
index d06298d..5e87cbc 100644
--- a/print/ghostscript7/distinfo
+++ b/print/ghostscript7/distinfo
@@ -5,6 +5,7 @@ MD5 (ghostscript/gdevcd8.tar.gz) = 5ce48bff6082a023199c8ede4aae63a0
MD5 (ghostscript/hpdj-2.6.tar.gz) = dcc402281f36afd2041144e0e97917be
MD5 (ghostscript/pcl3-3.3.tar.gz) = 34e664c2a98b847598f8441f8cac7ab6
MD5 (ghostscript/gdevdj9.c.gz) = 3a9c20c34b79ffab434abfbcc31d1c27
+MD5 (ghostscript/gimp-print-4.2.1.tar.gz) = 62f59f0bf0b4d2843cc9953f3b4f894f
MD5 (ghostscript/gdevmd2k-0.2a.tar.gz) = 5ed2b4218b8f77cb411f3d2e4509ed24
MD5 (ghostscript/gdevalps-0.21.tar.gz) = 553bee251b96105eb7d1d7f4027ac0e9
MD5 (ghostscript/gdev10v.tar.gz) = 1486bb54c214ce215044a6c606280d73
diff --git a/print/ghostscript7/files/patch-src:unix-gcc.mak b/print/ghostscript7/files/patch-src:unix-gcc.mak
index c80567c..7839a1b 100644
--- a/print/ghostscript7/files/patch-src:unix-gcc.mak
+++ b/print/ghostscript7/files/patch-src:unix-gcc.mak
@@ -93,7 +93,7 @@
# specific stuff that <math.h> typically needs; nevertheless, we expect
# gcc to accept ANSI-style function prototypes and function definitions.
-XCFLAGS=
-+XCFLAGS+=-I${LOCALBASE}/include
++XCFLAGS+=-I${.CURDIR}/gimp-print -I${LOCALBASE}/include
CFLAGS=$(CFLAGS_STANDARD) $(GCFLAGS) $(XCFLAGS)
@@ -102,7 +102,7 @@
# giving the full path names of the shared library directories.
# XLDFLAGS can be set from the command line.
-XLDFLAGS=
-+XLDFLAGS=-L${LOCALBASE}/lib
++XLDFLAGS=-L${.CURDIR}/gimp-print -L${LOCALBASE}/lib
LDFLAGS=$(XLDFLAGS)
diff --git a/print/ghostscript7/files/stp.contrib.mak b/print/ghostscript7/files/stp.contrib.mak
new file mode 100644
index 0000000..862d329
--- /dev/null
+++ b/print/ghostscript7/files/stp.contrib.mak
@@ -0,0 +1,14 @@
+### --------------- Gimp-Print/stp Driver ---------------------------- ###
+### Be careful to add the exact contents of this file; cut and paste ###
+### may corrupt the file and cause mysterious make errors ###
+
+stp_=$(GLOBJ)gdevstp.$(OBJ)
+
+STPLIB=gimpprint
+
+$(DD)stp.dev: $(stp_) $(DD)page.dev
+ $(SETPDEV) $(DD)stp $(stp_)
+ $(ADDMOD) $(DD)stp -lib $(STPLIB)
+
+$(GLOBJ)gdevstp.$(OBJ) : $(GLSRC)gdevstp.c $(PDEVH)
+ $(GLCC) $(GLO_)gdevstp.$(OBJ) $(C_) $(GLSRC)gdevstp.c
diff --git a/print/ghostscript7/scripts/configure b/print/ghostscript7/scripts/configure
index 6f66985..583b960 100644
--- a/print/ghostscript7/scripts/configure
+++ b/print/ghostscript7/scripts/configure
@@ -49,6 +49,7 @@ Have fun with this new configuration style ! -andreas \n\n\
"m8510" "C.Itoh M8510 printer" OFF \
"coslw2p" "CoStar LabelWriter II II/Plus" OFF \
"coslwxl" "CoStar LabelWriter XL" OFF \
+ "stp" "Configurable Canon/Epson/Lexmark/HP driver [Gimp-Print]" OFF \
"uniprint" "Configurable ESC/P,ESC/P2,HP-RTL/PCL,P2X mono/color driver" ON \
"dmprt" "Configurable dot matrix printer driver [DMPRT]" ON \
"lj250" "DEC LJ250 Companion color printer" OFF \
OpenPOWER on IntegriCloud