1 # $NetBSD: options.mk,v 1.12 2012/10/07 14:19:18 mef Exp $
3 PKG_OPTIONS_VAR
= PKG_OPTIONS.ghostscript
4 PKG_SUPPORTED_OPTIONS
= x11 cups debug fontconfig disable-compile-inits
5 PKG_SUGGESTED_OPTIONS
= x11 fontconfig
7 .
include "../../mk/bsd.options.mk"
9 # (no_cidfmap) when --disable-compile-inits selected,
10 # cidfmap is renamed to cidfmap.dist
11 PLIST_VARS
+= no_cidfmap
13 .if
!empty
(PKG_OPTIONS
:Mx11
)
14 CONFIGURE_ARGS
+= --with-x
15 .
include "../../x11/libX11/buildlink3.mk"
16 .
include "../../x11/libXt/buildlink3.mk"
17 .
include "../../x11/libXext/buildlink3.mk"
19 CONFIGURE_ARGS
+= --without-x
20 CONFIGURE_ARGS
+= --disable-freetype
24 .if
!empty
(PKG_OPTIONS
:Mcups
)
25 CONFIGURE_ARGS
+= --enable-cups
27 INSTALL_TARGET
+= install-cups
29 CUPS_CONFDIR?
= ${PKG_SYSCONFBASEDIR}/cups
30 CUPS_EGDIR
= ${PREFIX}/share
/examples
/cups
31 CONF_FILES
+= ${CUPS_EGDIR}/gstoraster.convs
${CUPS_CONFDIR}/gstoraster.convs
33 SUBST_CLASSES
+= cupsetc
34 SUBST_STAGE.cupsetc
= post-extract
35 SUBST_MESSAGE.cupsetc
= Fixing CUPS etc directory path to
install as example
36 SUBST_FILES.cupsetc
= cups
/cups.mak
37 SUBST_SED.cupsetc
= -e
's|$$(CUPSSERVERROOT)|${CUPS_EGDIR}|g'
39 .
include "../../print/cups/buildlink3.mk"
40 .
include "../../mk/jpeg.buildlink3.mk"
42 CONFIGURE_ARGS
+= --disable-cups
45 .if
!empty
(PKG_OPTIONS
:Mdebug
)
46 CONFIGURE_ARGS
+= --enable-debug
49 .if
!empty
(PKG_OPTIONS
:Mfontconfig
)
50 .
include "../../fonts/fontconfig/buildlink3.mk"
52 CONFIGURE_ARGS
+= --disable-fontconfig
53 CONFIGURE_ARGS
+= --disable-freetype
56 # Please note the same if condition is in post-extract: target in Makefile
57 .if
!empty
(PKG_OPTIONS
:Mdisable-compile-inits
)
58 CONFIGURE_ARGS
+= --disable-compile-inits