2009-11-02 00:57:29 +01:00
|
|
|
# $NetBSD: options.mk,v 1.10 2009/11/01 23:57:29 gdt Exp $
|
2005-12-09 21:30:16 +01:00
|
|
|
|
|
|
|
PKG_OPTIONS_VAR= PKG_OPTIONS.ghostscript
|
2009-09-02 17:56:03 +02:00
|
|
|
PKG_SUPPORTED_OPTIONS= x11 cups debug fontconfig
|
2008-01-10 16:23:27 +01:00
|
|
|
PKG_SUGGESTED_OPTIONS= x11 fontconfig
|
2005-12-09 21:30:16 +01:00
|
|
|
|
|
|
|
.include "../../mk/bsd.options.mk"
|
|
|
|
|
|
|
|
.if !empty(PKG_OPTIONS:Mx11)
|
2006-12-27 19:18:22 +01:00
|
|
|
CONFIGURE_ARGS+= --with-x
|
|
|
|
.include "../../x11/libX11/buildlink3.mk"
|
|
|
|
.include "../../x11/libXt/buildlink3.mk"
|
|
|
|
.include "../../x11/libXext/buildlink3.mk"
|
2005-12-09 21:30:16 +01:00
|
|
|
.else
|
2007-10-22 14:15:03 +02:00
|
|
|
CONFIGURE_ARGS+= --without-x
|
|
|
|
.endif
|
|
|
|
|
2008-04-13 00:42:57 +02:00
|
|
|
PLIST_VARS+= cups
|
2007-10-22 14:15:03 +02:00
|
|
|
.if !empty(PKG_OPTIONS:Mcups)
|
|
|
|
CONFIGURE_ARGS+= --enable-cups
|
2008-04-13 00:42:57 +02:00
|
|
|
PLIST.cups= yes
|
2008-09-03 23:31:12 +02:00
|
|
|
INSTALL_TARGET+= install-cups
|
2007-10-22 14:15:03 +02:00
|
|
|
|
|
|
|
CUPS_CONFDIR?= ${PKG_SYSCONFBASEDIR}/cups
|
|
|
|
CUPS_EGDIR= ${PREFIX}/share/examples/cups
|
2007-10-22 14:35:32 +02:00
|
|
|
CONF_FILES+= ${CUPS_EGDIR}/pstoraster.convs ${CUPS_CONFDIR}/pstoraster.convs
|
2007-10-22 14:15:03 +02:00
|
|
|
|
|
|
|
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
|
2008-01-24 16:17:30 +01:00
|
|
|
SUBST_SED.cupsetc= -e 's|$$(CUPSSERVERROOT)|${CUPS_EGDIR}|g'
|
2007-10-22 14:15:03 +02:00
|
|
|
|
|
|
|
.include "../../print/cups/buildlink3.mk"
|
2009-11-02 00:57:29 +01:00
|
|
|
.include "../../graphics/jpeg/buildlink3.mk"
|
2007-10-22 14:15:03 +02:00
|
|
|
.else
|
|
|
|
CONFIGURE_ARGS+= --disable-cups
|
2005-12-09 21:30:16 +01:00
|
|
|
.endif
|
2008-01-10 16:23:27 +01:00
|
|
|
|
2009-09-02 17:56:03 +02:00
|
|
|
.if !empty(PKG_OPTIONS:Mdebug)
|
|
|
|
CONFIGURE_ARGS+= --enable-debug
|
|
|
|
.endif
|
|
|
|
|
2008-01-10 16:23:27 +01:00
|
|
|
.if !empty(PKG_OPTIONS:Mfontconfig)
|
|
|
|
.include "../../fonts/fontconfig/buildlink3.mk"
|
|
|
|
.else
|
|
|
|
CONFIGURE_ARGS+= --disable-fontconfig
|
|
|
|
.endif
|