SecBSD's official ports repository

This commit is contained in:
purplerain 2023-08-16 22:26:55 +00:00
commit 2c0afcbbf3
Signed by: purplerain
GPG key ID: F42C07F07E2E35B7
64331 changed files with 5339189 additions and 0 deletions

View file

@ -0,0 +1,117 @@
COMMENT = PostScript and PDF interpreter
VERSION = 10.01.2
DISTNAME = ghostscript-${VERSION}
EXTRACT_SUFX = .tar.xz
CATEGORIES = lang print
SHARED_LIBS = gs 18.0
MASTER_SITES = https://github.com/ArtifexSoftware/ghostpdl-downloads/releases/download/gs${VERSION:S/.//g}/
PORTROACH = site:https://github.com/ArtifexSoftware/ghostpdl-downloads/releases/
HOMEPAGE = https://ghostscript.com/
MAINTAINER = Volker Schlecht <openbsd-ports@schlecht.dev>
FLAVORS = a4 gtk no_x11
FLAVOR?=
FLAVOR_STRING = ${FLAVOR_EXT:S/-/,/g}
SUBST_VARS = VERSION FLAVOR_STRING
# AGPLv3, except for the included CMap files from Adobe, which may
# only be redistributed without modifications.
PERMIT_PACKAGE= Yes
WANTLIB = c m pthread z cups fontconfig freetype iconv idn ijs jpeg jbig2dec \
openjp2 paper png tiff
RUN_DEPENDS = print/ghostscript/gnu-fonts>=8.11p3
LIB_DEPENDS += converters/libiconv
LIB_DEPENDS += devel/libidn
LIB_DEPENDS += graphics/jpeg
LIB_DEPENDS += graphics/jbig2dec
LIB_DEPENDS += graphics/openjp2
LIB_DEPENDS += graphics/png
LIB_DEPENDS += graphics/tiff
LIB_DEPENDS += print/cups,-libs
LIB_DEPENDS += print/ijs
LIB_DEPENDS += print/libpaper
MAKE_FLAGS = LIB_VERSION_MAJOR=${LIBgs_VERSION:R} \
LIB_VERSION_MINOR=${LIBgs_VERSION:E}
USE_GMAKE = Yes
ALL_TARGET = so all
INSTALL_TARGET = soinstall install
COMPILER = base-clang ports-gcc
CONFIGURE_STYLE = simple
CONFIGURE_ARGS = --prefix=${PREFIX}
CONFIGURE_ARGS += --with-gs=gs
CONFIGURE_ARGS += --enable-fontconfig
CONFIGURE_ARGS += --enable-openjpeg
CONFIGURE_ARGS += --without-tesseract
CONFIGURE_ARGS += --enable-freetype
CONFIGURE_ARGS += --with-system-libtiff
CONFIGURE_ARGS += --with-libpaper
CONFIGURE_ARGS += --with-libiconv=maybe
CONFIGURE_ARGS += --with-fontpath=${LOCALBASE}/share/fonts
CONFIGURE_ARGS += --with-drivers=FILES,PRINTERS,X11
CONFIGURE_ARGS += --mandir=${LOCALBASE}/man
.if ${FLAVOR:Mgtk} && ${FLAVOR:Mno_x11}
ERRORS += "Fatal: Conflicting flavors: ${FLAVOR}"
.elif ${FLAVOR:Mgtk}
LIB_DEPENDS += x11/gtk+3
WANTLIB += ICE SM X11 Xext Xt
WANTLIB += atk-1.0 cairo cairo-gobject gdk-3 gdk_pixbuf-2.0 gio-2.0
WANTLIB += glib-2.0 gobject-2.0 gtk-3 harfbuzz intl pango-1.0
WANTLIB += pangocairo-1.0
CONFIGURE_ARGS += --enable-gtk
.elif ${FLAVOR:Mno_x11}
CONFIGURE_ARGS += --disable-dbus
CONFIGURE_ARGS += --disable-gtk
CONFIGURE_ARGS += --without-x
.else
WANTLIB += ICE SM X11 Xext Xt
CONFIGURE_ARGS += --disable-gtk
CONFIGURE_ARGS += --disable-dbus
CONFIGURE_ARGS += --with-x
.endif
.if ${FLAVOR:Ma4}
CFLAGS += -DA4
.endif
# Needed to make the configure script detect libiconv
CONFIGURE_ENV += LDFLAGS="-L${LOCALBASE}/lib -L${X11BASE}/lib"
NO_TEST = Yes
DEBUG_PACKAGES = ${BUILD_PACKAGES}
# Just delete all the bundled directories that are not needed
pre-configure:
rm -rf ${WRKSRC}/freetype && \
rm -rf ${WRKSRC}/ijs && \
rm -rf ${WRKSRC}/jbig2dec && \
rm -rf ${WRKSRC}/jpeg && \
rm -rf ${WRKSRC}/libpng && \
rm -rf ${WRKSRC}/openjpeg && \
rm -rf ${WRKSRC}/tesseract && \
rm -rf ${WRKSRC}/tiff && \
rm -rf ${WRKSRC}/zlib
post-install:
rm -f ${PREFIX}/lib/libgs.so{,.${LIBgs_VERSION:R}}
.if !${FLAVOR:Mgtk}
rm -f ${PREFIX}/bin/gsx
.endif
# rename the dynamic binary
mv ${PREFIX}/bin/{gsc,gs}
.include <bsd.port.mk>

