mirror of
https://github.com/openbsd/ports.git
synced 2026-06-17 23:13:55 +02:00
223dd2dcf0
add annotations near COMPILER for some other ports that don't have COMPILER_LIBCXX in WANTLIB not changing the actual compiler version of anything here (some could possibly remove the COMPILER line completely where they only used COMPILER due to an old WANTLIB entry which has since stopped using C++, but changing that is too likely to break things)
119 lines
3.1 KiB
Makefile
119 lines
3.1 KiB
Makefile
COMMENT = PostScript and PDF interpreter
|
|
|
|
VERSION = 10.04.0
|
|
REVISION = 0
|
|
DISTNAME = ghostpdl-${VERSION}
|
|
PKGNAME = ghostscript-${VERSION}
|
|
EXTRACT_SUFX = .tar.xz
|
|
CATEGORIES = lang print
|
|
SHARED_LIBS = gs 18.2
|
|
SHARED_LIBS += gpcl6 18.2
|
|
|
|
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 = gtk
|
|
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
|
|
COMPILER_LANGS = c
|
|
CONFIGURE_STYLE = simple
|
|
|
|
CONFIGURE_ARGS = --prefix=${PREFIX}
|
|
CONFIGURE_ARGS += --with-gs=gs
|
|
CONFIGURE_ARGS += --with-pcl=gpcl6
|
|
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}
|
|
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
|
|
.else
|
|
WANTLIB += ICE SM X11 Xext Xt
|
|
CONFIGURE_ARGS += --disable-gtk
|
|
CONFIGURE_ARGS += --disable-dbus
|
|
CONFIGURE_ARGS += --with-x
|
|
.endif
|
|
|
|
CFLAGS += -DA4
|
|
|
|
# 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}/xps && \
|
|
rm -rf ${WRKSRC}/zlib
|
|
|
|
post-install:
|
|
rm -f ${PREFIX}/lib/libgpcl6.so{,.${LIBgpcl6_VERSION:R}}
|
|
rm -f ${PREFIX}/lib/libgs.so{,.${LIBgs_VERSION:R}}
|
|
.if !${FLAVOR:Mgtk}
|
|
rm -f ${PREFIX}/bin/gsx
|
|
.endif
|
|
# rename the dynamic binaries
|
|
mv ${PREFIX}/bin/gs{c,}
|
|
mv ${PREFIX}/bin/gpcl6{c,}
|
|
|
|
.include <bsd.port.mk>
|