Add a gtk flavor that builds gsx with the new display device.

That device is ways faster than the traditional x11 device, especially
with anti-aliasing turned on. Unfortunately, it requires shared libraries
and does not interface with gv.

Note: I hope all devices are back in. Those of you looking for hp850 &
friends support, the driver has been integrated into the `uniprint' driver.
This commit is contained in:
espie 2001-04-14 16:54:04 +00:00
parent 8ae73df6f3
commit eea0957508
5 changed files with 51 additions and 17 deletions

View File

@ -1,11 +1,11 @@
# $OpenBSD: Makefile,v 1.1.1.1 2001/04/14 14:46:10 espie Exp $
# $OpenBSD: Makefile,v 1.2 2001/04/14 16:54:04 espie Exp $
COMMENT="AFPL PostScript interpreter"
VERSION= 7.00
DISTNAME= ghostscript-${VERSION}
CATEGORIES= print lang
NEED_VERSION= 1.395
NEED_VERSION= 1.396
DIR= AFPL/gs${VERSION:S/.//}
MASTER_SITES= ${GS_SITES}
@ -59,7 +59,7 @@ BASE_FLAGS= INSTALL_PROGRAM='${INSTALL_SCRIPT}' \
PDFDIR=share/ghostscript/${VERSION}/lib
BASE_FLAGS+= DEVICE_DEVS='\
BASE_FLAGS+= DEVICE_DEVS1='\
$$(DD)x11.dev $$(DD)x11alpha.dev $$(DD)x11cmyk.dev $$(DD)x11cmyk2.dev \
$$(DD)x11cmyk4.dev $$(DD)x11cmyk8.dev $$(DD)x11gray2.dev \
$$(DD)x11gray4.dev $$(DD)x11mono.dev $$(DD)cljet5.dev $$(DD)deskjet.dev \
@ -105,7 +105,7 @@ $$(DD)mgr4.dev $$(DD)mgr8.dev $$(DD)sgirgb.dev'
MAKE_FLAGS= ${BASE_FLAGS} prefix=${PREFIX}
MAKE_FILE= src/unixansi.mak
#MAKE_FILE= src/unix-gcc.mak
GS_SOURCES= ghostscript-${VERSION}.tar.gz
# Note: the following two are real files that have symlinks with
@ -114,27 +114,41 @@ GS_SOURCES= ghostscript-${VERSION}.tar.gz
# unless the files really change.
GS_FONTS_STD= ghostscript-fonts-std-6.0.tar.gz
# Additional driver HP 850, see http://www.erdw.ethz.ch/~bonk/hp850/hp850.html
HP850_DRV= hp8xxs13.zip
ALL_TARGET= all
INSTALL_TARGET= install
# The pdf_sec.ps non-stub version has been moved to a separate package
FLAVORS=A4
FLAVORS=A4 gtk
FLAVOR?=
.if ${FLAVOR:U} == "A4"
.if ${FLAVOR:U:MA4}
CFLAGS+= -DA4
.endif
.if ${FLAVOR:L:Mgtk}
LIB_DEPENDS+= gtk.1.::x11/gtk
ALL_TARGET+=so
INSTALL_TARGET+=soinstall
end_install= ${INSTALL_PROGRAM} ${WRKDIST}/sobin/gsx ${PREFIX}/bin
NOT_FOR_ARCHS=${NO_SHARED_ARCHS}
.else
end_install=
.endif
FAKE_FLAGS=${BASE_FLAGS} prefix=${WRKINST}${PREFIX}
post-extract:
ln -s `cd ${PORTSDIR} && cd ${JPEGDIR} && make show VARNAME=WRKDIST` ${WRKDIST}/jpeg
ln -s `cd ${PORTSDIR} && cd ${PNGDIR} && make show VARNAME=WRKDIST` ${WRKDIST}/libpng
do-configure:
cd ${WRKBUILD} && ln -s ${WRKSRC}/unix-gcc.mak Makefile
pre-build:
mkdir -p ${WRKBUILD}/objects
mkdir -p ${WRKBUILD}/bin
mkdir -p ${WRKDIST}/objects
mkdir -p ${WRKDIST}/bin
mkdir -p ${WRKDIST}/soobj
mkdir -p ${WRKDIST}/sobin
pre-install:
@${INSTALL_DATA_DIR} ${PREFIX}/share/ghostscript
@ -157,6 +171,6 @@ post-install:
ln -sf ps2pdf.1 ps2pdf12.1 && \
ln -sf ps2pdf.1 ps2pdf13.1 && \
ln -sf ps2ps.1 eps2eps.1
${end_install}
.include <bsd.port.mk>

View File

@ -1,7 +1,7 @@
$OpenBSD: patch-lib_gs_init_ps,v 1.1.1.1 2001/04/14 14:46:10 espie Exp $
--- lib/gs_init.ps.orig Sat Dec 2 23:15:11 2000
+++ lib/gs_init.ps Fri Apr 13 16:52:51 2001
@@ -1710,3 +1710,7 @@ WRITESYSTEMDICT not { systemdict readonl
$OpenBSD: patch-lib_gs_init_ps,v 1.2 2001/04/14 16:54:04 espie Exp $
--- lib/gs_init.ps.orig Mon Apr 9 08:20:03 2001
+++ lib/gs_init.ps Sat Apr 14 17:23:33 2001
@@ -1815,3 +1815,7 @@ WRITESYSTEMDICT not { systemdict readonl
(END GC) VMDEBUG
% The interpreter will run the initial procedure (start).

View File

@ -0,0 +1,12 @@
$OpenBSD: patch-src_unix-dll_mak,v 1.1 2001/04/14 16:54:04 espie Exp $
--- src/unix-dll.mak.orig Sat Apr 14 17:33:35 2001
+++ src/unix-dll.mak Sat Apr 14 17:34:28 2001
@@ -67,7 +67,7 @@ $(GSSO_XE): $(GS_SO) $(GLSRC)dxmain.c
# ------------------------- Recursive make targets ------------------------- #
-SODEFS=LDFLAGS='$(LDFLAGS) -shared -Wl,-soname,$(GS_SONAME_MAJOR)'\
+SODEFS=LDFLAGS='$(LDFLAGS) $(CFLAGS_SO) -shared -Wl,-soname,$(GS_SONAME_MAJOR)'\
GS_XE=$(BINDIR)/$(SOBINRELDIR)/$(GS_SONAME_MAJOR_MINOR)\
STDIO_IMPLEMENTATION=c\
DISPLAY_DEV=$(DD)$(SOOBJRELDIR)/display.dev\

View File

@ -0,0 +1,4 @@
@comment $OpenBSD: PFRAG.gtk,v 1.1 2001/04/14 16:54:04 espie Exp $
bin/gsx
lib/libgs.so.7.00
DYNLIBDIR(%D/lib)

View File

@ -1,4 +1,4 @@
@comment $OpenBSD: PLIST,v 1.1.1.1 2001/04/14 14:46:10 espie Exp $
@comment $OpenBSD: PLIST,v 1.2 2001/04/14 16:54:04 espie Exp $
bin/bdftops
bin/dvipdf
bin/eps2eps
@ -433,8 +433,12 @@ share/ghostscript/fonts/s050000l.pfm
share/ghostscript/fonts/z003034l.afm
share/ghostscript/fonts/z003034l.pfb
share/ghostscript/fonts/z003034l.pfm
%%gtk%%
@dirrm share/ghostscript/fonts
@dirrm share/ghostscript/${VERSION}/lib
@dirrm share/ghostscript/${VERSION}/examples
@dirrm share/ghostscript/${VERSION}/doc
@dirrm share/ghostscript/${VERSION}
@dirrm share/ghostscript
@dirrm man/de/man1
@dirrm man/de