View file

@ -0,0 +1,2 @@
SHA256 (ghostscript-10.01.2.tar.xz) = SNB5JCosoCouR6dqUs36gYsq12nCurAK0El90TVg5+c=
SIZE (ghostscript-10.01.2.tar.xz) = 67571808

View file

@ -0,0 +1,31 @@
Index: configure
--- configure.orig
+++ configure
@@ -12682,8 +12682,8 @@ DLL_EXT=""
SO_LIB_VERSION_SEPARATOR="."
libname1="_SO_BASE)\$(GS_SOEXT)\$(DLL_EXT)"
-libname2="_SO_BASE)\$(GS_SOEXT)\$(SO_LIB_VERSION_SEPARATOR)\$(GS_VERSION_MAJOR)\$(DLL_EXT)"
-libname3="_SO_BASE)\$(GS_SOEXT)\$(SO_LIB_VERSION_SEPARATOR)\$(GS_VERSION_MAJOR)\$(SO_LIB_VERSION_SEPARATOR)\$(GS_VERSION_MINOR)\$(DLL_EXT)"
+libname2="_SO_BASE)\$(GS_SOEXT)\$(SO_LIB_VERSION_SEPARATOR)\$(LIB_VERSION_MAJOR)\$(DLL_EXT)"
+libname3="_SO_BASE)\$(GS_SOEXT)\$(SO_LIB_VERSION_SEPARATOR)\$(LIB_VERSION_MAJOR)\$(SO_LIB_VERSION_SEPARATOR)\$(LIB_VERSION_MINOR)\$(DLL_EXT)"
GS_SONAME="lib\$(GS${libname1}"
GS_SONAME_MAJOR="lib\$(GS${libname2}"
GS_SONAME_MAJOR_MINOR="lib\$(GS${libname3}"
@@ -12795,11 +12795,11 @@ case $host in
;;
*bsd*)
DYNAMIC_CFLAGS="-fPIC $DYNAMIC_CFLAGS"
- GS_DYNAMIC_LDFLAGS="-shared -Wl,\$(LD_SET_DT_SONAME)\$(LDFLAGS_SO_PREFIX)\$(GS_SONAME_MAJOR)"
- PCL_DYNAMIC_LDFLAGS="-shared -Wl,\$(LD_SET_DT_SONAME)\$(LDFLAGS_SO_PREFIX)\$(PCL_SONAME_MAJOR)"
- XPS_DYNAMIC_LDFLAGS="-shared -Wl,\$(LD_SET_DT_SONAME)\$(LDFLAGS_SO_PREFIX)\$(XPS_SONAME_MAJOR)"
- PDL_DYNAMIC_LDFLAGS="-shared -Wl,\$(LD_SET_DT_SONAME)\$(LDFLAGS_SO_PREFIX)\$(GPDL_SONAME_MAJOR)"
- PDF_DYNAMIC_LDFLAGS="-shared -Wl,\$(LD_SET_DT_SONAME)\$(LDFLAGS_SO_PREFIX)\$(PDF_SONAME_MAJOR)"
+ GS_DYNAMIC_LDFLAGS="-shared -Wl,\$(LD_SET_DT_SONAME)\$(LDFLAGS_SO_PREFIX)\$(GS_SONAME_MAJOR_MINOR)"
+ PCL_DYNAMIC_LDFLAGS="-shared -Wl,\$(LD_SET_DT_SONAME)\$(LDFLAGS_SO_PREFIX)\$(PCL_SONAME_MAJOR_MINOR)"
+ XPS_DYNAMIC_LDFLAGS="-shared -Wl,\$(LD_SET_DT_SONAME)\$(LDFLAGS_SO_PREFIX)\$(XPS_SONAME_MAJOR_MINOR)"
+ PDL_DYNAMIC_LDFLAGS="-shared -Wl,\$(LD_SET_DT_SONAME)\$(LDFLAGS_SO_PREFIX)\$(GPDL_SONAME_MAJOR_MINOR)"
+ PDF_DYNAMIC_LDFLAGS="-shared -Wl,\$(LD_SET_DT_SONAME)\$(LDFLAGS_SO_PREFIX)\$(PDF_SONAME_MAJOR_MINOR)"
DYNAMIC_LIBS=""
SO_LIB_EXT=".so"
;;

