[BACK]Return to options.mk CVS log [TXT][DIR] Up to [cvs.NetBSD.org] / pkgsrc / print / ghostscript-agpl

File: [cvs.NetBSD.org] / pkgsrc / print / ghostscript-agpl / options.mk (download)

Revision 1.6, Sun Mar 17 18:02:26 2019 UTC (12 months, 3 weeks ago) by gdt
Branch: MAIN
CVS Tags: pkgsrc-2020Q1-base, pkgsrc-2020Q1, pkgsrc-2019Q4-base, pkgsrc-2019Q4, pkgsrc-2019Q3-base, pkgsrc-2019Q3, pkgsrc-2019Q2-base, pkgsrc-2019Q2, pkgsrc-2019Q1-base, pkgsrc-2019Q1, HEAD
Changes since 1.5: +9 -2 lines

print/ghostscript-agpl: Copy utf8 option from ../ghostscript-gpl (default off)

Copy the utf8 option from ghostscript-gpl, which is just bl3ing on
libiconv.  Leave it off for now (unlike -gpl).

Perhaps it should be default on, and perhaps it should be always
enabled and not even an option.

# $NetBSD: options.mk,v 1.6 2019/03/17 18:02:26 gdt Exp $

PKG_SUPPORTED_OPTIONS=	x11 cups debug fontconfig disable-compile-inits utf8

.include "../../mk/bsd.options.mk"

# (no_cidfmap)	when --disable-compile-inits selected,
#		cidfmap is renamed to cidfmap.dist
PLIST_VARS+=		no_cidfmap

.if !empty(PKG_OPTIONS:Mx11)
.include "../../x11/libX11/buildlink3.mk"
.include "../../x11/libXt/buildlink3.mk"
.include "../../x11/libXext/buildlink3.mk"
CONFIGURE_ARGS+=	--without-x

.if !empty(PKG_OPTIONS:Mcups)
CONFIGURE_ARGS+=	--enable-cups

# Because nothing is installed, this is not necessary.  It remains in
# case a later version does install something.
SUBST_CLASSES+=		cupsetc
SUBST_STAGE.cupsetc=	post-extract
SUBST_MESSAGE.cupsetc=	Fixing CUPS etc directory path to install as example
SUBST_FILES.cupsetc=	cups/cups.mak

.include "../../print/cups-base/buildlink3.mk"
CONFIGURE_ARGS+=	--disable-cups

.if !empty(PKG_OPTIONS:Mdebug)
CONFIGURE_ARGS+=	--enable-debug

.if !empty(PKG_OPTIONS:Mfontconfig)
.include "../../fonts/fontconfig/buildlink3.mk"
CONFIGURE_ARGS+=	--disable-fontconfig

# Please note the same if condition is in post-extract: target in Makefile
.if !empty(PKG_OPTIONS:Mdisable-compile-inits)
CONFIGURE_ARGS+=	--disable-compile-inits
PLIST.no_cidfmap=	YES

.if !empty(PKG_OPTIONS:Mutf8)
.include "../../converters/libiconv/buildlink3.mk"
CONFIGURE_ARGS+=	--with-libiconv=${ICONV_TYPE}
CONFIGURE_ARGS+=	--with-libiconv=no