pkgsrc-wip/ghostscript/options.mk
Makoto Fujiwara ebae1e55d3 (1) ghostscript
Makefile.common
     bump the version 9.00 to 9.01
   PLIST update
   patches adjust for 9.01
     patches/patch-af
     patches/patch-an

   options.mk (following line no longer used)
    -PLIST_VARS+=	cidfmap

(2) ghostscript-cidfonts
   INSTALL/DESINSTALL
   link destination inside to ghostscript moved.
   -   dest="${GS_RESOURCEDIR}/CIDFont/$base"
   +   dest="${GS_RESOURCEDIR}/Init/CIDFont/$base"

(3) ghostscript-cidfonts-ryumin
   files/cidfmap-adobe
     missing the last LF char added

   options.mk
    (a)  cidfmap is always to be installed
   .if !empty(PKG_OPTIONS:Madobe-cidfonts)
   +GS_CIDFMAP=    cidfmap-adobe
    (b)  the same thing
   -PLIST.cidfmap= yes

   PLIST adjust
     (a)  cidfmap is allways to be installed
     -${PLIST.cidfmap}share/ghostscript/${PKGVERSION}/Resource/Init/cidfmap
     +share/ghostscript/${PKGVERSION}/Resource/Init/cidfmap

     (b)  following line should be taken care by (2) ghostscript-cidfonts
     -${PLIST.adobe}  share/ghostscript/${PKGVERSION}/Resource/CIDFont
2011-03-30 12:49:24 +00:00

60 lines
1.6 KiB
Makefile

# $NetBSD: options.mk,v 1.3 2011/03/30 12:49:24 makoto Exp $
PKG_OPTIONS_VAR= PKG_OPTIONS.ghostscript
PKG_SUPPORTED_OPTIONS= x11 cups debug fontconfig disable-compile-inits
PKG_SUGGESTED_OPTIONS= x11 fontconfig
.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"
.else
CONFIGURE_ARGS+= --without-x
.endif
PLIST_VARS+= cups
.if !empty(PKG_OPTIONS:Mcups)
CONFIGURE_ARGS+= --enable-cups
PLIST.cups= yes
INSTALL_TARGET+= install-cups
CUPS_CONFDIR?= ${PKG_SYSCONFBASEDIR}/cups
CUPS_EGDIR= ${PREFIX}/share/examples/cups
CONF_FILES+= ${CUPS_EGDIR}/pstoraster.convs ${CUPS_CONFDIR}/pstoraster.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/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
.endif
# Please note the same if cond is in post-install: target in Makefile
.if !empty(PKG_OPTIONS:Mdisable-compile-inits)
CONFIGURE_ARGS+= --disable-compile-inits
PLIST.no_cidfmap= YES
.else
PLIST.cidfmap= YES
.endif