View file

@ -0,0 +1,8 @@
Ghostscript is the well-known PostScript interpreter which is
available for all common and most esoteric platforms and supports
many different printers, file formats and some displays.
Flavors:
a4 - Set page size to A4 by default (instead of letter)
gtk - Build with Gtk+ support
no_x11 - Build without X support

View file

@ -0,0 +1 @@
@bin bin/gsx

View file

@ -0,0 +1,220 @@
bin/dvipdf
bin/eps2eps
@bin bin/gs
bin/gsbj
bin/gsdj
bin/gsdj500
bin/gslj
bin/gslp
bin/gsnd
bin/lprsetup.sh
bin/pdf2dsc
bin/pdf2ps
bin/pf2afm
bin/pfbtopfa
bin/pphs
bin/printafm
bin/ps2ascii
bin/ps2epsi
bin/ps2pdf
bin/ps2pdf12
bin/ps2pdf13
bin/ps2pdf14
bin/ps2pdfwr
bin/ps2ps
bin/ps2ps2
bin/unix-lpr.sh
include/ghostscript/
include/ghostscript/gdevdsp.h
include/ghostscript/gserrors.h
include/ghostscript/iapi.h
include/ghostscript/ierrors.h
@lib lib/libgs.so.${LIBgs_VERSION}
@man man/man1/dvipdf.1
@man man/man1/eps2eps.1
@man man/man1/gs.1
@man man/man1/gsbj.1
@man man/man1/gsdj.1
@man man/man1/gsdj500.1
@man man/man1/gslj.1
@man man/man1/gslp.1
@man man/man1/gsnd.1
@man man/man1/pdf2dsc.1
@man man/man1/pdf2ps.1
@man man/man1/pf2afm.1
@man man/man1/pfbtopfa.1
@man man/man1/printafm.1
@man man/man1/ps2ascii.1
@man man/man1/ps2epsi.1
@man man/man1/ps2pdf.1
@man man/man1/ps2pdf12.1
@man man/man1/ps2pdf13.1
@man man/man1/ps2pdf14.1
@man man/man1/ps2pdfwr.1
@man man/man1/ps2ps.1
share/doc/ghostscript/
share/doc/ghostscript/${VERSION}/
share/doc/ghostscript/${VERSION}/COPYING
share/doc/ghostscript/${VERSION}/GS9_Color_Management.pdf
share/doc/ghostscript/${VERSION}/Ghostscript.pdf
share/doc/ghostscript/${VERSION}/News.htm
share/ghostscript/
share/ghostscript/${VERSION}/
share/ghostscript/${VERSION}/lib/
share/ghostscript/${VERSION}/lib/PDFA_def.ps
share/ghostscript/${VERSION}/lib/PDFX_def.ps
share/ghostscript/${VERSION}/lib/PM760p.upp
share/ghostscript/${VERSION}/lib/PM760pl.upp
share/ghostscript/${VERSION}/lib/PM820p.upp
share/ghostscript/${VERSION}/lib/PM820pl.upp
share/ghostscript/${VERSION}/lib/Stc670p.upp
share/ghostscript/${VERSION}/lib/Stc670pl.upp
share/ghostscript/${VERSION}/lib/Stc680p.upp
share/ghostscript/${VERSION}/lib/Stc680pl.upp
share/ghostscript/${VERSION}/lib/Stc740p.upp
share/ghostscript/${VERSION}/lib/Stc740pl.upp
share/ghostscript/${VERSION}/lib/Stc760p.upp
share/ghostscript/${VERSION}/lib/Stc760pl.upp
share/ghostscript/${VERSION}/lib/Stc777p.upp
share/ghostscript/${VERSION}/lib/Stc777pl.upp
share/ghostscript/${VERSION}/lib/Stp720p.upp
share/ghostscript/${VERSION}/lib/Stp720pl.upp
share/ghostscript/${VERSION}/lib/Stp870p.upp
share/ghostscript/${VERSION}/lib/Stp870pl.upp
share/ghostscript/${VERSION}/lib/acctest.ps
share/ghostscript/${VERSION}/lib/align.ps
share/ghostscript/${VERSION}/lib/bj8.rpd
share/ghostscript/${VERSION}/lib/bj8gc12f.upp
share/ghostscript/${VERSION}/lib/bj8hg12f.upp
share/ghostscript/${VERSION}/lib/bj8oh06n.upp
share/ghostscript/${VERSION}/lib/bj8pa06n.upp
share/ghostscript/${VERSION}/lib/bj8pp12f.upp
share/ghostscript/${VERSION}/lib/bj8ts06n.upp
share/ghostscript/${VERSION}/lib/bjc6000a1.upp
share/ghostscript/${VERSION}/lib/bjc6000b1.upp
share/ghostscript/${VERSION}/lib/bjc610a0.upp
share/ghostscript/${VERSION}/lib/bjc610a1.upp
share/ghostscript/${VERSION}/lib/bjc610a2.upp
share/ghostscript/${VERSION}/lib/bjc610a3.upp
share/ghostscript/${VERSION}/lib/bjc610a4.upp
share/ghostscript/${VERSION}/lib/bjc610a5.upp
share/ghostscript/${VERSION}/lib/bjc610a6.upp
share/ghostscript/${VERSION}/lib/bjc610a7.upp
share/ghostscript/${VERSION}/lib/bjc610a8.upp
share/ghostscript/${VERSION}/lib/bjc610b1.upp
share/ghostscript/${VERSION}/lib/bjc610b2.upp
share/ghostscript/${VERSION}/lib/bjc610b3.upp
share/ghostscript/${VERSION}/lib/bjc610b4.upp
share/ghostscript/${VERSION}/lib/bjc610b6.upp
share/ghostscript/${VERSION}/lib/bjc610b7.upp
share/ghostscript/${VERSION}/lib/bjc610b8.upp
share/ghostscript/${VERSION}/lib/caption.ps
share/ghostscript/${VERSION}/lib/cbjc600.ppd
share/ghostscript/${VERSION}/lib/cbjc800.ppd
share/ghostscript/${VERSION}/lib/cdj550.upp
share/ghostscript/${VERSION}/lib/cdj690.upp
share/ghostscript/${VERSION}/lib/cdj690ec.upp
share/ghostscript/${VERSION}/lib/cid2code.ps
share/ghostscript/${VERSION}/lib/dnj750c.upp
share/ghostscript/${VERSION}/lib/dnj750m.upp
share/ghostscript/${VERSION}/lib/docie.ps
share/ghostscript/${VERSION}/lib/font2pcl.ps
share/ghostscript/${VERSION}/lib/ghostpdf.ppd
share/ghostscript/${VERSION}/lib/gs_ce_e.ps
share/ghostscript/${VERSION}/lib/gs_css_e.ps
share/ghostscript/${VERSION}/lib/gs_il2_e.ps
share/ghostscript/${VERSION}/lib/gs_kanji.ps
share/ghostscript/${VERSION}/lib/gs_ksb_e.ps
share/ghostscript/${VERSION}/lib/gs_l.xbm
share/ghostscript/${VERSION}/lib/gs_l.xpm
share/ghostscript/${VERSION}/lib/gs_l_m.xbm
share/ghostscript/${VERSION}/lib/gs_lgo_e.ps
share/ghostscript/${VERSION}/lib/gs_lgx_e.ps
share/ghostscript/${VERSION}/lib/gs_m.xbm
share/ghostscript/${VERSION}/lib/gs_m.xpm
share/ghostscript/${VERSION}/lib/gs_m_m.xbm
share/ghostscript/${VERSION}/lib/gs_s.xbm
share/ghostscript/${VERSION}/lib/gs_s.xpm
share/ghostscript/${VERSION}/lib/gs_s_m.xbm
share/ghostscript/${VERSION}/lib/gs_t.xbm
share/ghostscript/${VERSION}/lib/gs_t.xpm
share/ghostscript/${VERSION}/lib/gs_t_m.xbm
share/ghostscript/${VERSION}/lib/gs_wl1_e.ps
share/ghostscript/${VERSION}/lib/gs_wl2_e.ps
share/ghostscript/${VERSION}/lib/gs_wl5_e.ps
share/ghostscript/${VERSION}/lib/gslp.ps
share/ghostscript/${VERSION}/lib/gsnup.ps
share/ghostscript/${VERSION}/lib/ht_ccsto.ps
share/ghostscript/${VERSION}/lib/image-qa.ps
share/ghostscript/${VERSION}/lib/jispaper.ps
share/ghostscript/${VERSION}/lib/landscap.ps
share/ghostscript/${VERSION}/lib/lines.ps
share/ghostscript/${VERSION}/lib/mkcidfm.ps
share/ghostscript/${VERSION}/lib/necp2x.upp
share/ghostscript/${VERSION}/lib/necp2x6.upp
share/ghostscript/${VERSION}/lib/pdf2dsc.ps
share/ghostscript/${VERSION}/lib/pdf_info.ps
share/ghostscript/${VERSION}/lib/pf2afm.ps
share/ghostscript/${VERSION}/lib/pfbtopfa.ps
share/ghostscript/${VERSION}/lib/ppath.ps
share/ghostscript/${VERSION}/lib/pphs.ps
share/ghostscript/${VERSION}/lib/prfont.ps
share/ghostscript/${VERSION}/lib/printafm.ps
share/ghostscript/${VERSION}/lib/ps2ai.ps
share/ghostscript/${VERSION}/lib/ps2epsi.ps
share/ghostscript/${VERSION}/lib/ras1.upp
share/ghostscript/${VERSION}/lib/ras24.upp
share/ghostscript/${VERSION}/lib/ras3.upp
share/ghostscript/${VERSION}/lib/ras32.upp
share/ghostscript/${VERSION}/lib/ras4.upp
share/ghostscript/${VERSION}/lib/ras8m.upp
share/ghostscript/${VERSION}/lib/rollconv.ps
share/ghostscript/${VERSION}/lib/s400a1.upp
share/ghostscript/${VERSION}/lib/s400b1.upp
share/ghostscript/${VERSION}/lib/sharp.upp
share/ghostscript/${VERSION}/lib/sipixa6.upp
share/ghostscript/${VERSION}/lib/st640ih.upp
share/ghostscript/${VERSION}/lib/st640ihg.upp
share/ghostscript/${VERSION}/lib/st640p.upp
share/ghostscript/${VERSION}/lib/st640pg.upp
share/ghostscript/${VERSION}/lib/st640pl.upp
share/ghostscript/${VERSION}/lib/st640plg.upp
share/ghostscript/${VERSION}/lib/stc.upp
share/ghostscript/${VERSION}/lib/stc1520h.upp
share/ghostscript/${VERSION}/lib/stc2.upp
share/ghostscript/${VERSION}/lib/stc200_h.upp
share/ghostscript/${VERSION}/lib/stc2_h.upp
share/ghostscript/${VERSION}/lib/stc2s_h.upp
share/ghostscript/${VERSION}/lib/stc300.upp
share/ghostscript/${VERSION}/lib/stc300bl.upp
share/ghostscript/${VERSION}/lib/stc300bm.upp
share/ghostscript/${VERSION}/lib/stc500p.upp
share/ghostscript/${VERSION}/lib/stc500ph.upp
share/ghostscript/${VERSION}/lib/stc600ih.upp
share/ghostscript/${VERSION}/lib/stc600p.upp
share/ghostscript/${VERSION}/lib/stc600pl.upp
share/ghostscript/${VERSION}/lib/stc640p.upp
share/ghostscript/${VERSION}/lib/stc740ih.upp
share/ghostscript/${VERSION}/lib/stc800ih.upp
share/ghostscript/${VERSION}/lib/stc800p.upp
share/ghostscript/${VERSION}/lib/stc800pl.upp
share/ghostscript/${VERSION}/lib/stc_h.upp
share/ghostscript/${VERSION}/lib/stc_l.upp
share/ghostscript/${VERSION}/lib/stcany.upp
share/ghostscript/${VERSION}/lib/stcany_h.upp
share/ghostscript/${VERSION}/lib/stcinfo.ps
share/ghostscript/${VERSION}/lib/stcolor.ps
share/ghostscript/${VERSION}/lib/stocht.ps
share/ghostscript/${VERSION}/lib/traceimg.ps
share/ghostscript/${VERSION}/lib/traceop.ps
share/ghostscript/${VERSION}/lib/uninfo.ps
share/ghostscript/${VERSION}/lib/viewcmyk.ps
share/ghostscript/${VERSION}/lib/viewgif.ps
share/ghostscript/${VERSION}/lib/viewjpeg.ps
share/ghostscript/${VERSION}/lib/viewmiff.ps
share/ghostscript/${VERSION}/lib/viewpbm.ps
share/ghostscript/${VERSION}/lib/viewpcx.ps
share/ghostscript/${VERSION}/lib/viewps2a.ps
share/ghostscript/${VERSION}/lib/winmaps.ps
share/ghostscript/${VERSION}/lib/zeroline.ps
%%gtk%%