Hi,

I wouldn't object to including g{pcl6,xps,pdl} but why include gpdf?
The gs binary includes a pdf interpreter already.

Anyone want to weigh in on this, and also on the question whether to include
them in the existing port vs. making a new one?

cheers,
Volker

On 2024-07-07 20:53, SASANO Takayoshi wrote:
Hi,

I want to use GhostPCL but there is no package.
It looks easy to extend ghostscript ports, but everyone wants to use
all-in-one package.

Here is my diff. Is there any good idea?

Index: Makefile
===================================================================
RCS file: /cvs/ports/print/ghostscript/gnu/Makefile,v
diff -u -p -r1.131 Makefile
--- Makefile    20 May 2024 10:30:52 -0000      1.131
+++ Makefile    7 Jul 2024 11:32:22 -0000
@@ -2,9 +2,14 @@ COMMENT =      PostScript and PDF interpreter

VERSION =       10.03.1
DISTNAME =      ghostscript-${VERSION}
+DISTFILES =    ghostpdl-${VERSION}${EXTRACT_SUFX}
EXTRACT_SUFX =  .tar.xz
CATEGORIES =    lang print
-SHARED_LIBS =  gs 18.2
+SHARED_LIBS  = gs      18.2
+SHARED_LIBS += gpcl6   18.2
+SHARED_LIBS += gpdl    18.2
+SHARED_LIBS += gxps    18.2
+REVISION =     0

SITES =         
https://github.com/ArtifexSoftware/ghostpdl-downloads/releases/download/gs${VERSION:S/.//g}/

@@ -21,6 +26,8 @@ FLAVOR_STRING =       ${FLAVOR_EXT:S/-/,/g}

SUBST_VARS =    VERSION FLAVOR_STRING

+WRKDIST =      ${WRKDIR}/ghostpdl-${VERSION}
+
# AGPLv3, except for the included CMap files from Adobe, which may
# only be redistributed without modifications.
PERMIT_PACKAGE= Yes
@@ -53,6 +60,10 @@ CONFIGURE_STYLE =    simple

CONFIGURE_ARGS =        --prefix=${PREFIX}
CONFIGURE_ARGS +=       --with-gs=gs
+CONFIGURE_ARGS +=      --with-pcl=gpcl6
+CONFIGURE_ARGS +=      --with-xps=gxps
+CONFIGURE_ARGS +=      --with-pdf=gpdf
+CONFIGURE_ARGS +=      --with-gpdl=gpdl
CONFIGURE_ARGS +=       --enable-fontconfig
CONFIGURE_ARGS +=       --enable-openjpeg
CONFIGURE_ARGS +=       --without-tesseract
@@ -112,6 +123,9 @@ post-install:
        rm -f ${PREFIX}/bin/gsx
.endif
# rename the dynamic binary
-       mv ${PREFIX}/bin/{gsc,gs}
+       mv ${PREFIX}/bin/gs{c,}
+       mv ${PREFIX}/bin/gpcl6{c,}
+       mv ${PREFIX}/bin/gpdl{c,}
+       mv ${PREFIX}/bin/gxps{c,}

.include <bsd.port.mk>
Index: distinfo
===================================================================
RCS file: /cvs/ports/print/ghostscript/gnu/distinfo,v
diff -u -p -r1.26 distinfo
--- distinfo    20 May 2024 10:30:52 -0000      1.26
+++ distinfo    7 Jul 2024 11:32:22 -0000
@@ -1,2 +1,2 @@
-SHA256 (ghostscript-10.03.1.tar.xz) = 
FXIS7clrjMxAlHXc4uSYM/tEJ/FQxFUlje2WMsEGq+4=
-SIZE (ghostscript-10.03.1.tar.xz) = 68048612
+SHA256 (ghostpdl-10.03.1.tar.xz) = Be7kUmj2uyxhifmkBoXEYIygiUQ6k/KvX1GU2D3DaNs=
+SIZE (ghostpdl-10.03.1.tar.xz) = 73553744
Index: pkg/PLIST
===================================================================
RCS file: /cvs/ports/print/ghostscript/gnu/pkg/PLIST,v
diff -u -p -r1.36 PLIST
--- pkg/PLIST   25 Sep 2023 07:55:15 -0000      1.36
+++ pkg/PLIST   7 Jul 2024 11:32:22 -0000
@@ -1,5 +1,7 @@
bin/dvipdf
bin/eps2eps
+@bin bin/gpcl6
+@bin bin/gpdl
@bin bin/gs
bin/gsbj
bin/gsdj
@@ -7,6 +9,7 @@ bin/gsdj500
bin/gslj
bin/gslp
bin/gsnd
+@bin bin/gxps
bin/lprsetup.sh
bin/pdf2dsc
bin/pdf2ps
@@ -29,7 +32,17 @@ include/ghostscript/gdevdsp.h
include/ghostscript/gserrors.h
include/ghostscript/iapi.h
include/ghostscript/ierrors.h
+include/ghostscript/plapi.h
+@so lib/libgpcl6.so
+lib/libgpcl6.so.18
+@lib lib/libgpcl6.so.${LIBgpcl6_VERSION}
+@so lib/libgpdl.so
+lib/libgpdl.so.18
+@lib lib/libgpdl.so.${LIBgpdl_VERSION}
@lib lib/libgs.so.${LIBgs_VERSION}
+@so lib/libgxps.so
+lib/libgxps.so.18
+@lib lib/libgxps.so.${LIBgxps_VERSION}
@man man/man1/dvipdf.1
@man man/man1/eps2eps.1
@man man/man1/gs.1

--
SASANO Takayoshi (JG1UAA) <[email protected]>


Reply via email to