File:
[cvs.NetBSD.org] /
pkgsrc /
print /
ghostscript-gpl /
options.mk
Revision
1.10:
download - view:
text,
annotated -
select for diffs
Mon Nov 4 19:57:59 2019 UTC (5 years, 2 months ago) by
rillig
Branches:
MAIN
CVS tags:
pkgsrc-2023Q2-base,
pkgsrc-2023Q2,
pkgsrc-2023Q1-base,
pkgsrc-2023Q1,
pkgsrc-2022Q4-base,
pkgsrc-2022Q4,
pkgsrc-2022Q3-base,
pkgsrc-2022Q3,
pkgsrc-2022Q2-base,
pkgsrc-2022Q2,
pkgsrc-2022Q1-base,
pkgsrc-2022Q1,
pkgsrc-2021Q4-base,
pkgsrc-2021Q4,
pkgsrc-2021Q3-base,
pkgsrc-2021Q3,
pkgsrc-2021Q2-base,
pkgsrc-2021Q2,
pkgsrc-2021Q1-base,
pkgsrc-2021Q1,
pkgsrc-2020Q4-base,
pkgsrc-2020Q4,
pkgsrc-2020Q3-base,
pkgsrc-2020Q3,
pkgsrc-2020Q2-base,
pkgsrc-2020Q2,
pkgsrc-2020Q1-base,
pkgsrc-2020Q1,
pkgsrc-2019Q4-base,
pkgsrc-2019Q4,
HEAD
print: align variable assignments
pkglint -Wall -F --only aligned --only indent -r
No manual corrections.
# $NetBSD: options.mk,v 1.10 2019/11/04 19:57:59 rillig Exp $
PKG_OPTIONS_VAR= PKG_OPTIONS.ghostscript
PKG_SUPPORTED_OPTIONS= x11 cups debug fontconfig disable-compile-inits utf8
PKG_SUGGESTED_OPTIONS= x11 fontconfig 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)
CONFIGURE_ARGS+= --with-x
.include "../../x11/libX11/buildlink3.mk"
.include "../../x11/libXt/buildlink3.mk"
.include "../../x11/libXext/buildlink3.mk"
. if !empty(X11_TYPE:Mnative)
. include "../../x11/libxcb/buildlink3.mk"
. include "../../graphics/freetype2/buildlink3.mk"
. endif
.else
CONFIGURE_ARGS+= --without-x
CONFIGURE_ARGS+= --disable-freetype
.endif
PLIST_VARS+= cups
.if !empty(PKG_OPTIONS:Mcups)
CONFIGURE_ARGS+= --enable-cups
PLIST.cups= yes
BUILD_TARGET+= cups
INSTALL_TARGET+= install-cups
CUPS_CONFDIR?= ${PKG_SYSCONFBASEDIR}/cups
CUPS_EGDIR= ${PREFIX}/share/examples/cups
CONF_FILES+= ${CUPS_EGDIR}/gstoraster.convs ${CUPS_CONFDIR}/gstoraster.convs
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
SUBST_SED.cupsetc= -e 's|$$(CUPSSERVERROOT)|${CUPS_EGDIR}|g'
.include "../../print/cups-base/buildlink3.mk"
.include "../../mk/jpeg.buildlink3.mk"
.else
CONFIGURE_ARGS+= --disable-cups
.endif
.if !empty(PKG_OPTIONS:Mdebug)
CONFIGURE_ARGS+= --enable-debug
.endif
.if !empty(PKG_OPTIONS:Mfontconfig)
.include "../../fonts/fontconfig/buildlink3.mk"
.else
CONFIGURE_ARGS+= --disable-fontconfig
CONFIGURE_ARGS+= --disable-freetype
.endif
# 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
.else
PLIST.cidfmap= YES
.endif
.if !empty(PKG_OPTIONS:Mutf8)
.include "../../converters/libiconv/buildlink3.mk"
CONFIGURE_ARGS+= --with-libiconv=${ICONV_TYPE}
.else
CONFIGURE_ARGS+= --with-libiconv=no
.endif
CVSweb <webmaster@jp.NetBSD.org>